Problem exam
User Henries
Submission Time 2024-06-07 12:36:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:5: error: expected ‘(’ before ‘num’
6 | if num == 1 {
| ^~~
| (
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else {
| ^~~~