treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:16:21: error: 'Ask' was not declared in this scope
16 | val[i][j] = Ask(1, i, 1, j);
| ^~~
treasure.cpp:18:33: error: 'Ask' was not declared in this scope
18 | val[i][j] = val[i][N] - Ask(1, j + 1, i, N);
| ^~~
treasure.cpp:20:33: error: 'Ask' was not declared in this scope
20 | val[i][j] = val[N][j] - Ask(i + 1, 1, N, j);
| ^~~
treasure.cpp:22:55: error: 'Ask' was not declared in this scope
22 | val[i][j] = -(total - val[i][N] - val[N][j] - Ask(i + 1, j + 1, N, N));
| ^~~