Main.cc:17:1: warning: "/*" within comment [-Wcomment] /* ^ Main.cc:10:1: error: unterminated comment /* ^ Main.cc: In function 'int main()': Main.cc:9:37: error: expected '}' at end of input printf("%.2lf\n",a-(int)(a/b)*b); ^