friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:5:8: error: declaration of 'int n' shadows a parameter
5 | int n,temp,temp2,test = 0,high = 0;
| ^
friend.cpp:4:20: note: 'int n' previously declared here
4 | int findSample(int n, int confidence[], int host[], int protocol[]){
| ~~~~^
friend.cpp:5:15: warning: unused variable 'temp2' [-Wunused-variable]
5 | int n,temp,temp2,test = 0,high = 0;
| ^~~~~
friend.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
16 | }
| ^