Problem sumint
User privatepolychoron
Submission Time 2024-01-26 10:48:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:11:6: error: ‘i’ was not declared in this scope
11 | for(i = 0, i <= x, i++){
| ^
sumint.cpp:15:22: error: ‘start’ was not declared in this scope
15 | cout << accumulate (start(v), end(v), 0);
| ^~~~~
sumint.cpp:17:2: error: expected primary-expression before ‘return’
17 | return 0;
| ^~~~~~
sumint.cpp:15:43: error: expected ‘)’ before ‘return’
15 | cout << accumulate (start(v), end(v), 0);
| ^
| )
16 |
17 | return 0;
| ~~~~~~
sumint.cpp:11:5: note: to match this ‘(’
11 | for(i = 0, i <= x, i++){
| ^