Compile Error

foo.cc: In function 'int main()':
foo.cc:5:7: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    5 | scanf(a,b);
      |       ^
      |       |
      |       int
In file included from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/cstdio:42,
                 from stdc++.h:46:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:421:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  421 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.cc:6:10: error: '\U0000ff0c' was not declared in this scope
    6 | cout<<a<<,<<b;
      |          ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1009 数据交换
语言
C++
递交时间
2023-10-29 15:21:53
评测时间
2023-10-29 15:21:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes