/in/foo.cc: In function 'int main()':
/in/foo.cc:16:6: warning: unused variable 'p' [-Wunused-variable]
int p;
^
/in/foo.cc:31:13: error: too many arguments to function 'int sr(int*, int, int)'
sr(d,j,min,x);
^
/in/foo.cc:3:5: note: declared here
int sr(int d[10000],int j,int min);
^~
/in/foo.cc: In function 'int sr(int*, int, int, int)':
/in/foo.cc:36:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<x;i++)
^~~
/in/foo.cc:39:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(i>=x) return x;
^~
/in/foo.cc:40:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=i+1;j<x;j++)
^~~
/in/foo.cc:42:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return x-1;
^~~~~~