vector<priority_queue <int> > vect(m, priority_queue <int>); 

The compiler swears

error: expected primary-expression before ')' token

  • You did not try at the same time to declare, for example, the variable a as int a(int) ? ... - Harry

1 answer 1

Or announce

 vector<priority_queue <int> > vect(m); 

or define this queue if the default queue does not suit you - but do not try to use the type as a value ...