Problem timeexam
User huyleisme
Submission Time 2024-02-04 22:48:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:5:2: error: ‘hour’ was not declared in this scope
5 | hour = n / 60;
| ^~~~
timeexam.cpp:6:12: error: overloaded function with no contextual type information
6 | min = n % 60;
| ^~
timeexam.cpp:19:7: error: parse error in template argument list
19 | if (min < 10) {
| ^~~~~~~~
timeexam.cpp:19:15: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘bool’
19 | if (min < 10) {
| ^
timeexam.cpp:20:16: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’)
20 | cout << '0' << min;
| ~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,