art.cpp: In function 'void solve(int)':
art.cpp:80:5: error: 'vector' was not declared in this scope
80 | vector<int> ans(n);
| ^~~~~~
art.cpp:80:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from art.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from art.cpp:2:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
art.cpp:80:12: error: expected primary-expression before 'int'
80 | vector<int> ans(n);
| ^~~
art.cpp:81:34: error: 'ans' was not declared in this scope; did you mean 'abs'?
81 | for (int i = 1; i <= n; i++) ans[i - 1] = i;
| ^~~
| abs
art.cpp:82:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
82 | int x = publish(ans);
| ^~~
| abs
art.cpp:85:20: error: expected primary-expression before 'int'
85 | vector<int> curr = ans;
| ^~~
art.cpp:86:18: error: 'curr' was not declared in this scope
86 | swap(curr[i], curr[i - 1]);
| ^~~~
art.cpp:86:13: error: 'swap' was not declared in this scope
86 | swap(curr[i], curr[i - 1]);
| ^~~~
art.cpp:86:13: note: suggested alternatives:
In file included from /usr/include/c++/11/set:62,
from art.cpp:3:
/usr/include/c++/11/bits/stl_multiset.h:1045:5: note: 'std::swap'
1045 | swap(multiset<_Key, _Compare, _Alloc>& __x,
| ^~~~
In file included from /usr/include/c++/11/bits/exception_ptr.h:43,
from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from art.cpp:1:
/usr/include/c++/11/bits/move.h:196:5: note: 'std::swap'
196 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/usr/include/c++/11/bits/move.h:196:5: note: 'std::swap'
In file included from /usr/include/c++/11/exception:153,
from /usr/include/c++/11/ios:39,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from art.cpp:1:
/usr/include/c++/11/bits/exception_ptr.h:223:5: note: 'std::__exception_ptr::swap'
223 | swap(exception_ptr& __lhs, exception_ptr& __rhs)
| ^~~~
In file included from /usr/include/c++/11/compare:39,
from /usr/include/c++/11/bits/stl_pair.h:65,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from art.cpp:1:
/usr/include/c++/11/concepts:227:43: note: 'std::ranges::__cust::swap'
227 | inline constexpr __cust_swap::_Swap swap{};
| ^~~~
/usr/include/c++/11/concepts:167:35: note: 'std::ranges::__cust_swap::swap'
167 | template<typename _Tp> void swap(_Tp&, _Tp&) = delete;
| ^~~~