/in/foo.c: In function 'main':
/in/foo.c:33:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(s[i].x='Y'&&s[i].py>80)
    ^~
/in/foo.c:40:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    else if(sum1=sum)
    ^~~~
/in/foo.c:51:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   printf("%s\n%d\n%d",name3[10],sum1,sum2);
            ^
/in/foo.c:53:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   printf("%s\n%d\n",name2[10],sum1);
            ^
/in/foo.c:17:8: warning: unused variable 'a' [-Wunused-variable]
  int i,a[50]={0},j=1;
        ^
/in/foo.c:51:28: warning: array subscript is above array bounds [-Warray-bounds]
   printf("%s\n%d\n%d",name3[10],sum1,sum2);
                       ~~~~~^~~~
/in/foo.c:53:26: warning: array subscript is above array bounds [-Warray-bounds]
   printf("%s\n%d\n",name2[10],sum1);
                     ~~~~~^~~~