0_0_39683260_7274.cpp:9:94: error: conflicting declaration 'long long int w'
9 | int tot[2], head[2][SIZE], nxt[2][SIZE], ver[2][SIZE], w[2][SIZE], t, n, m, dis[SIZE], u, v, w, ans;
| ^
0_0_39683260_7274.cpp:9:56: note: previous declaration as 'long long int w [2][1000001]'
9 | int tot[2], head[2][SIZE], nxt[2][SIZE], ver[2][SIZE], w[2][SIZE], t, n, m, dis[SIZE], u, v, w, ans;
| ^
0_0_39683260_7274.cpp: In function 'int main()':
0_0_39683260_7274.cpp:50:48: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
50 | read(u), read(v), read(w);
| ^
| |
| long long int (*)[1000001]
0_0_39683260_7274.cpp:11:23: note: initializing argument 1 of 'void read(long long int&)'
11 | inline void read(int &res){
| ^
0_0_39683260_7274.cpp:50:48: error: cannot bind rvalue '(long long int)((long long int (*)[1000001])(& w))' to 'long long int&'
50 | read(u), read(v), read(w);
| ^
0_0_39683260_7274.cpp:51:38: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
51 | add(0, u, v, w);
| ^
| |
| long long int (*)[1000001]
0_0_39683260_7274.cpp:18:35: note: initializing argument 4 of 'void add(long long int, long long int, long long int, long long int)'
18 | void add(int p, int x, int y, int z){
| ^
0_0_39683260_7274.cpp:52:38: error: invalid conversion from 'long long int (*)[1000001]' to 'long long int' [-fpermissive]
52 | add(1, v, u, w);
| ^
| |
| long long int (*)[1000001]
0_0_39683260_7274.cpp:18:35: note: initializing argument 4 of 'void add(long long int, long long int, long long int, long long int)'
18 | void add(int p, int x, int y, int z){
| ^
|