0_0_31877186_18170.cpp: In function 'int main()': 0_0_31877186_18170.cpp:20:3: error: expected ';' before 'printf' printf("%d\n",k); ^