Problem exam
User Allysa
Submission Time 2024-03-09 12:01:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:2: error: expected initializer before ‘cin’
7 | cin>>x;
| ^~~
exam.cpp:8:6: error: ‘x’ was not declared in this scope
8 | if (x==1){
| ^
exam.cpp:11:6: error: ‘x’ was not declared in this scope
11 | if (x==2){
| ^
exam.cpp:12:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
12 | cin>>n>>m;
| ^
| yn
exam.cpp:12:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
12 | cin>>n>>m;
| ^
| tm