Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:6:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int' [-Wformat=]
  scanf("%ld%ld%ld",a,b,c);
           ^
/in/foo.c:6:14: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int' [-Wformat=]
  scanf("%ld%ld%ld",a,b,c);
              ^
/in/foo.c:6:17: warning: format '%ld' expects argument of type 'long int *', but argument 4 has type 'long long int' [-Wformat=]
  scanf("%ld%ld%ld",a,b,c);
                 ^
/in/foo.c:8:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d",a);
           ^
/in/foo.c:6:2: warning: 'a' is used uninitialized in this function [-Wuninitialized]
  scanf("%ld%ld%ld",a,b,c);
  ^~~~~~~~~~~~~~~~~~~~~~~~
/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]
# 状态 耗时 内存占用
#1 Runtime Error 1ms 232.0 KiB
#2 Runtime Error 1ms 232.0 KiB
#3 Runtime Error 1ms 240.0 KiB
#4 Runtime Error 1ms 268.0 KiB
#5 Runtime Error 1ms 284.0 KiB
#6 Runtime Error 1ms 256.0 KiB
#7 Runtime Error 1ms 256.0 KiB
#8 Runtime Error 1ms 284.0 KiB
#9 Runtime Error 1ms 284.0 KiB
#10 Runtime Error 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1026 分糖果
语言
C
递交时间
2019-08-03 19:52:38
评测时间
2019-08-03 19:52:38
评测机
分数
0
总耗时
14ms
峰值内存
284.0 KiB