Problem conversations_easy
User havinaaaaash
Submission Time 2024-11-15 23:15:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conversations_easy.cpp: In function ‘int main()’:
conversations_easy.cpp:28:30: 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’)
28 | if(a.begin() + k == j){
| ~~~~~~~~~ ^ ~
| | |
| | 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 conversations_easy.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:423:5: note: candidate: ‘template<class _Iter