Problem timeexam
User JhoCyber
Submission Time 2024-12-16 21:29:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:9:11: error: expected ‘;’ before ‘)’ token
9 | for (N>24){
| ^
| ;
timeexam.cpp:13:12: error: expected primary-expression before ‘hour’
13 | string hour;
| ^~~~
timeexam.cpp:13:11: error: expected ‘)’ before ‘hour’
13 | string hour;
| ^~~~~
| )
timeexam.cpp:9:6: note: to match this ‘(’
9 | for (N>24){
| ^
timeexam.cpp:15:22: error: no match for ‘operator+’ (operand types are ‘long long int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
15 | string thing=hour+minutes;
| ~~~~^~~~~~~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| long long int
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,