Problem omnomnom
User pIaceholder
Submission Time 2024-01-19 17:38:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp: In function ‘int solve(std::vector<std::vector<int> >&, int, bool)’:
omnomnom.cpp:11:30: error: expected ‘;’ before ‘int’
11 | if (dp[i] != -1) return dp[i]
| ^
| ;
12 |
13 | int notake = 0, take = 0;
| ~~~
omnomnom.cpp:15:16: error: could not convert ‘(& m)->std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)i))’ from ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘std::vector<int>’} to ‘bool’
15 | for (int o; m[i]) {
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type {aka std::vector<int>}
omnomnom.cpp:15:17: error: expect