记录详情

Runtime Error

foo.c: In function 'main':
foo.c:7:17: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
    7 |         scanf("%d%d,&x1,&x2");
      |                ~^
      |                 |
      |                 int *
foo.c:7:19: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
    7 |         scanf("%d%d,&x1,&x2");
      |                  ~^
      |                   |
      |                   int *
foo.c:14:16: warning: too many arguments for format [-Wformat-extra-args]
   14 |         printf("&d\n %d\n %d",y1,y2,y3);
      |                ^~~~~~~~~~~~~~
foo.c:10:11: warning: 'x1' is used uninitialized [-Wuninitialized]
   10 |         y1=x1+x2;
      |         ~~^~~~~~
foo.c:10:11: warning: 'x2' is used uninitialized [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 384.0 KiB
#2 Runtime Error Segmentation fault 2ms 512.0 KiB
#3 Runtime Error Segmentation fault 2ms 256.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 14:08:03
评测时间
2022-08-27 14:08:03
评测机
分数
0
总耗时
14ms
峰值内存
512.0 KiB