Compile Error

foo.cc: In function 'int main()':
foo.cc:11:16: error: expected primary-expression before '%' token
  print("%d,%d",%a,%b);
                ^
foo.cc:11:19: error: expected primary-expression before '%' token
  print("%d,%d",%a,%b);
                   ^
foo.cc:11:2: error: 'print' was not declared in this scope
  print("%d,%d",%a,%b);
  ^~~~~
foo.cc:11:2: note: suggested alternative: 'printf'
  print("%d,%d",%a,%b);
  ^~~~~
  printf
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d,%d",&a,&b);
  ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1009 数据交换
语言
C++
递交时间
2021-11-13 09:40:40
评测时间
2021-11-13 09:40:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes