Problem | skillmoves |
---|---|
User | hwy |
Submission Time | 2023-06-19 00:24:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:18:9: error: no match for ‘operator[]’ (operand types are ‘std::multiset<std::pair<int, int> >’ and ‘int’)
18 | if (M[j].second <= ans) {
| ^
skillmoves.cpp:19:13: error: no match for ‘operator[]’ (operand types are ‘std::multiset<std::pair<int, int> >’ and ‘int’)
19 | ans += M[j].first;
| ^
skillmoves.cpp:20:22: error: no match for ‘operator+’ (operand types are ‘std::multiset<std::pair<int, int> >::iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<int, int> >’} and ‘int’)
20 | M.erase(M.begin()+j);
| ~~~~~~~~~^~
| | |
| | int
| std::multiset<std::pair<int, int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}
In file included from /usr/include/c++