Main.cc: In function ‘int main()’: Main.cc:7:11: error: expected primary-expression before ‘%’ token int d=%600%60; ^ Main.cc:8:29: error: ‘e’ was not declared in this scope printf("%d%d%d%c",b,c,d,e); ^ Main.cc:4:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~