Problem | swapsort |
---|---|
User | theRealLucasXD |
Submission Time | 2025-05-27 17:51:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:22:44: error: expected ‘)’ before ‘;’ token
22 | swap(order[current1-1], order[current2-1];
| ~ ^
| )
swapsort.cpp:24:27: error: ‘current’ was not declared in this scope; did you mean ‘current2’?
24 | wrong[current1] = order[current-1];
| ^~~~~~~
| current2