mart.cpp: In function 'void dijk()':
mart.cpp:27:44: error: '>>' should be '> >' within a nested template argument list
priority_queue<pt,vector<pt>,greater<pt>> q;
^
mart.cpp:38:21: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(pii x : G[u.vb]){ //x.va : vertex, x.vb : cost
^
mart.cpp: In function 'void query()':
mart.cpp:73:5: error: 'unordered_set' was not declared in this scope
unordered_set<int> u;
^
mart.cpp:73:19: error: expected primary-expression before 'int'
unordered_set<int> u;
^
mart.cpp:75:9: error: 'u' was not declared in this scope
u.clear();
^
mart.cpp: In function 'void input()':
mart.cpp:15:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&N,&M,&K,&Q);
^
mart.cpp:17:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&hi[i]);
^
mart.cpp:20:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&a,&b,&c);
^
mart.cpp: In function 'void query()':
mart.cpp:76:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&S,&X);
^
mart.cpp:78:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^