记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d%d%d/n%d",a,b,c,num);
          ^
/in/foo.c:6:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d%d%d/n%d",a,b,c,num);
            ^
/in/foo.c:6:14: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
  scanf("%d%d%d/n%d",a,b,c,num);
              ^
/in/foo.c:6:18: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'int' [-Wformat=]
  scanf("%d%d%d/n%d",a,b,c,num);
                  ^
/in/foo.c:5:21: warning: unused variable 'g' [-Wunused-variable]
     int a,b,c,d,e,f,g,num;
                     ^
/in/foo.c:5:19: warning: unused variable 'f' [-Wunused-variable]
     int a,b,c,d,e,f,g,num;
                   ^
/in/foo.c:5:17: warning: unused variable 'e' [-Wunused-variable]
     int a,b,c,d,e,f,g,num;
                 ^
/in/foo.c:6:2: warning: 'a' is used uninitialized in this function [-Wuninitialized]
  scanf("%d%d%d/n%d",a,b,c,num);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:6:2: warning: 'b' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:6:2: warning: 'c' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:6:2: warning: 'num' is used uninitialized in this function [-Wuninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 0ms 216.0 KiB
#2 Runtime Error 0ms 128.0 KiB
#3 Runtime Error 0ms 208.0 KiB
#4 Runtime Error 0ms 128.0 KiB
#5 Runtime Error 0ms 204.0 KiB

信息

递交者
类型
递交
题目
P1000 OO1-1 时间类Time
语言
C
递交时间
2020-11-17 13:51:08
评测时间
2020-11-17 13:51:08
评测机
分数
0
总耗时
3ms
峰值内存
216.0 KiB