Problem | swapsort |
---|---|
User | dminh |
Submission Time | 2023-03-13 22:00:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:9:11: error: invalid types ‘long long int[long long int]’ for array subscript
9 | cin>>k[i];
| ^
swapsort.cpp:10:8: error: invalid types ‘long long int[long long int]’ for array subscript
10 | sep[i]=k[i];
| ^
swapsort.cpp:10:13: error: invalid types ‘long long int[long long int]’ for array subscript
10 | sep[i]=k[i];
| ^
swapsort.cpp:17:13: error: invalid types ‘long long int[long long int]’ for array subscript
17 | swap(k[a-1],k[b-1]);
| ^
swapsort.cpp:17:20: error: invalid types ‘long long int[long long int]’ for array subscript
17 | swap(k[a-1],k[b-1]);
| ^
swapsort.cpp:19:10: error: invalid types ‘long long int[long long int]’ for array subscript
19 | if(k[i]!=sep[i]){
| ^
swapsort.cpp:19:18: error: invalid types ‘long long int[long