foo.cc: In function 'int main()':
foo.cc:23:65: warning: format '%c' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=]
   scanf("%d %s %c %f",&s[i].sno,s[i].sname,&s[i].sex,&s[i].score);
                                            ~~~~~~~~~            ^
foo.cc:29:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(s[i].sex=1)
      ~~~~~~~~^~
foo.cc:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %s %c %f",&s[i].sno,s[i].sname,&s[i].sex,&s[i].score);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:45:13: warning: 'l' is used uninitialized in this function [-Wuninitialized]
  cout<<s[l].score;
             ^~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务