Problem | gecko |
---|---|
User | glog |
Submission Time | 2023-05-24 17:25:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gecko.cpp: In function ‘long long int recur(long long int, long long int)’:
gecko.cpp:12:78: error: too few arguments to function ‘long long int recur(long long int, long long int)’
12 | return dp[x][y] = arr[y][x] + max(recur(x-1, y+1), recur(x, y+1), recur(x+1), y+1);
| ^
gecko.cpp:8:5: note: declared here
8 | int recur(int x, int y){
| ^~~~~
gecko.cpp: In function ‘int main()’:
gecko.cpp:18:18: error: ‘y’ was not declared in this scope
18 | cin >> arr[y][x];
| ^
gecko.cpp:18:21: error: ‘x’ was not declared in this scope
18 | cin >> arr[y][x];
| ^
gecko.cpp:24:26: error: ‘x’ was not declared in this scope
24 | ans = max(ans, recur(x, 0));
| ^