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

Compile Error

collectmushrooms.cpp:6:12: error: ‘MAX’ was not declared in this scope
6 | int search[MAX][MAX];
| ^~~
collectmushrooms.cpp:6:17: error: ‘MAX’ was not declared in this scope
6 | int search[MAX][MAX];
| ^~~
collectmushrooms.cpp: In function ‘void fill(long long int*, long long int)’:
collectmushrooms.cpp:13:11: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
13 | search[i][0] = i;
| ^
collectmushrooms.cpp:19:20: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
19 | if (arr[search[i][j - 1]]
| ^
collectmushrooms.cpp:20:36: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
20 | > arr[search[i + (1 << (j - 1))][j - 1]])
| ^
collectmu