Problem vectorindexing
User Magenta
Submission Time 2026-06-24 09:46:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

vectorindexing.cpp: In function ‘int main()’:
vectorindexing.cpp:9:22: error: ‘n’ was not declared in this scope
9 | for (int i = 1; i < n; i++)
| ^
vectorindexing.cpp:15:23: error: ‘n’ was not declared in this scope
15 | for (int i = 1; i <= n; i++)
| ^