Problem | sumint |
---|---|
User | privatepolychoron |
Submission Time | 2024-01-26 10:47:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:10: error: expected ‘;’ before ‘vector’
7 | cin >> x
| ^
| ;
8 | vector<int> v;
| ~~~~~~
sumint.cpp:9:2: error: ‘v’ was not declared in this scope
9 | v.resize (x);
| ^
sumint.cpp:11:6: error: ‘i’ was not declared in this scope
11 | for(i = 0, i <= x, i++){
| ^
sumint.cpp:15:14: error: ‘start’ was not declared in this scope
15 | accumulate (start(v), end(v), 0);
| ^~~~~
sumint.cpp:17:2: error: expected primary-expression before ‘return’
17 | return 0;
| ^~~~~~
sumint.cpp:15:35: error: expected ‘)’ before ‘return’
15 | accumulate (start(v), end(v), 0);
| ^
| )
16 |
17 | return 0;
| ~~~~~~
sumint.cpp:11:5: note: