Problem vectorindexing
User Hihihihihi
Submission Time 2026-06-24 09:37:35
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:13: error: ‘a’ was not declared in this scope
7 | int value=a[x];
| ^
vectorindexing.cpp:7:15: error: ‘x’ was not declared in this scope
7 | int value=a[x];
| ^