Problem lampposts
User Gladius3482
Submission Time 2022-12-27 10:18:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp: In function ‘void find_lampposts(int, int, int*)’:
lampposts.cpp:7:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | if(nearest_lamppost==1){
| ^
lampposts.cpp:8:4: error: ‘x’ was not declared in this scope
8 | x[1]=(i-1)*2;
| ^