Problem collectmushrooms
User Dynonychus
Submission Time 2024-01-10 22:52:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms.cpp: In function ‘void fill(long long int*, long long int)’:
collectmushrooms.cpp:21:13: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
21 | search[i][j] = search[i][j - 1];
| ^
collectmushrooms.cpp:21:28: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
21 | search[i][j] = search[i][j - 1];
| ^
collectmushrooms.cpp: In function ‘long long int query(long long int*, long long int, long long int)’:
collectmushrooms.cpp:31:2: error: ‘j’ was not declared in this scope
31 | j = (int)log2(R - L + 1);
| ^
collectmushrooms.cpp: In function ‘void RMQ(long long int*, long long int, std::deque<long long int>, long long int)’:
collectmushrooms.cpp:45:7: error: ‘i’ was not declared in this scope
45 | for (i = 0; i < m; i++)
| ^
coll