I got a compile-time error:
mult.cpp: In function ‘int main(int, char**)’: mult.cpp:26: error: increment of read-only variable ‘s’