Problem | sumint |
---|---|
User | AdwinLau |
Submission Time | 2024-11-26 12:31:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:17:3: error: expected ‘,’ or ‘;’ before ‘cin’
17 | cin >> d;
| ^~~
sumint.cpp:19:7: error: expected ‘(’ before ‘i’
19 | for i < d:
| ^
| (
sumint.cpp:19:12: error: found ‘:’ in nested-name-specifier, expected ‘::’
19 | for i < d:
| ^
| ::
sumint.cpp:19:11: error: ‘d’ is not a class, namespace, or enumeration
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 |