Problem arrayfind
User hinnn
Submission Time 2026-04-24 17:07:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int32_t main()’:
arrayfind.cpp:19:20: error: invalid types ‘long long int[long long int]’ for array subscript
19 | if (L[j] < x) {
| ^
arrayfind.cpp:20:23: error: expected ‘;’ before ‘}’ token
20 | smol++
| ^
| ;
21 | } else if (L[j] > x) {
| ~
arrayfind.cpp:21:27: error: invalid types ‘long long int[long long int]’ for array subscript
21 | } else if (L[j] > x) {
| ^
arrayfind.cpp:22:22: error: expected ‘;’ before ‘}’ token
22 | beg++
| ^
| ;
23 | }
| ~
arrayfind.cpp:26:60: error: expected ‘;’ before ‘}’ token
26 | cout << "Smaller: " << smol << ",