Problem exam
User ishat024
Submission Time 2023-11-08 11:11:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int32_t main()’:
exam.cpp:8:5: error: expected initializer before ‘cin’
8 | cin >>x;
| ^~~
exam.cpp:9:9: error: ‘x’ was not declared in this scope
9 | if (x==1)
| ^
exam.cpp:16:22: error: expected ‘;’ before ‘if’
16 | cin >> a >> b
| ^
| ;
17 | if (a<=9 && a >= 0 && b <= 9 && b >= 0)
| ~~
exam.cpp:21:9: error: expected ‘}’ before ‘else’
21 | else if (a <= pow(10,9) && a >= pow(-10,9) && b <= pow(10,9) && b >= pow(-10,9))
| ^~~~
exam.cpp:14:5: note: to match this ‘{’
14 | {
| ^
exam.cpp:21:18: error: ‘a’ was not declared in this scope
21 | else if (a <= pow(10,9) && a >= pow(-10,9) && b <= pow(10,9) && b >= pow(-10,9))
| ^
exam.cpp: