| Problem | gecko |
|---|---|
| User | chatdanai |
| Submission Time | 2026-02-24 14:20:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gecko.cpp:2:13: error: expected initializer before ‘long’
2 | #define int long long
| ^~~~
gecko.cpp:7:1: note: in expansion of macro ‘int’
7 | int val[505][505];
| ^~~
gecko.cpp: In function ‘long long int knapsack(long long int, long long int)’:
gecko.cpp:12:6: error: ‘val’ was not declared in this scope
12 | if (val[r][c]!=-1) return val[r][c];
| ^~~
gecko.cpp:13:9: error: ‘val’ was not declared in this scope
13 | return val[r][c]=max(knapsack(r-1,c+1),max(knapsack(r,c+1),knapsack(r+1,c+1)))+h[r][c];
| ^~~
gecko.cpp:13:81: error: ‘h’ was not declared in this scope
13 | return val[r][c]=max(knapsack(r-1,c+1),max(knapsack(r,c+1),knapsack(r+1,c+1)))+h[r][c];
| ^
gecko.cpp: In function ‘int main()’:
gecko.cpp:18:12: error: ‘val’ was not declared in this scope
18 | memset(val