Problem card
User nutzzzz
Submission Time 2025-01-10 16:23:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:21:53: error: expected ‘)’ before ‘;’ token
21 | if (sfl[i] == 'A') seq.swap(seq[0], seq[m-1];
| ~ ^
| )
card.cpp:22:58: error: no matching function for call to ‘std::vector<int>::swap(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
22 | else if (sfl[i] == 'B') seq.swap(seq[1], seq[m-1]);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,<