foo.c: In function 'FindiSecondMax':
foo.c:41:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<n;i++)
  ^~~
foo.c:44:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   switch(cnt)
   ^~~~~~
foo.c:20:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,max1,max2,cnt=0,num=1,index=0;
        ^
foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n1,&n2);
  ^~~~~~~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
foo.c:12:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&b[i]);
   ^~~~~~~~~~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务