mat.cpp:23:40: error: ‘>>’ should be ‘> >’ within a nested template argument list
priority_queue<pp,vector<pp>,greater<pp>> Qi[3010],Qj[3010];
^
mat.cpp: In function ‘int main()’:
mat.cpp:42:20: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
a[i][sz[i]++]=mat{0,0,0,0};
^
mat.cpp:48:20: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
a[p][sz[p]++]=mat{l,r,h,k};
^
mat.cpp:53:18: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
a[i][sz[i]]=mat{1e9,1e9,0,0};
^
mat.cpp:53:30: warning: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
a[i][sz[i]]=mat{1e9,1e9,0,0};
^
mat.cpp:53:30: warning: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
mat.cpp:39:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&W);
^
mat.cpp:47:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d",&p,&l,&r,&h,&k);
^