popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:8:11: error: declaration of 'int n' shadows a parameter
int T,n,i;
^
popa.cpp:12:32: 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 (Left,-1,sizeof Left);
^~~~
popa.cpp:13:33: 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 (Right,-1,sizeof Right);
^~~~~
popa.cpp:8:13: warning: unused variable 'i' [-Wunused-variable]
int T,n,i;
^
popa.cpp:38:1: error: expected '}' at end of input
}
^
popa.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^