记录详情

Runtime Error

foo.c: In function 'main':
foo.c:7:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d%d%d",a,b,c);
         ~^
foo.c:7:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d%d%d",a,b,c);
           ~^
foo.c:7:14: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
  scanf("%d%d%d",a,b,c);
             ~^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d",a,b,c);
  ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:2: warning: 'a' is used uninitialized in this function [-Wuninitialized]
  scanf("%d%d%d",a,b,c);
  ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:2: warning: 'b' is used uninitialized in this function [-Wuninitialized]
foo.c:7:2: warning: 'c' is used uninitialized in this function [-Wuninitialized]
foo.c:9:6: warning: 'x' is used uninitialized in this function [-Wuninitialized]
  if(a%x==0 && b%x==0 && c%x==0)
     ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 0ms 256.0 KiB
#2 Runtime Error Segmentation fault 0ms 256.0 KiB
#3 Runtime Error Segmentation fault 0ms 256.0 KiB
#4 Runtime Error Segmentation fault 0ms 256.0 KiB
#5 Runtime Error Segmentation fault 0ms 256.0 KiB

信息

递交者
类型
递交
题目
5-3 最大公约数
比赛
2021(四) 作业第一场:秀肌肉
语言
C
递交时间
2021-09-30 23:09:29
评测时间
2021-09-30 23:09:29
评测机
分数
0
总耗时
4ms
峰值内存
256.0 KiB