Problem | sumint |
---|---|
User | AdwinLau |
Submission Time | 2024-04-05 16:18:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:15:24: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char*’
15 | char *token = strtok(input, " ");
| ^~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
sumint.cpp:4:22: note: initializing argument 1 of ‘char* strtok(char*, const char*)’
4 | char *strtok(char *str, const char *delim);
| ~~~~~~^~~