Problem vectorindexing
User dharshanmb
Submission Time 2026-06-24 10:05:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

vectorindexing.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:8:5: error: ‘cin’ was not declared in this scope
8 | cin >> n>>q;
| ^~~
vectorindexing.cpp:10:1: error: ‘vector’ was not declared in this scope
10 | vector<int> a(n + 1);
| ^~~~~~
vectorindexing.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
vectorindexing.cpp:10:8: note: in expansion of macro ‘int’
10 | vector<int> a(n + 1);
| ^~~
vectorindexing.cpp:12:16: error: ‘a’ was not declared in this scope
12 | cin >> a[i];
| ^
vectorindexing.cpp:17:9: error: ‘cout’ was not declared in this scope
17 | cout << a[x]
| ^~~~
vectorindexing.cpp:17:17: error