Problem | lampposts |
---|---|
User | PlayVoltz |
Submission Time | 2023-12-15 21:52:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lampposts.cpp:5:40: error: declaration of ‘A’ as array of references
5 | void find_lampposts(int L, int N, int &A[]){
| ^
lampposts.cpp: In function ‘void find_lampposts(...)’:
lampposts.cpp:6:18: error: ‘N’ was not declared in this scope
6 | for (int i=0; i<N; ++i){
| ^
lampposts.cpp:7:23: error: ‘L’ was not declared in this scope
7 | int low = 0, high = L;
| ^
lampposts.cpp:10:43: error: ‘X’ was not declared in this scope
10 | if (nearest_lamppost(mid)<i)low=mid+1, X[i]=mid;
| ^