Problem | gecko |
---|---|
User | carson |
Submission Time | 2025-04-29 20:39:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gecko.cpp: In function ‘int main()’:
gecko.cpp:7:21: error: redeclaration of ‘std::vector<std::vector<int> > arr’
7 | vector<vector<int>>arr(h+1,vector<int>(w));
| ^~~
gecko.cpp:6:21: note: ‘std::vector<std::vector<int> > arr’ previously declared here
6 | vector<vector<int>>arr(h+1,vector<int>(w));
| ^~~
gecko.cpp:10:11: error: ‘values’ was not declared in this scope
10 | cin >> values[i][j];
| ^~~~~~
gecko.cpp:15:32: error: expected ‘)’ before ‘arr’
15 | arr[i][j] = max(max(arr[i-1]arr[j-1],arr[i-1][j]),arr[i-1],[j+1])) + values[i][j];
| ~ ^~~
| )
gecko.cpp:15:52: error: no matching function for call to ‘max(__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_ty