Problem | exam |
---|---|
User | spidermancoolboy |
Submission Time | 2024-01-27 23:34:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:3:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
3 | cin>>num;
| ^~~
| std::cin
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:7: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
3 | cin>>num;
| ^~~
| enum
exam.cpp:4:6: error: ‘i’ was not declared in this scope
4 | if (i=1){
| ^
exam.cpp:5:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
5 | cout << "Hello World";
| ^~~~
| std::cout
In file included from exam.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
|