| Problem | vectorindexing |
|---|---|
| User | calvinkulit |
| Submission Time | 2026-06-24 09:25:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int>A(N+1);
| ^~~~~~
vectorindexing.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
vectorindexing.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
vectorindexing.cpp:7:9: note: in expansion of macro ‘int’
7 | vector<int>A(N+1);
| ^~~
vectorindexing.cpp:9:10: error: ‘A’ was not declared in this scope
9 | cin >> A[i];
| ^
vectorindexing.cpp:14:11: error: ‘A’ was not declared in this scope
14 | cout << A[temp] << " ";
| ^