Problem exam
User ryannbreaker
Submission Time 2024-02-14 18:54:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:9: error: expected primary-expression before ‘int’
5 | cin >> int x;
| ^~~
exam.cpp:6:6: error: ‘x’ was not declared in this scope
6 | if (x==1){
| ^
exam.cpp:10:10: error: expected primary-expression before ‘int’
10 | cin >> 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 | }
| ~