Problem | swapsort |
---|---|
User | YongXin |
Submission Time | 2023-06-02 21:51:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:22:35: error: expected ‘;’ before ‘o1’
22 | if (r-l!=1) o1+=c(p[r-2],p[r-1])
| ^
| ;
23 | o1+=c(p[r-1],p[r]);
| ~~
swapsort.cpp:27:35: error: expected ‘;’ before ‘o2’
27 | if (r-l!=1) o2+=c(p[r-2],p[r-1])
| ^
| ;
28 | o2+=c(p[r-1],p[r]);
| ~~
swapsort.cpp:29:11: error: expected ‘;’ before ‘if’
29 | s+=o2-o1
| ^
| ;
30 | if (s==n-1) a+=1;
| ~~