/ Vijos /

记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",n,m);
          ^
/in/foo.c:9:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",n,m);
             ^
/in/foo.c:10:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",x1,x2);
          ^
/in/foo.c:10:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",x1,x2);
             ^
/in/foo.c:11:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",y1,y2);
          ^
/in/foo.c:11:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",y1,y2);
             ^
/in/foo.c:9:2: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  scanf("%d %d",n,m);
  ^~~~~~~~~~~~~~~~~~
/in/foo.c:9:2: warning: 'm' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:10:2: warning: 'x1' is used uninitialized in this function [-Wuninitialized]
  scanf("%d %d",x1,x2);
  ^~~~~~~~~~~~~~~~~~~~
/in/foo.c:10:2: warning: 'x2' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:11:2: warning: 'y1' is used uninitialized in this function [-Wuninitialized]
  scanf("%d %d",y1,y2);
  ^~~~~~~~~~~~~~~~~~~~
/in/foo.c:11:2: warning: 'y2' is used uninitialized in this function [-Wuninitialized]
/in/foo.c:26:5: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
     printf("%d",c*100000000);
     ^~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 312.0 KiB
#2 Runtime Error 1ms 312.0 KiB
#3 Runtime Error 1ms 352.0 KiB
#4 Runtime Error 1ms 332.0 KiB
#5 Runtime Error 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1187 兵分N路
语言
C
递交时间
2024-03-05 16:53:56
评测时间
2024-03-05 16:53:56
评测机
分数
0
总耗时
6ms
峰值内存
352.0 KiB