Main.cc: In function 'int main()': Main.cc:9:34: warning: statement has no effect [-Wunused-value] cout << year << " " << ""; "no"; ^ Main.cc:20:1: error: expected '}' at end of input } ^