foo.cc:14:10: error: stray '\' in program
14 | printf(%d\n",c);
| ^
foo.cc:14:12: warning: missing terminating " character
14 | printf(%d\n",c);
| ^
foo.cc:14:12: error: missing terminating " character
14 | printf(%d\n",c);
| ^~~~~
foo.cc:3:1: error: '::main' must return 'int'
3 | void main()
| ^~~~
foo.cc: In function 'int main()':
foo.cc:14:8: error: expected primary-expression before '%' token
14 | printf(%d\n",c);
| ^
foo.cc:14:9: error: 'd' was not declared in this scope
14 | printf(%d\n",c);
| ^
foo.cc:10:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&a);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务