Problem | swapsort |
---|---|
User | blob |
Submission Time | 2024-01-02 17:18:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:23:7: error: ‘arr’ was not declared in this scope
23 | if (arr[L] == L) count--;
| ^~~
swapsort.cpp:24:7: error: ‘arr’ was not declared in this scope
24 | if (arr[R] == R) count--;
| ^~~
swapsort.cpp:25:7: error: ‘arr’ was not declared in this scope
25 | if (arr[L] == R) count++;
| ^~~
swapsort.cpp:26:7: error: ‘arr’ was not declared in this scope
26 | if (arr[R] == L) count++;
| ^~~