Problem | exam |
---|---|
User | ryannbreaker |
Submission Time | 2024-02-14 18:53:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:5:10: error: expected primary-expression before ‘int’
5 | cout >> int x;
| ^~~
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x==1){
| ^
exam.cpp:10:11: error: expected primary-expression before ‘int’
10 | cout >> int A >> int B;
| ^~~
exam.cpp:11:10: error: ‘A’ was not declared in this scope
11 | return A+B
| ^
exam.cpp:11:12: error: ‘B’ was not declared in this scope
11 | return A+B
| ^
exam.cpp:11:13: error: expected ‘;’ before ‘}’ token
11 | return A+B
| ^
| ;
12 | }
| ~