park.cpp: In function 'int main()':
park.cpp:76:70: warning: operation on 'ans[1][2]' may be undefined [-Wsequence-point]
ans[1][2]=ans[1][2]=min(ans[1][2], max(d[l][0], d[l][2]));
^
park.cpp: At global scope:
park.cpp:135:5: error: redefinition of 'int n'
int n, k, w, h, N, o, R,
^
park.cpp:27:5: note: 'int n' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:8: error: redefinition of 'int k'
int n, k, w, h, N, o, R,
^
park.cpp:27:8: note: 'int k' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:11: error: redefinition of 'int w'
int n, k, w, h, N, o, R,
^
park.cpp:27:11: note: 'int w' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:14: error: redefinition of 'int h'
int n, k, w, h, N, o, R,
^
park.cpp:27:14: note: 'int h' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:17: error: redefinition of 'int N'
int n, k, w, h, N, o, R,
^
park.cpp:27:17: note: 'int N' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:20: error: redefinition of 'int o'
int n, k, w, h, N, o, R,
^
park.cpp:27:20: note: 'int o' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:135:23: error: redefinition of 'int R'
int n, k, w, h, N, o, R,
^
park.cpp:27:23: note: 'int R' previously declared here
int n, k, w, h, N, o, R,
^
park.cpp:136:11: error: redefinition of 'int first [2005]'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:6:11: note: 'int first [2005]' previously declared here
#define x first
^
park.cpp:28:5: note: in expansion of macro 'x'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:136:20: error: redefinition of 'int second [2005]'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:7:11: note: 'int second [2005]' previously declared here
#define y second
^
park.cpp:28:14: note: in expansion of macro 'y'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:136:29: error: redefinition of 'int r [2005]'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:28:23: note: 'int r [2005]' previously declared here
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:136:41: error: redefinition of 'int d [2005][4]'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:28:32: note: 'int d [2005][4]' previously declared here
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:136:58: error: redefinition of 'int dis [2005][2005]'
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:28:44: note: 'int dis [2005][2005]' previously declared here
x[2005], y[2005], r[2005], d[2005][4], dis[2005][2005];
^
park.cpp:137:13: error: redefinition of 'int ans [4][4]'
int ans[4][4], D;
^
park.cpp:29:5: note: 'int ans [4][4]' previously declared here
int ans[4][4], D;
^
park.cpp:137:16: error: redefinition of 'int D'
int ans[4][4], D;
^
park.cpp:29:16: note: 'int D' previously declared here
int ans[4][4], D;
^
park.cpp:138:9: error: redefinition of 'std::priority_queue<std::pair<int, int> > q'
pq<pii> q;
^
park.cpp:30:9: note: 'std::priority_queue<std::pair<int, int> > q' previously declared here
pq<pii> q;
^
park.cpp: In function 'void dijk(int)':
park.cpp:139:6: error: redefinition of 'void dijk(int)'
void dijk(int O){
^
park.cpp:31:6: note: 'void dijk(int)' previously defined here
void dijk(int O){
^
park.cpp: In function 'int main()':
park.cpp:156:5: error: redefinition of 'int main()'
int main(){
^
park.cpp:48:5: note: 'int main()' previously defined here
int main(){
^
park.cpp:184:70: warning: operation on 'ans[1][2]' may be undefined [-Wsequence-point]
ans[1][2]=ans[1][2]=min(ans[1][2], max(d[l][0], d[l][2]));
^
park.cpp: In function 'int main()':
park.cpp:50:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i%i%i", &n, &k, &w, &h);
^
park.cpp:52:45: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i%i", &x[l], &y[l], &r[l]);
^
park.cpp:88:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i", &R, &o);
^
park.cpp: In function 'int main()':
park.cpp:158:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i%i%i", &n, &k, &w, &h);
^
park.cpp:160:45: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i%i", &x[l], &y[l], &r[l]);
^
park.cpp:196:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i", &R, &o);
^