keys.cpp: In function 'std::vector<int> find_reachable(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
keys.cpp:7:28: error: expected unqualified-id before '<' token
7 | vector<bool> vi(n, 0), <bool> keys(n, 0);
| ^
keys.cpp:10:47: error: 'keys' was not declared in this scope
10 | for(int j = 0; j < n; j++) vi[j] = 0, keys[j] = 0;
| ^~~~
keys.cpp:12:9: error: 'keys' was not declared in this scope
12 | keys[r[i]] = 1;
| ^~~~
keys.cpp:14:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int j = 0; j < u.size(); j++) {
| ~~^~~~~~~~~~