Problem | grid |
---|---|
User | Henries |
Submission Time | 2024-10-25 09:34:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
grid.cpp:3:8: error: ‘h’ was not declared in this scope
3 | int dp[h][w];
| ^
grid.cpp:3:11: error: ‘w’ was not declared in this scope
3 | int dp[h][w];
| ^
grid.cpp: In function ‘long long int solve(std::pair<long long int, long long int>, std::vector<std::__cxx11::basic_string<char> >&)’:
grid.cpp:5:6: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
5 | if (dp[p.first][p.second] != 0){
| ^~
| p
grid.cpp:19:3: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
19 | dp[p.first][p.second] = solve({p.first-1,p.second},grid) + solve({p.first,p.second -1},grid);
| ^~
| p
grid.cpp: In function ‘int main()’:
grid.cpp:32:9: error: ‘dp’ was not declared in this scope
32 | memset(dp, 0 ,sizeof(dp));
| ^~