Problem exam
User senkyte
Submission Time 2024-02-05 12:32:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:2:6: error: ‘cin’ in namespace ‘std’ does not name a type
2 | std::cin >> int option;
| ^~~
In file included from exam.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
exam.cpp:3:1: error: expected unqualified-id before ‘if’
3 | if(option == 1){
| ^~
exam.cpp:6:1: error: expected unqualified-id before ‘else’
6 | else{
| ^~~~