Problem | timeexam |
---|---|
User | isaackhong |
Submission Time | 2023-01-08 17:06:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:8:2: error: ‘mins’ was not declared in this scope
8 | mins = n % 60;
| ^~~~
timeexam.cpp:9:2: error: ‘hours’ was not declared in this scope; did you mean ‘std::chrono::hours’?
9 | hours = floor(n/60);
| ^~~~~
| 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:10:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
10 | ans = hours*100 + mins;
| ^~~
| abs