Problem | sumint |
---|---|
User | AdwinLau |
Submission Time | 2024-11-26 12:33:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:27:3: error: expected primary-expression before ‘}’ token
27 | }
| ^
sumint.cpp:25:7: error: expected ‘)’ before ‘}’ token
25 | i =
| ^
| )
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: expected unqualified-id before ‘return’
29 | return 0;
| ^~~~~~
sumint.cpp:31:3: error: ‘cout’ do