Problem sumint
User theBlackMissile
Submission Time 2023-08-13 13:17:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:15:21: error: ‘length’ was not declared in this scope
15 | for(int i = 0; i < length(input); i ++){
| ^~~~~~
sumint.cpp:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if(input[i] == " "){
| ^~~
sumint.cpp:17:15: error: expected primary-expression before ‘int’
17 | d_total += int(input[i - 2: i - 1]);
| ^~~