lokahia.cpp:39:8: error: 'ii' was not declared in this scope
39 | vector<ii> v;
| ^~
lokahia.cpp:39:10: error: template argument 1 is invalid
39 | vector<ii> v;
| ^
lokahia.cpp:39:10: error: template argument 2 is invalid
lokahia.cpp: In function 'int FindBase(int)':
lokahia.cpp:59:21: error: request for member 'push_back' in 'v', which is of non-class type 'int'
59 | if (c[i]) v.push_back({c[i],i});
| ^~~~~~~~~
lokahia.cpp:61:12: error: request for member 'begin' in 'v', which is of non-class type 'int'
61 | sort(v.begin(),v.end());
| ^~~~~
lokahia.cpp:61:22: error: request for member 'end' in 'v', which is of non-class type 'int'
61 | sort(v.begin(),v.end());
| ^~~
lokahia.cpp:62:17: error: invalid types 'int[int]' for array subscript
62 | int st = v[0].second;
| ^
lokahia.cpp:64:19: error: 'begin' was not declared in this scope
64 | for (auto x : v){
| ^
lokahia.cpp:64:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from lokahia.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from lokahia.cpp:1:
/usr/include/c++/9/bits/fs_dir.h:516:3: note: 'std::filesystem::__cxx11::begin'
516 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
lokahia.cpp:64:19: error: 'end' was not declared in this scope
64 | for (auto x : v){
| ^
lokahia.cpp:64:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from lokahia.cpp:1:
/usr/include/c++/9/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from lokahia.cpp:1:
/usr/include/c++/9/bits/fs_dir.h:520:3: note: 'std::filesystem::__cxx11::end'
520 | end(recursive_directory_iterator) noexcept
| ^~~
lokahia.cpp:78:18: error: 'bad' was not declared in this scope
78 | else bad.push_back(x);
| ^~~