Problem timeexam
User Slayer555
Submission Time 2023-12-11 21:42:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:15:23: error: ‘setw’ is not a member of ‘std’
15 | std::cout << std::setw(2) << std::setfill('0') << hours << ":";
| ^~~~
timeexam.cpp:15:39: error: ‘setfill’ is not a member of ‘std’; did you mean ‘fill’?
15 | std::cout << std::setw(2) << std::setfill('0') << hours << ":";
| ^~~~~~~
| fill
timeexam.cpp:16:23: error: ‘setw’ is not a member of ‘std’
16 | std::cout << std::setw(2) << std::setfill('0') << minutes << std::endl;
| ^~~~
timeexam.cpp:16:39: error: ‘setfill’ is not a member of ‘std’; did you mean ‘fill’?
16 | std::cout << std::setw(2) << std::setfill('0') << minutes << std::endl;
|