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)提供评测服务