/in/foo.cc: In function 'int getmin(int*, int)':
/in/foo.cc:17:2: error: expected ',' or ';' before 'for'
  for(int i=1;i<n;i++)
  ^~~
/in/foo.cc:17:14: error: 'i' was not declared in this scope
  for(int i=1;i<n;i++)
              ^
/in/foo.cc: In function 'int in(int*, int*, int*, int)':
/in/foo.cc:41:20: error: 'pow' was not declared in this scope
    most[i]=pow(10,5);
                    ^
/in/foo.cc:43:21: error: too few arguments to function 'int getmin(int*, int)'
  int max=getmin(most);
                     ^
/in/foo.cc:14:5: note: declared here
 int getmin(int a[],int n)
     ^~~~~~
/in/foo.cc:44:22: error: too few arguments to function 'int getmax(int*, int)'
  int min=getmax(least);
                      ^
/in/foo.cc:4:5: note: declared here
 int getmax(int a[],int n)
     ^~~~~~
/in/foo.cc:26:6: warning: unused variable 'cnt' [-Wunused-variable]
  int cnt=0;
      ^~~
/in/foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^