insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:26:24: error: reference to 'left' is ambiguous
26 | for(int i=0;i<n;i++) left.push_back(i);
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~
insects.cpp:34:19: error: reference to 'left' is ambiguous
34 | for(int i=0;i<left.size();i++){
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~
insects.cpp:35:19: error: reference to 'left' is ambiguous
35 | v.push_back(left[i]);
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~
insects.cpp:36:19: error: reference to 'left' is ambiguous
36 | move_inside(left[i]);
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~
insects.cpp:39:22: error: reference to 'left' is ambiguous
39 | move_outside(left[i]);
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~
insects.cpp:45:5: error: reference to 'left' is ambiguous
45 | left = v;
| ^~~~
In file included from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from insects.cpp:2:
/usr/include/c++/11/bits/ios_base.h:1029:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1029 | left(ios_base& __base)
| ^~~~
insects.cpp:5:15: note: 'std::vector<int> left'
5 | vector<int> v,left;
| ^~~~