Problem timeexam
User piecat
Submission Time 2026-11-18 15:58:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:9:5: error: expected ‘(’ before ‘hours’
9 | if hours == 0 {
| ^~~~~
| (
timeexam.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else if hours <= 9 {
| ^~~~
timeexam.cpp:12:10: error: expected ‘(’ before ‘hours’
12 | else if hours <= 9 {
| ^~~~~
| (
timeexam.cpp:15:2: error: ‘else’ without a previous ‘if’
15 | else {
| ^~~~
timeexam.cpp:18:5: error: expected ‘(’ before ‘minutes’
18 | if minutes == 0 {
| ^~~~~~~
| (
timeexam.cpp:21:2: error: ‘else’ without a previous ‘if’
21 | else if minutes <= 9 {
| ^~~~
timeexam.cpp:21:10: error: expected ‘(’ before ‘minutes’
21 | else if minutes <= 9 {
| ^~~~~~~
| (
timeexam.cpp:24:2: error: ‘else’ without a previous ‘if’
24 | else {
| ^~~~