0_0_18230371_32503.cpp: In function 'int main()': 0_0_18230371_32503.cpp:16:9: error: expected ';' before 'printf' printf("%I64d\n",l/(k-k%res)+i);//ok ^