Problem sumint
User AdwinLau
Submission Time 2024-04-05 16:17:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:14:24: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
14 | char *token = strtok(input, " ");
| ^~~~~
| |
| char
sumint.cpp:10:22: note: initializing argument 1 of ‘char* strtok(char*, const char*)’
10 | char *strtok(char *str, const char *delim);
| ~~~~~~^~~