foo.c: In function 'chai':
foo.c:55:16: warning: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
55 | return fz;
| ^~
foo.c:37:29: warning: unused variable 'q' [-Wunused-variable]
37 | int i,j,k,l,m,n,o,p,q;
| ^
foo.c: In function 'riqijia':
foo.c:68:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
68 | if(year % 4==0 && year % 100!=0 || year % 400==0)//闰年
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.c:164:16: warning: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
164 | return riqi;
| ^~~~
foo.c: In function 'hwjc':
foo.c:169:15: warning: unused variable 'j' [-Wunused-variable]
169 | int i,j,k=0,o=0;
| ^
foo.c: In function 'main':
foo.c:196:20: warning: unused variable 'fz2' [-Wunused-variable]
196 | int fz1[8],fz2[8],riqi[8];
| ^~~
foo.c:196:13: warning: unused variable 'fz1' [-Wunused-variable]
196 | int fz1[8],fz2[8],riqi[8];
| ^~~
foo.c:195:29: warning: unused variable 'k' [-Wunused-variable]
195 | int date1,date2,i,j,k,couts=0,pd=1;
| ^
foo.c:195:25: warning: unused variable 'i' [-Wunused-variable]
195 | int date1,date2,i,j,k,couts=0,pd=1;
| ^
foo.c:201:21: warning: array subscript 8 is above array bounds of 'int[8]' [-Warray-bounds]
201 | riqi[8]=chai(date1,riqi);
| ~~~~^~~
foo.c:196:27: note: while referencing 'riqi'
196 | int fz1[8],fz2[8],riqi[8];
| ^~~~
foo.c:212:21: warning: array subscript 8 is above array bounds of 'int[8]' [-Warray-bounds]
212 | riqi[8]=riqijia(riqi);
| ~~~~^~~
foo.c:196:27: note: while referencing 'riqi'
196 | int fz1[8],fz2[8],riqi[8];
| ^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务