Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
    9 |   printf("%d,%d",&d,&c);
      |           ~^     ~~
      |            |     |
      |            int   int*
      |           %n
foo.cc:9:15: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int*' [-Wformat=]
    9 |   printf("%d,%d",&d,&c);
      |              ~^     ~~
      |               |     |
      |               int   int*
      |              %n
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -144205796,-1442..., expect 50,43. 4ms 412.0 KiB
#2 Wrong Answer Read -1846967140,-184..., expect 20,10. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1009 数据交换
语言
C++
递交时间
2023-11-04 11:46:00
评测时间
2023-11-04 11:46:00
评测机
分数
0
总耗时
8ms
峰值内存
412.0 KiB