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

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:19:3: error: ‘For’ was not declared in this scope
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: At global scope:
sumint.cpp:29:3: error: expected unqualified-id before ‘return’
29 | return 0;
| ^~~~~~
sumint.cpp:31:3: error: ‘cout’ does not name a type
31 | cout << s;
| ^~~~
sumint.cpp:33:1: error: expected declaration before ‘}’ token
33 | }
| ^