Problem sumint
User friendlyfexr
Submission Time 2026-06-13 19:17:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:16:20: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char’ in assignment
16 | digit = to_string(numbers[i]);
| ~~~~~~~~~^~~~~~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
sumint.cpp:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | if (digit == " ") {
| ^~~