foo.c: In function 'main':
foo.c:11:3: error: expected ';' before 'for'
for(n=1;n<=12;n++)
^~~
foo.c:5:24: warning: unused variable 'z' [-Wunused-variable]
int n,c=0,s=0,flag=1,z;
^
foo.c:5:17: warning: unused variable 'flag' [-Wunused-variable]
int n,c=0,s=0,flag=1,z;
^~~~
foo.c:5:13: warning: unused variable 's' [-Wunused-variable]
int n,c=0,s=0,flag=1,z;
^
foo.c:5:9: warning: unused variable 'c' [-Wunused-variable]
int n,c=0,s=0,flag=1,z;
^
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&y[n]);
^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务