Problem | sumint |
---|---|
User | Avinash |
Submission Time | 2025-06-17 12:06:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:8:2: error: ‘sum’ was not declared in this scope
8 | sum = 0;
| ^~~
sumint.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i = 0, i < d, i++){
| ^
sumint.cpp:16:2: error: expected primary-expression before ‘return’
16 | return 0;
| ^~~~~~
sumint.cpp:15:14: error: expected ‘)’ before ‘return’
15 | cout << sum;
| ^
| )
16 | return 0;
| ~~~~~~
sumint.cpp:9:6: note: to match this ‘(’
9 | for (i = 0, i < d, i++){
| ^