/in/foo.cc: In function 'int read()':
/in/foo.cc:2:52: error: 'stdin' was not declared in this scope
2 | #define gc pa==pb&&(pb=(pa=buf)+fread(buf,1,100000,stdin),pa==pb)?EOF:*pa++
| ^~~~~
/in/foo.cc:5:33: note: in expansion of macro 'gc'
5 | int x=0;bool f=0;char c=gc;
| ^~
/in/foo.cc:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | static char buf[100000],*pa(buf),*pb(buf);
/in/foo.cc:2:33: error: 'fread' was not declared in this scope; did you mean 'read'?
2 | #define gc pa==pb&&(pb=(pa=buf)+fread(buf,1,100000,stdin),pa==pb)?EOF:*pa++
| ^~~~~
/in/foo.cc:5:33: note: in expansion of macro 'gc'
5 | int x=0;bool f=0;char c=gc;
| ^~
/in/foo.cc:2:67: error: 'EOF' was not declared in this scope
2 | #define gc pa==pb&&(pb=(pa=buf)+fread(buf,1,100000,stdin),pa==pb)?EOF:*pa++
| ^~~
/in/foo.cc:5:33: note: in expansion of macro 'gc'
5 | int x=0;bool f=0;char c=gc;
| ^~
/in/foo.cc:2:67: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
2 | #define gc pa==pb&&(pb=(pa=buf)+fread(buf,1,100000,stdin),pa==pb)?EOF:*pa++
| ^~~
/in/foo.cc:5:33: note: in expansion of macro 'gc'
5 | int x=0;bool f=0;char c=gc;
| ^~
/in/foo.cc:6:16: error: 'isdigit' was not declared in this scope
6 | while(!isdigit(c))f|=(c=='-'),c=gc;
| ^~~~~~~
/in/foo.cc:7:15: error: 'isdigit' was not declared in this scope
7 | while(isdigit(c))x=(x<<3)+(x<<1)+(c^48),c=gc;
| ^~~~~~~
/in/foo.cc: In function 'void towrite(int)':
/in/foo.cc:13:9: error: 'putchar' was not declared in this scope; did you mean 'char'?
13 | putchar((x%10)^48);
| ^~~~~~~
| char
/in/foo.cc: In function 'void write(int)':
/in/foo.cc:17:16: error: 'putchar' was not declared in this scope; did you mean 'char'?
17 | if(x<0)putchar('-'),x=-x;
| ^~~~~~~
| char
/in/foo.cc:19:9: error: 'putchar' was not declared in this scope; did you mean 'char'?
19 | putchar((x%10)^48);
| ^~~~~~~
| char