Problem timeexam
User Slayer555
Submission Time 2023-12-16 14:03:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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