Problem buffet
User Pyrros
Submission Time 2023-01-31 14:53:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buffet.cpp: In function ‘int main()’:
buffet.cpp:17:16: error: cannot convert ‘const std::vector<int>’ to ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} in assignment
17 | dp[0] = max(v[0], v[1]);
| ~~~^~~~~~~~~~~~
| |
| const std::vector<int>