Problem timeexam
User isaackhong
Submission Time 2023-01-08 17:12:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:16:17: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
16 | xans = "00";
| ^~~~
| |
| const char*
timeexam.cpp:17:15: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
17 | xans += to_string(n);
| ~~~~~^~~~~~~~~~~~~~~
timeexam.cpp:19:17: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
19 | xans = "000";
| ^~~~~
| |
| const char*
timeexam.cpp:20:15: error: no match for ‘operator+=’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
20 | xans += to_string(n);
| ~~~~~^~~~~~~~~~~~~~~