Problem timeexam
User JhoCyber
Submission Time 2024-12-17 12:40:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int32_t main()’:
timeexam.cpp:11:13: error: ‘hours’ was not declared in this scope; did you mean ‘std::chrono::hours’?
11 | cout << hours << minutes;
| ^~~~~
| 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;
| ^~~~~