Main.cc: In function 'int main()': Main.cc:13:13: error: expected ')' before ';' token printf("no";) ^ Main.cc:13:14: error: expected primary-expression before ')' token printf("no";) ^ Main.cc:7:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s%s",a,b); ^