Problem timeexam
User cprime
Submission Time 2024-04-29 16:21:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘std::string toString(ll)’:
timeexam.cpp:5:19: error: operands to ?: have different types ‘std::__cxx11::basic_string<char>’ and ‘ll’ {aka ‘long long int’}
5 | return ((n < 10) ? "0"+to_string(n) : n);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~