记录详情

Runtime Error

foo.c: In function 'main':
foo.c:23:9: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   23 | scanf("%d",b);
      |        ~^  ~
      |         |  |
      |         |  int
      |         int *
foo.c:5:7: warning: unused variable 'c' [-Wunused-variable]
    5 | int b,c;
      |       ^
foo.c:11:5: warning: 'a' is used uninitialized [-Wuninitialized]
   11 | if(a[i]>a[i+1]){
      |    ~^~~
foo.c:4:5: note: 'a' declared here
    4 | int a[10000] ;
      |     ^
foo.c:22:7: warning: 'b' is used uninitialized [-Wuninitialized]
   22 | if(b%m==0);
      |    ~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 384.0 KiB
#2 Runtime Error Segmentation fault 3ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 4ms 256.0 KiB

信息

递交者
类型
递交
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 16:27:45
评测时间
2022-08-27 16:27:45
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB