Problem arrayfind
User PerihelionfromAphelion
Submission Time 2026-08-08 21:18:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i = 0; i < l; i++) {
| ^
arrayfind.cpp:25:7: error: redeclaration of ‘int low’
25 | int low = 0;
| ^~~
arrayfind.cpp:17:7: note: ‘int low’ previously declared here
17 | int low = 0;
| ^~~
arrayfind.cpp:26:7: error: redeclaration of ‘int high’
26 | int high = l;
| ^~~~
arrayfind.cpp:18:7: note: ‘int high’ previously declared here
18 | int high = l;
| ^~~~