| Problem | vectorindexing |
|---|---|
| User | Yuhmama |
| Submission Time | 2026-06-24 09:19:52 |
| 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:1: error: expected primary-expression at end of input
16 | }
| ^
vectorindexing.cpp:16:2: error: expected ‘;’ at end of input
16 | }
| ~^
| ;
vectorindexing.cpp:16:1: error: expected primary-expression at end of input
16 | }
| ^
vectorindexing.cpp:16:2: error: expected ‘)’ at end of input
16 | }
| ~^
| )
vectorindexing.cpp:10:6: note: to match this ‘(’
10 | for (i=2, i<=N, i++) {
| ^
vectorindexing.cpp:16:1: error: expecte