bitaro.cpp:23:32: error: conflicting declaration 'std::priority_queue<std::pair<int, int> > q'
priority_queue<pair<int,int> > q;
^
bitaro.cpp:17:9: note: previous declaration as 'int q'
int n,m,q;
^
bitaro.cpp: In function 'void djk(int)':
bitaro.cpp:31:9: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push({0,v});
^~~~
bitaro.cpp:33:17: error: request for member 'empty' in 'q', which is of non-class type 'int'
while (!q.empty()) {
^~~~~
bitaro.cpp:34:23: error: request for member 'top' in 'q', which is of non-class type 'int'
int v = q.top().sc,cur = q.top().fr;
^~~
bitaro.cpp:35:15: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^~~
bitaro.cpp:37:17: error: 'cur' was not declared in this scope
if (cur < d[v])
^~~
bitaro.cpp:43:27: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push({d[to],to});
^~~~
bitaro.cpp: At global scope:
bitaro.cpp:48:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main () {
^
bitaro.cpp: In function 'int main()':
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:49:7: note: in expansion of macro 'scan'
scan(n);scan(m);scan(q);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:49:15: note: in expansion of macro 'scan'
scan(n);scan(m);scan(q);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:49:23: note: in expansion of macro 'scan'
scan(n);scan(m);scan(q);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:52:13: note: in expansion of macro 'scan'
scan(l);scan(r);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:52:21: note: in expansion of macro 'scan'
scan(l);scan(r);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:57:13: note: in expansion of macro 'scan'
scan(t);scan(y);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:57:21: note: in expansion of macro 'scan'
scan(t);scan(y);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:64:19: note: in expansion of macro 'scan'
scan(x);
^~~~