Problem | exam |
---|---|
User | FadedWorld |
Submission Time | 2024-07-15 16:50:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:9: error: expected unqualified-id before 'a'
6 | int 'a'
| ^~~
exam.cpp:9:6: error: ‘a’ was not declared in this scope
9 | if (a==1){
| ^
exam.cpp:10:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
10 | cout << "Hello World";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from exam.cpp:2:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
exam.cpp:12:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
12 | cin >> A;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from exam.cpp:2:
/usr/include/c++/9/iostream