foo.cc:6:10: error: stray '\' in program
6 | printf(%d\n,n-1);
| ^
foo.cc:8:10: error: stray '\' in program
8 | printf(%d\n,n-y/x-1);
| ^
foo.cc: In function 'int main()':
foo.cc:4:7: error: expected primary-expression before '%' token
4 | scanf(%d%d%d,&n,&x,&y);
| ^
foo.cc:4:8: error: 'd' was not declared in this scope
4 | scanf(%d%d%d,&n,&x,&y);
| ^
foo.cc:4:1: error: 'scanf' was not declared in this scope
4 | scanf(%d%d%d,&n,&x,&y);
| ^~~~~
foo.cc:6:8: error: expected primary-expression before '%' token
6 | printf(%d\n,n-1);
| ^
foo.cc:6:1: error: 'printf' was not declared in this scope
6 | printf(%d\n,n-1);
| ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main()
foo.cc:8:8: error: expected primary-expression before '%' token
8 | printf(%d\n,n-y/x-1);
| ^
foo.cc:8:1: error: 'printf' was not declared in this scope
8 | printf(%d\n,n-y/x-1);
| ^~~~~~
foo.cc:8:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
[Hydro](https://hydro.ac)提供评测服务