Problem timeexam
User Tolo925kt
Submission Time 2026-10-23 10:27:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:21:2: error: expected ‘}’ before ‘else’
21 | else if (time > 59) {
| ^~~~
timeexam.cpp:18:18: note: to match this ‘{’
18 | if (time > 959) {
| ^
timeexam.cpp:24:2: error: expected ‘}’ before ‘else’
24 | else {
| ^~~~
timeexam.cpp:21:22: note: to match this ‘{’
21 | else if (time > 59) {
| ^
timeexam.cpp: At global scope:
timeexam.cpp:28:2: error: expected declaration before ‘}’ token
28 | }
| ^
timeexam.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^