Problem | deque |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-27 13:57:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deque.cpp: In function ‘int deq(int, int)’:
deque.cpp:10:34: error: no match for call to ‘(std::vector<std::vector<int> >) (int, int&)’
10 | dp[i][j] = max(vect[i]-dp(i+1, j), vect[j]-dp(i, j-1));
| ^
deque.cpp:10:54: error: no match for call to ‘(std::vector<std::vector<int> >) (int&, int)’
10 | dp[i][j] = max(vect[i]-dp(i+1, j), vect[j]-dp(i, j-1));
| ^
deque.cpp: In function ‘int main()’:
deque.cpp:20:33: error: expected ‘)’ before ‘;’ token
20 | cout<<max(vect[n-1]-deq(0, n-2);, vect[0]-deq(1, n-1))
| ~ ^
| )
deque.cpp:20:34: error: expected primary-expression before ‘,’ token
20 | cout<<max(vect[n-1]-deq(0, n-2);, vect[0]-deq(1, n-1))
| ^