0_0_14916181_31199.cpp: In function 'int main()': 0_0_14916181_31199.cpp:34:22: error: no match for 'operator[]' (operand types are 'std::multiset<int>' and 'int') if(abs(a[right]-mp[0])<k) ^