icc.cpp: In function 'void run(int)':
icc.cpp:43:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int j = 0; j < v.size(); j++) arr[j] = v[j];
| ~~^~~~~~~~~~
icc.cpp:49:16: warning: narrowing conversion of 'it' from 'long long int' to 'int' [-Wnarrowing]
49 | int g[] = {it};
| ^~
icc.cpp:50:31: error: invalid conversion from 'int' to 'int*' [-fpermissive]
50 | bool cur = query(1, 1, h[0], g[0]);
| ~~~^
| |
| int
In file included from icc.cpp:6:
icc.h:10:30: note: initializing argument 3 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp:50:37: error: invalid conversion from 'int' to 'int*' [-fpermissive]
50 | bool cur = query(1, 1, h[0], g[0]);
| ~~~^
| |
| int
In file included from icc.cpp:6:
icc.h:10:38: note: initializing argument 4 of 'int query(int, int, int*, int*)'
10 | int query(int a, int b, int *A, int *B);
| ~~~~~^
icc.cpp:53:11: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
53 | join(h, g);
| ^
| |
| int*
icc.cpp:22:14: note: initializing argument 1 of 'void join(long long int, long long int)'
22 | void join(lg u, lg v)
| ^
icc.cpp:53:14: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
53 | join(h, g);
| ^
| |
| int*
icc.cpp:22:20: note: initializing argument 2 of 'void join(long long int, long long int)'
22 | void join(lg u, lg v)
| ^
icc.cpp:54:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
54 | setRoad(h, g);
| ^
| |
| int*
In file included from icc.cpp:6:
icc.h:11:18: note: initializing argument 1 of 'void setRoad(int, int)'
11 | void setRoad(int a, int b);
| ~~~~^
icc.cpp:54:17: error: invalid conversion from 'int*' to 'int' [-fpermissive]
54 | setRoad(h, g);
| ^
| |
| int*
In file included from icc.cpp:6:
icc.h:11:25: note: initializing argument 2 of 'void setRoad(int, int)'
11 | void setRoad(int a, int b);
| ~~~~^