sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:120:16: error: incompatible types in assignment of 'int*' to 'int [200001]'
n = N, s = S, x = X, y = Y, p = P, q = Q;
^
sorting.cpp:120:23: error: incompatible types in assignment of 'int*' to 'int [300001]'
n = N, s = S, x = X, y = Y, p = P, q = Q;
^
sorting.cpp:120:30: error: incompatible types in assignment of 'int*' to 'int [300001]'
n = N, s = S, x = X, y = Y, p = P, q = Q;
^
sorting.cpp:120:37: error: incompatible types in assignment of 'int*' to 'int [300001]'
n = N, s = S, x = X, y = Y, p = P, q = Q;
^
sorting.cpp:120:44: error: incompatible types in assignment of 'int*' to 'int [300001]'
n = N, s = S, x = X, y = Y, p = P, q = Q;
^
sorting.cpp:119:39: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp: In function 'void readData()':
sorting.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
sorting.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &s[i]);
~~~~~^~~~~~~~~~~~~
sorting.cpp:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
~~~~~^~~~~~~~~~
sorting.cpp:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x[i], &y[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
sorting.cpp: In function 'int findPos(int)':
sorting.cpp:75:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^