Problem | zanesgift |
---|---|
User | YH |
Submission Time | 2024-03-14 10:36:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
zanesgift.cpp: In function ‘int smallest_no_of_removals(int, int, int)’:
zanesgift.cpp:12:95: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
12 | if (memoisation_grid[curr_index][largest_subgroup] != -1) return memoisation_grid[curr_index];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| int*
zanesgift.cpp: In function ‘int main()’:
zanesgift.cpp:33:8: error: cannot convert ‘int**’ to ‘int*’ in assignment
33 | arr = new int*[n];
| ^~~~~~~~~~~
| |
| int**
zanesgift.cpp:34:21: error: cannot convert ‘int*’ to ‘int**’ in assignment
34 | memoisation_grid = new int[n];
| ^~~~~~~~~~
|