Problem omnomnom
User pIaceholder
Submission Time 2024-01-19 17:39:06
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: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: expected ‘;’ before ‘)’ token
15 | for (int o; m[i]) {
| ^
| ;
omnomnom.cpp: In function ‘int main()’:
omnomnom.cpp:39:27: error: expected ‘;’ before ‘int’
39 | memset(dp, -1, sizeof(dp))
|