Problem | timeexam |
---|---|
User | YH |
Submission Time | 2024-02-05 11:07:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:20:23: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} in assignment
20 | hours[1] = to_string((int) n/60);
| ~~~~~~~~~^~~~~~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
timeexam.cpp:29:22: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} in assignment
29 | mins[1] = to_string(n);
| ~~~~~~~~~^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}