Problem lampposts
User LeBronJames
Submission Time 2026-10-31 09:25:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp: In function ‘void find_lampposts(int, int, int*)’:
lampposts.cpp:4:2: error: ‘fill’ was not declared in this scope
4 | fill(ans,ans+L+1,-1);
| ^~~~
lampposts.cpp:23:13: error: ‘nearest_lamppost’ was not declared in this scope
23 | t = nearest_lamppost(mid);
| ^~~~~~~~~~~~~~~~
lampposts.cpp:27:21: error: ‘min’ was not declared in this scope; did you mean ‘mid’?
27 | maxx[t-1]=min(maxx[t-1],mid);
| ^~~
| mid