记录详情

Runtime Error

foo.c: In function 'main':
foo.c:41:13: warning: passing argument 2 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
   41 |  SetUnion(a,b,n1,n2);
      |             ^
      |             |
      |             int *
foo.c:3:26: note: expected 'int' but argument is of type 'int *'
    3 | int SetUnion(int a[],int n1,int b[],int n2)
      |                      ~~~~^~
foo.c:41:15: warning: passing argument 3 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
   41 |  SetUnion(a,b,n1,n2);
      |               ^~
      |               |
      |               int
foo.c:3:33: note: expected 'int *' but argument is of type 'int'
    3 | int SetUnion(int a[],int n1,int b[],int n2)
      |                             ~~~~^~~
foo.c:43:13: warning: passing argument 2 of 'SetUnion' makes integer from pointer without a cast [-Wint-conversion]
   43 |  SetUnion(a,c,n1,n3);
      |             ^
      |             |
      |             int *
foo.c:3:26: note: expected 'int' but argument is of type 'int *'
    3 | int SetUnion(int a[],int n1,int b[],int n2)
      |                      ~~~~^~
foo.c:43:15: warning: passing argument 3 of 'SetUnion' makes pointer from integer without a cast [-Wint-conversion]
   43 |  SetUnion(a,c,n1,n3);
      |               ^~
      |               |
      |               int
foo.c:3:33: note: expected 'int *' but argument is of type 'int'
    3 | int SetUnion(int a[],int n1,int b[],int n2)
      |                             ~~~~^~~
foo.c:34:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   34 |  scanf("%d %d %d",&n1,&n2,&n3);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:36:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   36 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:38:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   38 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:40:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   40 |   scanf("%d",&c[i]);
      |   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 512.0 KiB
#2 Runtime Error Segmentation fault 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 640.0 KiB
#4 Runtime Error Bus error 1ms 512.0 KiB
#5 Runtime Error Segmentation fault 2ms 512.0 KiB

信息

递交者
类型
递交
题目
A10-5 集合的并集
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-04-06 22:52:51
评测时间
2022-04-06 22:52:51
评测机
分数
0
总耗时
12ms
峰值内存
640.0 KiB