Language: C++

#include<cstdio>
#include<algorithm>
#include<functional>
using namespace std;
typedef pair<int,int> P;
int box[300001][300001]={0},cnt[300001][300001]={0};
int main(void)
{
	priority_queue<P, vector<P>, greater<P> >qu;
	int sum,i,j,n,m,c; 
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		scanf("%d",&m[i]);
		for(j=1;j<=m;j++){
		    scanf("%d",&c);
			if(c>box[]&&cnt[i]<=i){
				box[]=c;
				qu.push();
			

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'priority_queue' was not declared in this scope
    9 |         priority_queue<P, vector<P>, greater<P> >qu;
      |         ^~~~~~~~~~~~~~
a.cc:4:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>'
    3 | #include<functional>
  +++ |+#include <queue>
    4 | using namespace std;
a.cc:9:25: error: expected primary-expression before ',' token
    9 |         priority_queue<P, vector<P>, greater<P> >qu;
      |                         ^
a.cc:9:36: error: expected primary-expression before ',' token
    9 |         priority_queue<P, vector<P>, greater<P> >qu;
      |                                    ^
a.cc:9:49: error: expected primary-expression before '>' token
    9 |         priority_queue<P, vector<P>, greater<P> >qu;
      |                                                 ^
a.cc:9:50: error: 'qu' was not declared in this scope
    9 |         priority_queue<P, vector<P>, greater<P> >qu;
      |                                                  ^~
a.cc:13:30: error: invalid types 'int[int]' for array subscript
   13 |                 scanf("%d",&m[i]);
      |                              ^
a.cc:16:34: error: expected primary-expression before ']' token
   16 |                         if(c>box[]&&cnt[i]<=i){
      |                                  ^
a.cc:16:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(c>box[]&&cnt[i]<=i){
      |                                     ~~~~~~^~~
a.cc:17:37: error: expected primary-expression before ']' token
   17 |                                 box[]=c;
      |                                     ^
a.cc:18:43: error: expected '}' at end of input
   18 |                                 qu.push();
      |                                           ^
a.cc:16:47: note: to match this '{'
   16 |                         if(c>box[]&&cnt[i]<=i){
      |                                               ^
a.cc:18:43: error: expected '}' at end of input
   18 |                                 qu.push();
      |                                           ^
a.cc:14:34: note: to match this '{'
   14 |                 for(j=1;j<=m;j++){
      |                                  ^
a.cc:18:43: error: expected '}' at end of input
   18 |                                 qu.push();
      |                                           ^
a.cc:12:26: note: to match this '{'
   12 |         for(i=1;i<=n;i++){
      |                          ^
a.cc:18:43: error: expected '}' at end of input
   18 |                                 qu.push();
      |                                           ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^