sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:8:22: warning: 'sizeof' on array function parameter 'P' will return size of 'int*' [-Wsizeof-array-argument]
memset(P, 0, sizeof P);
^
sorting.cpp:5:66: note: declared here
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp:8:22: 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:9:22: warning: 'sizeof' on array function parameter 'Q' will return size of 'int*' [-Wsizeof-array-argument]
memset(Q, 0, sizeof Q);
^
sorting.cpp:5:75: note: declared here
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp:9:22: 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:5:48: warning: unused parameter 'X' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^
sorting.cpp:5:57: warning: unused parameter 'Y' [-Wunused-parameter]
int findSwapPairs(int N, int S[], int M, int X[], int Y[], int P[], int Q[]) {
^