记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB
#6 Accepted 2ms 256.0 KiB
#7 Accepted 3ms 256.0 KiB
#8 Accepted 48ms 380.0 KiB
#9 Accepted 120ms 256.0 KiB
#10 Accepted 171ms 256.0 KiB

信息

递交者
类型
递交
题目
P1022 回文日期
语言
C
递交时间
2022-08-23 12:25:09
评测时间
2022-08-23 12:25:09
评测机
分数
100
总耗时
360ms
峰值内存
380.0 KiB