Problem timeexam
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-07 21:14:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:8:5: error: ‘h’ was not declared in this scope
8 | h = (floor(n/60))%24;
| ^
timeexam.cpp:8:22: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
8 | h = (floor(n/60))%24;
| ~~~~~~~~~~~~~^~~
| | |
| | int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
timeexam.cpp:9:5: error: ‘m’ was not declared in this scope
9 | m = n%60;
| ^