sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:18:20: warning: 'sizeof' on array function parameter 'P' will return size of 'int*' [-Wsizeof-array-argument]
memset(P,0,sizeof P);
^
sorting.cpp:16:62: note: declared here
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:18:20: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(P,0,sizeof P);
^
sorting.cpp:19:20: warning: 'sizeof' on array function parameter 'Q' will return size of 'int*' [-Wsizeof-array-argument]
memset(Q,0,sizeof Q);
^
sorting.cpp:16:70: note: declared here
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:19:20: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(Q,0,sizeof Q);
^
sorting.cpp:16:37: warning: unused parameter 'M' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:16:45: warning: unused parameter 'X' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^
sorting.cpp:16:53: warning: unused parameter 'Y' [-Wunused-parameter]
int findSwapPairs(int N,int S[],int M,int X[],int Y[],int P[],int Q[])
^