Problem timeexam
User Armnotsostrong123456
Submission Time 2025-02-08 11:46:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> N;
| ^~~
timeexam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
timeexam.cpp:10:5: error: ‘cout’ was not declared in this scope
10 | cout << setfill('0') << setw(2) << hours;
| ^~~~
timeexam.cpp:10:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
timeexam.cpp:10:13: error: ‘setfill’ was not declared in this scope
10 | cout << setfill('0') << setw(2) << hours;
| ^~~~~~~
timeexam.cpp:10:29: error: ‘setw’ was not declared in this scope
10 | cout << setfill('0') << setw(2) << hours;
| ^