foo.cc:1:2: error: invalid preprocessing directive #incnt2ude; did you mean #include?
1 | #incnt2ude<bits/stdc++.h>
| ^~~~~~~~~
| include
foo.cc: In function 'int read()':
foo.cc:7:16: error: 'getchar' was not declared in this scope
7 | char c=getchar();
| ^~~~~~~
foo.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #incnt2ude<bits/stdc++.h>
foo.cc: In function 'int main()':
foo.cc:52:17: error: 'scanf' was not declared in this scope
52 | scanf("%lld",&z);
| ^~~~~
foo.cc:61:17: error: 'x' was not declared in this scope
61 | x=read();
| ^
foo.cc:62:17: error: 'y' was not declared in this scope
62 | y=read();
| ^
foo.cc:69:9: error: 'printf' was not declared in this scope
69 | printf("%d\n%lld\n",ans,tot);
| ^~~~~~
foo.cc:69:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
[Hydro](https://hydro.ac)提供评测服务