Problem arrayfind
User PerihelionfromAphelion
Submission Time 2026-08-08 20:53:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int32_t main()’:
arrayfind.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i = 0; i < l; i++) {
| ^
arrayfind.cpp:16:7: error: ‘a’ was not declared in this scope
16 | sort(a.begin(),a.end());
| ^
arrayfind.cpp:34:11: error: ‘mid’ was not declared in this scope
34 | cout << mid << avg;
| ^~~
arrayfind.cpp:34:18: error: ‘avg’ was not declared in this scope
34 | cout << mid << avg;
| ^~~