Problem swapsort
User BoneMeBurner
Submission Time 2024-07-26 17:31:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapsort.cpp: In function ‘int main()’:
swapsort.cpp:19:2: error: ‘sorted_V’ was not declared in this scope
19 | sorted_V = sort(V.begin(), V.end())
| ^~~~~~~~
swapsort.cpp:26:27: error: expected ‘;’ before ‘if’
26 | swap(V[c - 1], V[d - 1])
| ^
| ;
27 | if (V == sorted_V){
| ~~
swapsort.cpp:31:17: error: expected ‘;’ before ‘}’ token
31 | cout << Counter
| ^
| ;
32 | }
| ~