记录详情

Wrong Answer

foo.c: In function 'solve':
foo.c:96:28: warning: 'sizeof' on array function parameter 'b' will return size of 'int *' [-Wsizeof-array-argument]
   96 |         memset(b, 0, sizeof(b));
      |                            ^
foo.c:78:16: note: declared here
   78 | void solve(int b[], int ans[], int res[], int k)
      |            ~~~~^~~
foo.c:96:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   96 |         memset(b, 0, sizeof(b));
      |                            ^
foo.c:99:30: warning: 'sizeof' on array function parameter 'ans' will return size of 'int *' [-Wsizeof-array-argument]
   99 |         memset(ans, 0, sizeof(ans));
      |                              ^
foo.c:78:25: note: declared here
   78 | void solve(int b[], int ans[], int res[], int k)
      |                     ~~~~^~~~~
foo.c:99:30: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   99 |         memset(ans, 0, sizeof(ans));
      |                              ^
foo.c: In function 'getnum':
foo.c:62:1: warning: control reaches end of non-void function [-Wreturn-type]
   62 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 412.0 KiB
#2 Wrong Answer Read 0000000000000000..., expect 2000000000000000.... 3ms 412.0 KiB
#3 Wrong Answer Read 3120130100323301..., expect 3312013010032330.... 4ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Wrong Answer Read 474AB65943391977..., expect 3474AB6594339197.... 10ms 412.0 KiB

信息

递交者
类型
递交
题目
A11-2 K进制的高精度整数
比赛
2023 程序设计与竞赛(作业7:最初的综合)
语言
C
递交时间
2023-11-11 16:25:11
评测时间
2023-11-11 16:25:11
评测机
分数
40
总耗时
24ms
峰值内存
412.0 KiB