Problem | exam |
---|---|
User | Adam |
Submission Time | 2024-06-18 10:57:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:4:36: error: expected ‘;’ before ‘}’ token
4 | cout << "Hello World" << std::endl
| ^
| ;
5 | }
| ~
exam.cpp: At global scope:
exam.cpp:6:5: error: redefinition of ‘int main()’
6 | int main(){
| ^~~~
exam.cpp:3:5: note: ‘int main()’ previously defined here
3 | int main(){
| ^~~~
exam.cpp: In function ‘int main()’:
exam.cpp:8:9: error: ‘a’ was not declared in this scope
8 | cin >> a >> b;
| ^
exam.cpp:8:14: error: ‘b’ was not declared in this scope
8 | cin >> a >> b;
| ^
exam.cpp:9:5: error: conflicting declaration ‘int x’
9 | int x = 8, y = 4;{
| ^
exam.cpp:7:12: note: previous declaration as ‘long long int x’
7 |