记录详情

Wrong Answer

foo.c: In function 'SetUnion':
foo.c:23:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   23 |         if (k = -1)
      |             ^
foo.c: In function 'main':
foo.c:44:14: warning: unknown conversion type character ' ' in format [-Wformat=]
   44 |     scanf(" % d & d % d", &n1, &n2, &n3);
      |              ^
foo.c:44:22: warning: unknown conversion type character ' ' in format [-Wformat=]
   44 |     scanf(" % d & d % d", &n1, &n2, &n3);
      |                      ^
foo.c:44:11: warning: too many arguments for format [-Wformat-extra-args]
   44 |     scanf(" % d & d % d", &n1, &n2, &n3);
      |           ^~~~~~~~~~~~~~
foo.c:58:27: warning: passing argument 2 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
   58 |     int nb = SetUnion(a1, n1, a2, n2, b);
      |                           ^~
      |                           |
      |                           int
foo.c:17:27: note: expected 'int *' but argument is of type 'int'
   17 | int SetUnion(int a[], int b[], int c[], int na, int nb)
      |                       ~~~~^~~
foo.c:58:39: warning: passing argument 5 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
   58 |     int nb = SetUnion(a1, n1, a2, n2, b);
      |                                       ^
      |                                       |
      |                                       int *
foo.c:17:53: note: expected 'int' but argument is of type 'int *'
   17 | int SetUnion(int a[], int b[], int c[], int na, int nb)
      |                                                 ~~~~^~
foo.c:59:27: warning: passing argument 2 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
   59 |     int nc = SetUnion(a1, n1, a3, n3, c);
      |                           ^~
      |                           |
      |                           int
foo.c:17:27: note: expected 'int *' but argument is of type 'int'
   17 | int SetUnion(int a[], int b[], int c[], int na, int nb)
      |                       ~~~~^~~
foo.c:59:39: warning: passing argument 5 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
   59 |     int nc = SetUnion(a1, n1, a3, n3, c);
      |                                       ^
      |                                       |
      |                                       int *
foo.c:17:53: note: expected 'int' but argument is of type 'int *'
   17 | int SetUnion(int a[], int b[], int c[], int na, int nb)
      |                                                 ~~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,2 > 3 4 5 1 7 > 3 4 5 1 2ms 284.0 KiB
#2 Wrong Answer 0a1,2 > 3 4 5 1 2 8 9 6 7 > 1ms 284.0 KiB
#3 Wrong Answer 0a1,2 > 3 4 5 1 2 8 9 6 7 > 1ms 284.0 KiB
#4 Wrong Answer 0a1,2 > 12 14 13 15 3 4 5 1 2 2ms 284.0 KiB
#5 Wrong Answer 0a1,2 > 5 7 1 6 10 3 12 14 13 1ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与基础(数组的世界)
语言
C
递交时间
2023-11-28 15:32:04
评测时间
2023-11-28 15:32:04
评测机
分数
0
总耗时
9ms
峰值内存
284.0 KiB