Problem sumint
User AdwinLau
Submission Time 2024-11-26 12:34:05
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:29:3: error: expected primary-expression before ‘return’
29 | return 0;
| ^~~~~~
sumint.cpp:27:4: error: expected ‘;’ before ‘return’
27 | }
| ^
| ;
28 |
29 | return 0;
| ~~~~~~
sumint.cpp:29:3: error: expected primary-expression before ‘return’
29 | return 0;
| ^~~~~~
sumint.cpp:27:4: error: expected ‘)’ before ‘return’
27 | }
| ^
| )
28 |
29 | return 0;
| ~~~~~~
sumint.cpp:19:7: note: to match this ‘(’
19 | for (i < d){
| ^