Problem sumint
User TheAccomplice
Submission Time 2024-04-13 10:05:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:11:7: error: ‘i’ was not declared in this scope
11 | for (i = 0, i < x, i++){
| ^
sumint.cpp:15:17: error: expected initializer before ‘;’ token
15 | long long int y;
| ^
sumint.cpp:16:2: error: expected primary-expression before ‘for’
16 | for (i = 0, i < x, i++){
| ^~~
sumint.cpp:15:18: error: expected ‘)’ before ‘for’
15 | long long int y;
| ^
| )
16 | for (i = 0, i < x, i++){
| ~~~
sumint.cpp:11:6: note: to match this ‘(’
11 | for (i = 0, i < x, i++){
| ^
sumint.cpp:20:10: error: ‘total’ was not declared in this scope
20 | cout << total;
| ^~~~~
sumint.cpp:22:1: error: expected primary-expression before ‘return’
22 | return 0;
| ^~~~~~
sumint.cpp:20:16: error: expected ‘)’ b