Problem exam
User ToiletBrIcker
Submission Time 2024-06-18 10:12:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:4:15: error: expected ‘;’ before ‘if’
4 | std::cin >> a
| ^
| ;
5 | if (a == 1){
| ~~
exam.cpp:8:2: error: ‘else’ without a previous ‘if’
8 | else{
| ^~~~
exam.cpp:10:3: error: expected initializer before ‘std’
10 | std::cin >> b >> c;
| ^~~
exam.cpp:11:19: error: ‘c’ was not declared in this scope
11 | std::cout << (b*c)
| ^