| Problem | justright |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-11-06 14:36:15 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
justright.cpp: In function ‘int main()’:
justright.cpp:20:54: error: no match for ‘operator+’ (operand types are ‘std::multiset<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} and ‘long long int’)
20 | if (scores.size() > k) scores.erase(scores.begin()+k);
| ~~~~~~~~~~~~~~^~
| | |
| | long long int
| std::multiset<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from justright.cpp:1: