Problem timeexam
User Aum
Submission Time 2024-03-26 23:24:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int32_t main()’:
timeexam.cpp:29:18: error: expected ‘;’ before ‘long’
29 | n %= 1440
| ^
| ;
timeexam.cpp:33:38: error: ‘hours’ was not declared in this scope; did you mean ‘std::chrono::hours’?
33 | string ans_hours = to_string(hours);
| ^~~~~
| std::chrono::hours
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:101,
from timeexam.cpp:1:
/usr/include/c++/9/chrono:620:61: note: ‘std::chrono::hours’ declared here
620 | typedef duration<_GLIBCXX_CHRONO_INT64_T, ratio<3600>> hours;
| ^~~~~
timeexam.cpp: At global scope:
timeexam.cpp:43:1: error: expected declaration before ‘}’ token
43 | }
| ^