| Problem | lampposts |
|---|---|
| User | LeBronJames |
| Submission Time | 2026-10-31 09:34:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:13:11: error: ‘max’ was not declared in this scope; did you mean ‘maxx’?
13 | int l = max(minn[finding],A[finding-1]), r = maxx[finding];
| ^~~
| maxx
lampposts.cpp:15:13: error: ‘r’ was not declared in this scope
15 | while (l<=r)
| ^
lampposts.cpp:25:13: error: ‘nearest_lamppost’ was not declared in this scope
25 | t = nearest_lamppost(mid);
| ^~~~~~~~~~~~~~~~
lampposts.cpp:31:21: error: ‘min’ was not declared in this scope; did you mean ‘mid’?
31 | maxx[i]=min(maxx[i],mid);
| ^~~
| mid