| Problem | exam |
|---|---|
| User | HOK |
| Submission Time | 2026-02-14 10:29:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:4:12: error: expected initializer before ‘a’
4 | int number a,b;
| ^
exam.cpp:5:6: error: ‘number’ was not declared in this scope
5 | cin>>number;
| ^~~~~~
exam.cpp:8:2: error: expected ‘}’ before ‘else’
8 | else if(number==2){
| ^~~~
exam.cpp:6:15: note: to match this ‘{’
6 | if (number==1){
| ^
exam.cpp:9:8: error: ‘a’ was not declared in this scope
9 | cin>>a>>b
| ^
exam.cpp:9:11: error: ‘b’ was not declared in this scope
9 | cin>>a>>b
| ^
exam.cpp:11:2: error: expected ‘}’ at end of input
11 | }
| ^
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^