shoes.cpp: In function 'int64 count_swaps(int*, int)':
shoes.cpp:13:22: error: expected statement at end of input
13 | if (S[i] < 0)
| ^
shoes.cpp:13:22: error: expected '}' at end of input
shoes.cpp:10:33: note: to match this '{'
10 | for (int i = 0; i < n; i++) {
| ^
shoes.cpp:13:22: error: expected '}' at end of input
13 | if (S[i] < 0)
| ^
shoes.cpp:6:35: note: to match this '{'
6 | int64 count_swaps(int S[], int n) {
| ^
shoes.cpp:13:22: warning: no return statement in function returning non-void [-Wreturn-type]
13 | if (S[i] < 0)
| ^