icc.cpp: In function 'long long int dsuque(std::vector<long long int>, std::vector<long long int>)':
icc.cpp:29:40: error: cannot convert 'std::vector<long long int>' to 'int*'
29 | return query(qa.size(), qb.size(), qa, qb);
| ^~
| |
| std::vector<long long 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: In function 'std::pair<long long int, long long int> solve()':
icc.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
74 | loop(i, 0, fa.size()) l[i%2].ps(fa[i]);
| ~~~~~~~~~~~~~~~
icc.cpp:74:9: note: in expansion of macro 'loop'
74 | loop(i, 0, fa.size()) l[i%2].ps(fa[i]);
| ^~~~
icc.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
80 | loop(i, 0, fb.size()) l[i%2].ps(fb[i]);
| ~~~~~~~~~~~~~~~
icc.cpp:80:9: note: in expansion of macro 'loop'
80 | loop(i, 0, fb.size()) l[i%2].ps(fb[i]);
| ^~~~
icc.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
87 | loop(i, 0, ta.size()) l[i%2].ps(ta[i]);
| ~~~~~~~~~~~~~~~
icc.cpp:87:9: note: in expansion of macro 'loop'
87 | loop(i, 0, ta.size()) l[i%2].ps(ta[i]);
| ^~~~
icc.cpp:88:45: error: cannot convert 'std::vector<long long int>' to 'int*'
88 | if(query(l[0].size(), tb.size(), l[0], tb)) ta=l[0];
| ~~~^
| |
| std::vector<long long 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:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
93 | loop(i, 0, tb.size()) l[i%2].ps(tb[i]);
| ~~~~~~~~~~~~~~~
icc.cpp:93:9: note: in expansion of macro 'loop'
93 | loop(i, 0, tb.size()) l[i%2].ps(tb[i]);
| ^~~~
icc.cpp:94:45: error: cannot convert 'std::vector<long long int>' to 'int*'
94 | if(query(l[0].size(), ta.size(), l[0], ta)) tb=l[0];
| ~~~^
| |
| std::vector<long long 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: In function 'void run(long long int)':
icc.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
104 | loop(i, 0, dsu.size()) fore(u, dsu[i]) if(u==ans.fi) a=i;
| ~~~~~~~~~~~~~~~~
icc.cpp:104:9: note: in expansion of macro 'loop'
104 | loop(i, 0, dsu.size()) fore(u, dsu[i]) if(u==ans.fi) a=i;
| ^~~~
icc.cpp:3:42: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
3 | #define loop(i, a, b) for(long long i=a;i<b;i++)
......
108 | loop(i, 0, dsu.size()) fore(u, dsu[i]) if(u==ans.se) b=i;
| ~~~~~~~~~~~~~~~~
icc.cpp:108:9: note: in expansion of macro 'loop'
108 | loop(i, 0, dsu.size()) fore(u, dsu[i]) if(u==ans.se) b=i;
| ^~~~