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