Problem timeexam
User CalebKow
Submission Time 2025-06-23 04:46:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:11:6: error: ‘to_string’ was not declared in this scope; did you mean ‘std::__cxx11::to_string’?
11 | if (to_string(hours_passed).size() == 0) {
| ^~~~~~~~~
| std::__cxx11::to_string
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from timeexam.cpp:1:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::__cxx11::to_string’ declared here
6601 | to_string(long double __val)