longesttrip.cpp: In function 'void dodaj_wierzcholek(int)':
longesttrip.cpp:8:28: error: 'are_connected' was not declared in this scope
8 | if (!sciezka[0].size() || are_connected({v},{sciezka[0].back()})){
| ^~~~~~~~~~~~~
longesttrip.cpp:12:28: error: 'are_connected' was not declared in this scope
12 | if (!sciezka[1].size() || are_connected({v},{sciezka[1].back()})){
| ^~~~~~~~~~~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:22:7: error: 'i' was not declared in this scope
22 | for (i = 1; i <= n; i++) dodaj_wierzcholek(v);
| ^
longesttrip.cpp:22:19: error: 'n' was not declared in this scope
22 | for (i = 1; i <= n; i++) dodaj_wierzcholek(v);
| ^
longesttrip.cpp:22:45: error: 'v' was not declared in this scope
22 | for (i = 1; i <= n; i++) dodaj_wierzcholek(v);
| ^