Problem | deforestation |
---|---|
User | samvar0907 |
Submission Time | 2024-01-26 12:40:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:62:81: error: request for member ‘begin’ in ‘result_combined_values.std::vector<int>::operator[](((std::vector<int>::size_type)((num_trees - i) - 1)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
62 | int x = *std::min_element(result_combined_values[num_trees - i - 1].begin(),
| ^~~~~
deforestation.cpp:63:81: error: request for member ‘end’ in ‘result_combined_values.std::vector<int>::operator[](((std::vector<int>::size_type)((num_trees - i) - 1)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
63 | result_combined_values[num_trees - i - 1].end());
|