reverse.cpp: In function 'std::vector<long long int> reverse(std::vector<long long int>)':
reverse.cpp:5:17: error: 'swap' was not declared in this scope
5 | swap(a[i],a[a.size()-i-1]);
| ^~~~
reverse.cpp:5:17: note: suggested alternatives:
In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/vector:80,
from reverse.h:3,
from reverse.cpp:1:
/usr/include/c++/13/tuple:2201:5: note: 'std::swap'
2201 | swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
| ^~~~
In file included from /usr/include/c++/13/bits/stl_pair.h:61,
from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/vector:62:
/usr/include/c++/13/bits/move.h:189:5: note: 'std::swap'
189 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/usr/include/c++/13/bits/move.h:189:5: note: 'std::swap'
In file included from /usr/include/c++/13/compare:37,
from /usr/include/c++/13/bits/stl_pair.h:65:
/usr/include/c++/13/concepts:243:43: note: 'std::ranges::__cust::swap'
243 | inline constexpr __cust_swap::_Swap swap{};
| ^~~~
/usr/include/c++/13/concepts:183:35: note: 'std::ranges::__cust_swap::swap'
183 | template<typename _Tp> void swap(_Tp&, _Tp&) = delete;
| ^~~~
reverse.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
reverse_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~