Problem | gecko |
---|---|
User | glog |
Submission Time | 2023-05-24 17:24:06 |
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:79: 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:12:86: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
12 | return dp[x][y] = arr[y][x] + max({recur(x-1, y+1), recur(x, y+1), recur(x+1), y+1});
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from gec