Main.cc: In function ‘int main()’: Main.cc:6:5: error: ‘cin’ was not declared in this scope cin >> n; ^~~ Main.cc:6:5: note: suggested alternative: ‘main’ cin >> n; ^~~ main Main.cc:23:5: error: ‘cout’ was not declared in this scope cout << max1 << " " << max2 << endl; ^~~~ Main.cc:23:36: error: ‘endl’ was not declared in this scope cout << max1 << " " << max2 << endl; ^~~~ Main.cc:23:36: note: suggested alternative: ‘enum’ cout << max1 << " " << max2 << endl; ^~~~ enum