Problem | flybot |
---|---|
User | XinLoiDuongNgu |
Submission Time | 2025-09-21 10:54:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flybot.cpp: In function ‘int main()’:
flybot.cpp:37:29: error: expected ‘,’ before ‘-’ token
37 | dp[i][j] = (max(dp[i],[j-1],0) + max(dp[i-1][j],0))%MOD;
| ^
| ,
flybot.cpp:37:29: error: expected identifier before ‘-’ token
flybot.cpp: In lambda function:
flybot.cpp:37:32: error: expected ‘{’ before ‘,’ token
37 | dp[i][j] = (max(dp[i],[j-1],0) + max(dp[i-1][j],0))%MOD;
| ^
flybot.cpp: In function ‘int main()’:
flybot.cpp:37:34: error: no matching function for call to ‘max(long long int [w], main()::<lambda()>, int)’
37 | dp[i][j] = (max(dp[i],[j-1],0) + max(dp[i-1][j],0))%MOD;
| ^
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,