Language: C++

#include<bits/stdc++.h>
#define V vector
#define L long
#define W V<L>
using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};set<V<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}

Compiler output:
a.cc: In function 'std::vector<long int> S(std::vector<std::vector<long int> >)':
a.cc:5:82: error: no matching function for call to 'std::set<std::vector<std::vector<long int> > >::set(int)'
    5 | using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};set<V<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                  ^
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:273:9: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  273 |         set(_InputIterator __first, _InputIterator __last,
      |         ^~~
/usr/include/c++/14/bits/stl_set.h:273:9: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:210:9: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const _Compare&, const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  210 |         set(_InputIterator __first, _InputIterator __last,
      |         ^~~
/usr/include/c++/14/bits/stl_set.h:210:9: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:193:9: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  193 |         set(_InputIterator __first, _InputIterator __last)
      |         ^~~
/usr/include/c++/14/bits/stl_set.h:193:9: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:267:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; allocator_type = std::allocator<std::vector<std::vector<long int> > >]'
  267 |       set(initializer_list<value_type> __l, const allocator_type& __a)
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:267:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:261:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&, std::__type_identity_t<_Alloc>&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<std::vector<long int> > >]'
  261 |       set(set&& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:261:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:257:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&, std::__type_identity_t<_Alloc>&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; std::__type_identity_t<_Alloc> = std::allocator<std::vector<std::vector<long int> > >]'
  257 |       set(const set& __x, const __type_identity_t<allocator_type>& __a)
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:257:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:253:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; allocator_type = std::allocator<std::vector<std::vector<long int> > >]'
  253 |       set(const allocator_type& __a)
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:253:33: note:   no known conversion for argument 1 from 'int' to 'const std::set<std::vector<std::vector<long int> > >::allocator_type&' {aka 'const std::allocator<std::vector<std::vector<long int> > >&'}
  253 |       set(const allocator_type& __a)
      |           ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_set.h:245:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const _Compare&, const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; allocator_type = std::allocator<std::vector<std::vector<long int> > >]'
  245 |       set(initializer_list<value_type> __l,
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:245:40: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<std::vector<std::vector<long int> > >'
  245 |       set(initializer_list<value_type> __l,
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_set.h:233:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  233 |       set(set&&) = default;
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:233:11: note:   no known conversion for argument 1 from 'int' to 'std::set<std::vector<std::vector<long int> > >&&'
  233 |       set(set&&) = default;
      |           ^~~~~
/usr/include/c++/14/bits/stl_set.h:225:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  225 |       set(const set&) = default;
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:225:11: note:   no known conversion for argument 1 from 'int' to 'const std::set<std::vector<std::vector<long int> > >&'
  225 |       set(const set&) = default;
      |           ^~~~~~~~~~
/usr/include/c++/14/bits/stl_set.h:178:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const _Compare&, const allocator_type&) [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >; allocator_type = std::allocator<std::vector<std::vector<long int> > >]'
  178 |       set(const _Compare& __comp,
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:178:27: note:   no known conversion for argument 1 from 'int' to 'const std::less<std::vector<std::vector<long int> > >&'
  178 |       set(const _Compare& __comp,
      |           ~~~~~~~~~~~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_set.h:169:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set() [with _Key = std::vector<std::vector<long int> >; _Compare = std::less<std::vector<std::vector<long int> > >; _Alloc = std::allocator<std::vector<std::vector<long int> > >]'
  169 |       set() = default;
      |       ^~~
/usr/include/c++/14/bits/stl_set.h:169:7: note:   candidate expects 0 arguments, 1 provided
a.cc:5:96: error: no match for 'operator[]' (operand types are 'std::set<std::vector<std::vector<long int> > >' and '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'})
    5 | using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};set<V<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                ^
a.cc:5:140: error: no match for 'operator[]' (operand types are 'std::set<std::vector<std::vector<long int> > >' and '__gnu_cxx::__alloc_traits<std::allocator<long int>, long int>::value_type' {aka 'long int'})
    5 | using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};set<V<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |                                                                                                                                            ^
a.cc:5:208: error: no match for 'operator[]' (operand types are 'std::set<std::vector<std::vector<long int> > >' and 'bool')
    5 | using namespace std;L E=70,M=2e17,i,a,b;W S(V<W>p){if(!E)return{1,0};set<V<W>>T(2);for(W x:p){T[x[1]&1].insert({x[0]/2,x[1]/2});if(x[0]&1)T[x[1]&1].insert({x[0]/2,++x[1]/2});}for(L i;i<2;i++){L c=0;for(W x:T[!i])c^=(2*x[0]+x[1])%3+1;if(!c){E--;W A=S(T[i]);A[0]*=2;A[1]*=2;A[1]+=i;return A;}}for(W&v:p)v[0]++;W A=S(p);A[0]--;return A;}int main(){cin>>i;V<W>p(i);while(i--,cin>>a>>b)p[i]={a+M,b+M};W x=S(p);cout<<x[0]-M<<" "<<x[1]-M;}
      |