Problem swapsort
User Duk168
Submission Time 2024-03-21 10:54:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapsort.cpp: In function ‘int main()’:
swapsort.cpp:22:20: error: expected primary-expression before ‘/’ token
22 | swapth++; /
| ^
swapsort.cpp:24:5: error: expected primary-expression before ‘for’
24 | for (int i = 0; i < k; i++) {
| ^~~
swapsort.cpp:24:21: error: ‘i’ was not declared in this scope
24 | for (int i = 0; i < k; i++) {
| ^
swapsort.cpp:33:21: error: expected ‘}’ at end of input
33 | swapth--;
| ^
swapsort.cpp:21:19: note: to match this ‘{’
21 | if (isSorted) {
| ^
swapsort.cpp:33:21: error: expected ‘}’ at end of input
33 | swapth--;
| ^
swapsort.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^