islands.cpp: In function 'ans find_journey(int, int, std::vector<int>, std::vector<int>)':
islands.cpp:15:7: error: expected unqualified-id before '.' token
15 | ans.ok = 0;
| ^
islands.cpp:16:14: error: expected primary-expression before ';' token
16 | return ans;
| ^
islands.cpp:19:22: error: 'm' was not declared in this scope
19 | for(int i = 0; i < m; i++){
| ^
islands.cpp:24:7: error: expected unqualified-id before '.' token
24 | ans.ok = 0;
| ^
islands.cpp:25:14: error: expected primary-expression before ';' token
25 | return ans;
| ^
islands.cpp:28:6: error: expected unqualified-id before '.' token
28 | ans.ok = 1;
| ^
islands.cpp:30:30: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
30 | x.push_back({ida, regreso});
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from islands.cpp:3:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
islands.cpp:31:7: error: expected unqualified-id before '.' token
31 | ans.v = x;
| ^
islands.cpp:32:14: error: expected primary-expression before ';' token
32 | return ans;
| ^
islands.cpp:34:24: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)'
34 | x.push_back({0, 1, 0});
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from islands.cpp:3:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
islands.cpp:35:6: error: expected unqualified-id before '.' token
35 | ans.v = x;
| ^
islands.cpp:36:13: error: expected primary-expression before ';' token
36 | return ans;
| ^