Problem lampposts
User StormyGood
Submission Time 2026-01-01 00:32:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp: In function ‘void find_lampposts(int, int, int*)’:
lampposts.cpp:27:16: error: invalid types ‘int[int]’ for array subscript
27 | if (ans[mid]!=1e8) cur = ans[mid];
| ^
lampposts.cpp:27:37: error: invalid types ‘int[int]’ for array subscript
27 | if (ans[mid]!=1e8) cur = ans[mid];
| ^
lampposts.cpp:31:11: error: invalid types ‘int[int]’ for array subscript
31 | ans[mid]=cur;
| ^