ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:29:2: error: 'multiset' was not declared in this scope
29 | multiset<int> tmp;
| ^~~~~~~~
ricehub.cpp:29:2: note: suggested alternatives:
In file included from /usr/include/c++/10/set:61,
from ricehub.cpp:6:
/usr/include/c++/10/bits/stl_set.h:70:11: note: 'std::multiset'
70 | class multiset;
| ^~~~~~~~
In file included from ricehub.cpp:6:
/usr/include/c++/10/set:80:13: note: 'std::pmr::multiset'
80 | using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>;
| ^~~~~~~~
ricehub.cpp:29:11: error: expected primary-expression before 'int'
29 | multiset<int> tmp;
| ^~~
ricehub.cpp:30:22: error: 'n' was not declared in this scope
30 | for (int i = 0; i < n; i++) tmp.insert(x[i]);
| ^
ricehub.cpp:30:30: error: 'tmp' was not declared in this scope; did you mean 'tm'?
30 | for (int i = 0; i < n; i++) tmp.insert(x[i]);
| ^~~
| tm
ricehub.cpp:30:41: error: 'x' was not declared in this scope
30 | for (int i = 0; i < n; i++) tmp.insert(x[i]);
| ^
ricehub.cpp:32:23: error: 'l' was not declared in this scope
32 | for (int i = 1; i <= l; i++)
| ^
ricehub.cpp:35:12: error: expected primary-expression before 'int'
35 | multiset<int> ms = tmp;
| ^~~
ricehub.cpp:36:17: error: 'tmp_b' was not declared in this scope
36 | long long b = tmp_b;
| ^~~~~
ricehub.cpp:39:15: error: 'ms' was not declared in this scope; did you mean 'mx'?
39 | auto it1 = ms.lower_bound(i);
| ^~
| mx
ricehub.cpp:56:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
56 | if (min(num1 - i, i - num2) <= b)
| ^~~
| std::min
In file included from /usr/include/c++/10/algorithm:62,
from ricehub.cpp:4:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: 'std::min' declared here
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
ricehub.cpp:64:8: error: 'max' was not declared in this scope; did you mean 'std::max'?
64 | mx = max(mx, ans);
| ^~~
| std::max
In file included from /usr/include/c++/10/algorithm:62,
from ricehub.cpp:4:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: 'std::max' declared here
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~