| Problem | vectorindexing |
|---|---|
| User | Yuhmama |
| Submission Time | 2026-06-24 09:44:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:15:14: error: conflicting declaration ‘std::vector<int> Q’
15 | vector<int> Q(N)
| ^
vectorindexing.cpp:8:12: note: previous declaration as ‘int Q’
8 | int N, Q;
| ^
vectorindexing.cpp:16:21: error: ‘i’ was not declared in this scope
16 | for (int i = 0; i < Q; i++) {
| ^
vectorindexing.cpp:20:14: error: no match for call to ‘(std::vector<int>) (int&)’
20 | cout << A(Q);
| ^