| Problem | vectorindexing |
|---|---|
| User | Jaysonwee22 |
| Submission Time | 2026-06-24 09:34:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
vectorindexing.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> numbers = {1, 2, 1, 2};
| ^~~~~~
vectorindexing.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
vectorindexing.cpp:6:12: note: in expansion of macro ‘int’
6 | vector<int> numbers = {1, 2, 1, 2};
| ^~~
vectorindexing.cpp: At global scope:
vectorindexing.cpp:8:3: error: ‘vectors’ does not name a type
8 | vectors numbers =(1, 2, 1, 2,)
| ^~~~~~~
vectorindexing.cpp:11:5: error: ‘cout’ does not name a type
11 | cout << numbers[1]; // 2
| ^~~~
vectorindexing.cpp:12:5: error: ‘cout’ does not name a type
12 | cout << nu