wall.cpp: In function 'void buildWall(int, int, int*, int*, int*, int*, int*)':
wall.cpp:6:33: warning: 'sizeof' on array function parameter 'finalHeight' will return size of 'int*' [-Wsizeof-array-argument]
6 | memset(finalHeight,0,sizeof(finalHeight));
| ~^~~~~~~~~~~~
wall.cpp:5:83: note: declared here
5 | void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]) {
| ~~~~^~~~~~~~~~~~~
wall.cpp:6:26: 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]
6 | memset(finalHeight,0,sizeof(finalHeight));
| ^~~~~~~~~~~~~~~~~~~