longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:11:5: error: 'vecto' was not declared in this scope
11 | vecto<int> v;
| ^~~~~
longesttrip.cpp:11:11: error: expected primary-expression before 'int'
11 | vecto<int> v;
| ^~~
longesttrip.cpp:12:32: error: 'v' was not declared in this scope
12 | for(int i = 0; i < n; i++) v.push_back(i);
| ^
longesttrip.cpp:18:27: error: 'v' was not declared in this scope
18 | if(p1 != p2) swap(v[p1], v[p2]);
| ^
longesttrip.cpp:28:39: error: 'v' was not declared in this scope
28 | if(are_connected({a.back()}, {v[i]})) a.push_back(v[i]);
| ^
longesttrip.cpp:28:25: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
28 | if(are_connected({a.back()}, {v[i]})) a.push_back(v[i]);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>
longesttrip.cpp:29:43: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
29 | else if(b.empty() || are_connected({b.back()}, {v[i]})) b.push_back(v[i]);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
| |
| <brace-enclosed initializer list>