Problem sumint
User AdwinLau
Submission Time 2024-11-26 12:32:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:19:13: error: expected ‘;’ before ‘)’ token
19 | for (i < d):
| ^
| ;
sumint.cpp:23:9: error: invalid conversion from ‘char*’ to ‘long long int’ [-fpermissive]
23 | s= s + input
| ~~^~~~~~~
| |
| char*
sumint.cpp:23:16: error: expected ‘;’ before ‘i’
23 | s= s + input
| ^
| ;
24 |
25 | i = i+1
| ~
sumint.cpp:25:11: error: expected ‘)’ before ‘}’ token
25 | i = i+1
| ^
| )
26 |
27 | }
| ~
sumint.cpp:19:7: note: to match this ‘(’
19 | for (i < d):
| ^
sumint.cpp:27:3: error: expected primary-expression before ‘}’ token
27 | }
| ^
sumint.cpp: At global scope:
sumint.cpp:29:3: error: expect