ricehub.cpp: In function 'int besthub(int, int, int*, long long int)':
ricehub.cpp:9:1: error: 'multiset' was not declared in this scope
multiset<int>dinamic_multiset;
^~~~~~~~
ricehub.cpp:9:1: note: suggested alternative:
In file included from /usr/include/c++/7/set:61:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:87,
from ricehub.cpp:2:
/usr/include/c++/7/bits/stl_set.h:69:11: note: 'std::multiset'
class multiset;
^~~~~~~~
ricehub.cpp:9:10: error: expected primary-expression before 'int'
multiset<int>dinamic_multiset;
^~~
ricehub.cpp:11:17: error: request for member 'size' in 'X', which is of non-class type 'int*'
for(int i=0;i<X.size();i++){
^~~~
ricehub.cpp:17:5: error: 'dinamic_multiset' was not declared in this scope
dinamic_multiset.insert(c_hub);
^~~~~~~~~~~~~~~~
ricehub.cpp:33:5: error: 'dinamic_multiset' was not declared in this scope
dinamic_multiset.insert(c_hub);
^~~~~~~~~~~~~~~~
ricehub.cpp:43:10: error: expected primary-expression before 'int'
multiset<int>::iterator it = dinamic_multiset.end();
^~~
ricehub.cpp:44:5: error: 'it' was not declared in this scope
for(it = dinamic_multiset.begin(); it != dinamic_multiset.end(); it++){
^~
ricehub.cpp:44:5: note: suggested alternative: 'int'
for(it = dinamic_multiset.begin(); it != dinamic_multiset.end(); it++){
^~
int
ricehub.cpp:44:10: error: 'dinamic_multiset' was not declared in this scope
for(it = dinamic_multiset.begin(); it != dinamic_multiset.end(); it++){
^~~~~~~~~~~~~~~~