Problem | timeexam |
---|---|
User | Informatics271 |
Submission Time | 2024-05-17 10:21:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:16:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::_Setfill<const char*>’)
16 | cout << setfill("0") << setw(2) << (N / 60) << (N % 60);
| ~~~~ ^~ ~~~~~~~~~~~~
| | |
| | std::_Setfill<const char*>
| std::ostream {aka std::basic_ostream<char>}
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