记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:12:20: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  int xmax; scanf("%d",xmax);
                    ^
/in/foo.c:13:20: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  int xmin; scanf("%d",xmin);
                    ^
/in/foo.c:17:3: warning: statement with no effect [-Wunused-value]
   for(x;x<=xmax;x++)
   ^~~
/in/foo.c:19:4: warning: statement with no effect [-Wunused-value]
    for(x;x>0;x=x/10)
    ^~~
/in/foo.c:9:6: warning: variable 'y' set but not used [-Wunused-but-set-variable]
  int y;
      ^
/in/foo.c:6:6: warning: unused variable 'cnt' [-Wunused-variable]
  int cnt=0;
      ^~~
/in/foo.c:12:12: warning: 'xmax' is used uninitialized in this function [-Wuninitialized]
  int xmax; scanf("%d",xmax);
            ^~~~~~~~~~~~~~~~
/in/foo.c:13:12: warning: 'xmin' is used uninitialized in this function [-Wuninitialized]
  int xmin; scanf("%d",xmin);
            ^~~~~~~~~~~~~~~~
/in/foo.c:37:16: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
         b[l++] = a[i];
         ~~~~~~~^~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 320.0 KiB
#2 Runtime Error 1ms 332.0 KiB
#3 Runtime Error 1ms 328.0 KiB
#4 Runtime Error 1ms 380.0 KiB
#5 Runtime Error 1ms 332.0 KiB

信息

递交者
类型
递交
题目
3-1 整数中的数字
比赛
2021(四) 作业第一场:秀肌肉
语言
C
递交时间
2021-09-30 15:03:32
评测时间
2021-09-30 15:03:32
评测机
分数
0
总耗时
6ms
峰值内存
380.0 KiB