Problem | swapsort |
---|---|
User | BoneMeBurner |
Submission Time | 2024-07-26 17:30:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:19:2: error: ‘sorted_V’ was not declared in this scope
19 | sorted_V = sort(V.start(), V.last())
| ^~~~~~~~
swapsort.cpp:19:20: error: ‘class std::vector<long long int>’ has no member named ‘start’
19 | sorted_V = sort(V.start(), V.last())
| ^~~~~
swapsort.cpp:19:31: error: ‘class std::vector<long long int>’ has no member named ‘last’; did you mean ‘at’?
19 | sorted_V = sort(V.start(), V.last())
| ^~~~
| at
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
| ^
|