Problem lampposts
User PlayVoltz
Submission Time 2023-12-13 13:49:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp:5:40: error: declaration of ‘X’ as array of references
5 | void find_lampposts(int L, int N, int &X[]){
| ^
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:24: error: ‘L’ was not declared in this scope
7 | int low = -1, high = L+1;
| ^
lampposts.cpp:13:3: error: ‘X’ was not declared in this scope
13 | X[i] = low;
| ^