Problem | cake |
---|---|
User | hariaakash646 |
Submission Time | 2024-03-27 17:07:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cake.cpp: In function ‘int main()’:
cake.cpp:248:23: error: could not convert ‘st.std::set<std::pair<long long int, int> >::find(std::pair<long long int, int>(std::make_pair<int&, long long int&>(x, (* & vec.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)x))))))’ from ‘std::set<std::pair<long long int, int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<long long int, int> >’} to ‘bool’
248 | if(st.find(mp(x, vec[x]))) st.erase(mp(x, vec[x]));
| ~~~~~~~^~~~~~~~~~~~~~~
| |
| std::set<std::pair<long long int, int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<long long int, int> >}