Problem lampposts
User wrizz69
Submission Time 2026-07-10 20:05:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp:2:1: error: ‘include’ does not name a type
2 | include "lampposts.h"
| ^~~~~~~
lampposts.cpp: In function ‘void find_lampposts(int, int, int*)’:
lampposts.cpp:14:19: error: ‘nearest_lamppost’ was not declared in this scope
14 | while(r < L && nearest_lamppost(r) == i-1) {l = r; r += 10;}
| ^~~~~~~~~~~~~~~~
lampposts.cpp:18:20: error: ‘nearest_lamppost’ was not declared in this scope
18 | if(nearest_lamppost(mid) == i-1) {l = mid + 1;}
| ^~~~~~~~~~~~~~~~