| Problem | naptime |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2025-12-07 23:46:30 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
naptime.cpp: In function ‘int main()’:
naptime.cpp:65:42: error: request for member ‘w’ in ‘cells.std::vector<int>::operator[](((std::vector<int>::size_type)j))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
65 | if(children[i].second < cells[j].w) i++;
| ^
naptime.cpp:66:46: error: request for member ‘w’ in ‘cells.std::vector<int>::operator[](((std::vector<int>::size_type)j))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
66 | else if(children[i].first > cells[j].w) j++;
| ^
naptime.cpp:67:47: error: request for member ‘w’ in ‘cells.std::vector<int>::operator[](((std::vector<int>::size_type)j))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::alloca