-4

1.error:unordered multiset is not declared in this scope 2.everything is alright except that unordered_multiset a code.

#include<bits/stdc++.h>
#define ff first
#define ss second
#define all(c) c.begin(), c.end()
#define present(container, element) (container.find(element) != container.end())
#define cpresent(container, element) (find(all(container),element) != container.end())
#define sz(a) int((a).size())
#define pb push_back
#define loop(start,end) for(int i=start;i<end;i++)
#define ll long long int
#define pii pair < int , int >
#define mset(x,v) memset(x, v, sizeof(x)) //search it
using namespace std;
typedef vector< int > vi;
typedef vector< vi > vvi;
typedef pair< int,int > ii;

int main ()
{
    ios_base::sync_with_stdio(false);cout.tie(0);cin.tie(0);
    int n;
    int q;
    cin>>n;cin>>q;
    unordered_multiset <int> s;

}
Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982

1 Answers1

4

If you use the correct headers (in this case #include <unordered_set>) rather than the abomination that is <bits/stdc++.h> then gcc will probably helpfully tell you that you need to enable c++11 to use that header.

You need to pass -std=c++11 on your compiler command line to enable c++11 features.

Unrelated but all those #defines are really not a good idea and using namespace std can cause issues too.

Alan Birtles
  • 32,622
  • 4
  • 31
  • 60