Problem | addition |
---|---|
User | ryuki |
Submission Time | 2024-02-28 10:22:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:8:24: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘int’ in initialization
8 | int a = numbers.substr(0, numbers.find(' '));
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
addition.cpp:9:24: error: cannot convert ‘std::__cxx11::basic_string<char>’ to ‘int’ in initialization
9 | int b = numbers.substr(1, numbers.find(' '));
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>