Problem exam
User spidermancoolboy
Submission Time 2024-01-27 23:36:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:2: error: expected initializer before ‘cin’
5 | cin>>num;
| ^~~
exam.cpp:11:8: error: ‘num2’ was not declared in this scope; did you mean ‘num1’?
11 | cin>>num2;
| ^~~~
| num1
exam.cpp:13:2: error: expected ‘}’ at end of input
13 | }
| ^
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^