citymapping.cpp: In function 'void find_roads(int, int, int*, int*, int*)':
citymapping.cpp:16:8: error: 'q' was not declared in this scope
16 | if(q==(ll)5e5)
| ^
citymapping.cpp:18:24: error: 'n' was not declared in this scope
18 | for(int i=1;i<=n;i++)
| ^
citymapping.cpp:22:17: error: 'dis' was not declared in this scope; did you mean 'div'?
22 | dis[i][j]=get_distance(i,j);
| ^~~
| div
citymapping.cpp:26:24: error: 'n' was not declared in this scope
26 | for(int i=2;i<=n;i++)
| ^
citymapping.cpp:32:20: error: 'dis' was not declared in this scope; did you mean 'div'?
32 | if(dis[i][1]==dis[j][1]+dis[i][j])
| ^~~
| div
citymapping.cpp:34:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
34 | if(luu=0) luu=j;
| ~~~^~
citymapping.cpp:43:20: error: 'dis' was not declared in this scope; did you mean 'div'?
43 | W[i-1]=dis[i][luu];
| ^~~
| div
citymapping.cpp:50:24: error: 'n' was not declared in this scope
50 | for(int i=1;i<=n;i++)
| ^
citymapping.cpp:52:13: error: 'd' was not declared in this scope
52 | d[i]=get_distance(i,cc);
| ^
citymapping.cpp:55:20: error: conflicting declaration 'std::vector<std::pair<long long int, long long int> > cc'
55 | vector<pli>cc;
| ^~
citymapping.cpp:48:12: note: previous declaration as 'll cc'
48 | ll cc=1;
| ^~
citymapping.cpp:56:24: error: 'n' was not declared in this scope
56 | for(int i=1;i<=n;i++)
| ^
citymapping.cpp:4:12: error: request for member 'push_back' in 'cc', which is of non-class type 'll' {aka 'long long int'}
4 | #define pb push_back
| ^~~~~~~~~
citymapping.cpp:58:16: note: in expansion of macro 'pb'
58 | cc.pb({get_distance(i,cc),i});
| ^~
citymapping.cpp:60:17: error: request for member 'begin' in 'cc', which is of non-class type 'll' {aka 'long long int'}
60 | sort(cc.begin(),cc.end());
| ^~~~~
citymapping.cpp:60:28: error: request for member 'end' in 'cc', which is of non-class type 'll' {aka 'long long int'}
60 | sort(cc.begin(),cc.end());
| ^~~
citymapping.cpp:61:26: error: request for member 'size' in 'cc', which is of non-class type 'll' {aka 'long long int'}
61 | for(int i=1;i<cc.size();i++)
| ^~~~
citymapping.cpp:63:20: error: invalid types 'll {aka long long int}[int]' for array subscript
63 | A[i]=cc[i].se;
| ^
citymapping.cpp:64:20: error: invalid types 'll {aka long long int}[int]' for array subscript
64 | B[i]=cc[i-1].se;
| ^
citymapping.cpp:65:20: error: invalid types 'll {aka long long int}[int]' for array subscript
65 | W[i]=cc[i].fi-cc[i-1].fi;
| ^
citymapping.cpp:65:29: error: invalid types 'll {aka long long int}[int]' for array subscript
65 | W[i]=cc[i].fi-cc[i-1].fi;
| ^