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:39: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:45: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:50: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:50: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:50:30: warning: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } is ill-formed in C++11 [-Wnarrowing]
mat.cpp:36: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:44: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);
^