| Problem | vectorindexing |
|---|---|
| User | Yuhmama |
| Submission Time | 2026-06-24 09:20:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:9:14: error: conflicting declaration ‘std::vector<int> A’
9 | vector<int> A(N);
| ^
vectorindexing.cpp:7:6: note: previous declaration as ‘int A’
7 | int A; int N;
| ^
vectorindexing.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=2, i<=N, i++) {
| ^
vectorindexing.cpp:16:5: error: expected primary-expression before ‘return’
16 | return 0;
| ^~~~~~
vectorindexing.cpp:15:3: error: expected ‘;’ before ‘return’
15 | }
| ^
| ;
16 | return 0;
| ~~~~~~
vectorindexing.cpp:16:5: error: expected primary-expression before ‘return’
16 | return 0;
| ^~~~~~
vectorindexing.cpp:15:3: error: expected ‘)’ before ‘return’
15 | }
| ^
| )
16 | return 0;
| ~~~~~~
vecto