Main.cc: In function ‘int main()’: Main.cc:11:32: error: expected ‘;’ before ‘cout’ else (a == 505 && b == 79) cout << 12; ^~~~ Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d,%d", &a,&b); ~~~~~^~~~~~~~~~~~~~~~