sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:47:7: error: 'copyI' was not declared in this scope
copyI[x]=I[x];
^~~~~
sorting.cpp:47:7: note: suggested alternative: 'CopyI'
copyI[x]=I[x];
^~~~~
CopyI
sorting.cpp:48:7: error: 'copyS' was not declared in this scope
copyS[x]=S[x];
^~~~~
sorting.cpp:48:7: note: suggested alternative: 'CopyS'
copyS[x]=S[x];
^~~~~
CopyS
sorting.cpp:56:10: error: 'copyS' was not declared in this scope
sa=copyS[a];
^~~~~
sorting.cpp:56:10: note: suggested alternative: 'CopyS'
sa=copyS[a];
^~~~~
CopyS
sorting.cpp:60:7: error: 'copyI' was not declared in this scope
copyI[sa]=b;
^~~~~
sorting.cpp:60:7: note: suggested alternative: 'CopyI'
copyI[sa]=b;
^~~~~
CopyI
sorting.cpp:63:20: error: 'copyI' was not declared in this scope
if (movestofix(copyI,copyS,N)>i) hi=mid;
^~~~~
sorting.cpp:63:20: note: suggested alternative: 'CopyI'
if (movestofix(copyI,copyS,N)>i) hi=mid;
^~~~~
CopyI
sorting.cpp:63:26: error: 'copyS' was not declared in this scope
if (movestofix(copyI,copyS,N)>i) hi=mid;
^~~~~
sorting.cpp:63:26: note: suggested alternative: 'CopyS'
if (movestofix(copyI,copyS,N)>i) hi=mid;
^~~~~
CopyS
sorting.cpp:45:9: warning: unused variable 'CopyI' [-Wunused-variable]
int CopyI[N],CopyS[N];
^~~~~
sorting.cpp:45:18: warning: unused variable 'CopyS' [-Wunused-variable]
int CopyI[N],CopyS[N];
^~~~~
sorting.cpp:66:5: error: 'mid' was not declared in this scope
i=mid;
^~~
sorting.cpp:34:39: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^