icc.cpp: In function 'void run(int)':
icc.cpp:43:52: error: cannot convert 'std::vector<int>' to 'int*'
43 | }while(!query(a[0].size(), a[1].size(), a[0], a[1]));
| ~~~^
| |
| std::vector<int>
In file included from icc.cpp:2:
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:13:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | #define loop(i, a, b) for(ll i=a;i<b;i++)
......
48 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ~~~~~~~~~~~~~~~~~
icc.cpp:48:13: note: in expansion of macro 'loop'
48 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ^~~~
icc.cpp:48:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ~^~~~~~~~~~~~~~
icc.cpp:49:51: error: cannot convert 'std::vector<int>' to 'int*'
49 | if(query(a[1].size(), b[0].size(), a[1], b[0])) a[0]=b[0];
| ~~~^
| |
| std::vector<int>
In file included from icc.cpp:2:
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:13:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | #define loop(i, a, b) for(ll i=a;i<b;i++)
......
55 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ~~~~~~~~~~~~~~~~~
icc.cpp:55:13: note: in expansion of macro 'loop'
55 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ^~~~
icc.cpp:55:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | loop(j, 0, a[0].size()) b[j<a[0].size()/2].ps(a[0][j]);
| ~^~~~~~~~~~~~~~
icc.cpp:56:51: error: cannot convert 'std::vector<int>' to 'int*'
56 | if(query(a[1].size(), b[0].size(), a[1], b[0])) a[0]=b[0];
| ~~~^
| |
| std::vector<int>
In file included from icc.cpp:2:
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:13:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | #define loop(i, a, b) for(ll i=a;i<b;i++)
......
63 | loop(j, 0, dsu.size()){
| ~~~~~~~~~~~~~~~~
icc.cpp:63:9: note: in expansion of macro 'loop'
63 | loop(j, 0, dsu.size()){
| ^~~~