Problem | sumint |
---|---|
User | TheAccomplice |
Submission Time | 2024-04-13 10:03:11 |
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 |
9 | vector<long long int> numbers(x);
| ~~~~~~
sumint.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i = 0, i != x-1, i++){
| ^
sumint.cpp:14:17: error: expected initializer before ‘;’ token
14 | long long int y;
| ^
sumint.cpp:15:2: error: expected primary-expression before ‘for’
15 | for (i = 0, i != x-1, i++){
| ^~~
sumint.cpp:14:18: error: expected ‘)’ before ‘for’
14 | long long int y;
| ^
| )
15 | for (i = 0, i != x-1, i++){
| ~~~
sumint.cpp:10:6: note: to match this ‘(’
10 | for (i = 0, i != x-1, i++){
| ^
sumint.cpp:18:1: error: expected primary-expression before ‘re