Problem vectorindexing
User Hihihihihi
Submission Time 2026-06-24 09:37:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

vectorindexing.cpp:3:2: error: invalid preprocessing directive #defineint; did you mean #define?
3 | #defineint long long
| ^~~~~~~~~
| define
vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:6:8: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int a[n-1]
| ^
| yn
vectorindexing.cpp:7:3: error: expected initializer before ‘int’
7 | int value=a[x]
| ^~~
vectorindexing.cpp:7:16: error: expected ‘}’ at end of input
7 | int value=a[x]
| ^
vectorindexing.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^