Problem | timeexam |
---|---|
User | Hengweezy |
Submission Time | 2024-02-01 00:09:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:7:14: error: expected ‘;’ before ‘int’
7 | a = a % 1440
| ^
| ;
8 | int min = a %60;
| ~~~
timeexam.cpp:12:16: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’)
12 | cout << hours << min;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/9/iostream:39,
from timeexam.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_o