Problem | bacteria |
---|---|
User | ThePwo |
Submission Time | 2023-12-04 15:12:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bacteria.cpp: In function ‘int32_t main()’:
bacteria.cpp:46:43: error: no match for ‘operator=’ (operand types are ‘std::_Rb_tree_const_iterator<long long int>’ and ‘std::set<long long int>::size_type’ {aka ‘long unsigned int’})
46 | if (ar[*it] == 0) it = s.erase(ar[*it]);
| ^
In file included from /usr/include/c++/9/map:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from bacteria.cpp:1:
/usr/include/c++/9/bits/stl_tree.h:326:12: note: candidate: ‘constexpr std::_Rb_tree_const_iterator<long long int>& std::_Rb_tree_const_iterator<long long int>::operator=(const std::_Rb_tree_const_iterator<long long int>&)’
326 | struct _Rb_tree_const_iterator
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_tree.h:326:12: note: no known conversion for argument 1 from ‘std::set<long long int>::size_type’