Problem timeexam
User senkyte
Submission Time 2024-02-22 14:27:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:6:5: error: expected ‘(’ before ‘n’
6 | if n < 60{
| ^
| (
timeexam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else{
| ^~~~
timeexam.cpp:10:3: error: ‘extra’ was not declared in this scope; did you mean ‘extern’?
10 | extra = n%60;
| ^~~~~
| extern
timeexam.cpp:11:3: error: ‘hours’ was not declared in this scope
11 | hours = (n-extra)/60;
| ^~~~~