/in/P5.cpp: In function 'int main()':
/in/P5.cpp:31:7: error: 'sort' is not a member of 'std'
std::sort(vin.begin(), vin.end());
^~~~
/in/P5.cpp:31:7: note: suggested alternative: 'sqrt'
std::sort(vin.begin(), vin.end());
^~~~
sqrt
/in/P5.cpp:35:37: error: no matching function for call to 'std::vector<int>::push_back(std::vector<int>::iterator)'
if(t%2==0)vint.push_back(vin.end())
^
In file included from /usr/include/c++/7/vector:64:0,
from /in/P5.cpp:6:
/usr/include/c++/7/bits/stl_vector.h:939: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]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' to 'const value_type& {aka const int&}'
/usr/include/c++/7/bits/stl_vector.h:953: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]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from 'std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}' to 'std::vector<int>::value_type&& {aka int&&}'
/in/P5.cpp:34:7: warning: unused variable 'y' [-Wunused-variable]
int y=0;
^
/in/P5.cpp:38:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<vint.size(); i++) cout << vint[i] << " "; // vint is the vector containing the array
~^~~~~~~~~~~~
/in/P5.cpp:23:9: warning: unused variable 'j' [-Wunused-variable]
int j=0;
^