0_0_39700221_10904.cpp: In function 'void read(T&)':
0_0_39700221_10904.cpp:6:17: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
6 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:16:34: note: in expansion of macro 'getchar'
16 | x=0; rint f=1; char ch = getchar();
| ^~~~~~~
0_0_39700221_10904.cpp:6:17: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
6 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:16:34: note: in expansion of macro 'getchar'
16 | x=0; rint f=1; char ch = getchar();
| ^~~~~~~
0_0_39700221_10904.cpp:6:17: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
6 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:17:54: note: in expansion of macro 'getchar'
17 | while(ch<'0'||ch>'9') {if (ch=='-') f=-1; ch=getchar();}
| ^~~~~~~
0_0_39700221_10904.cpp:6:17: error: there are no arguments to 'getchar_unlocked' that depend on a template parameter, so a declaration of 'getchar_unlocked' must be available [-fpermissive]
6 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:18:51: note: in expansion of macro 'getchar'
18 | while(ch>='0'&&ch<='9') {x=x*10+ch-48; ch=getchar();}
| ^~~~~~~
0_0_39700221_10904.cpp: In function 'void write(T)':
0_0_39700221_10904.cpp:7:17: error: there are no arguments to 'putchar_unlocked' that depend on a template parameter, so a declaration of 'putchar_unlocked' must be available [-fpermissive]
7 | #define putchar putchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:26:16: note: in expansion of macro 'putchar'
26 | while(top) putchar(sta[--top] + 48);
| ^~~~~~~
0_0_39700221_10904.cpp: In function 'int main()':
0_0_39700221_10904.cpp:7:17: error: 'putchar_unlocked' was not declared in this scope; did you mean '_putchar_nolock'?
7 | #define putchar putchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39700221_10904.cpp:116:45: note: in expansion of macro 'putchar'
116 | for(int i=1;i<=m;i++) write(answer[i]), putchar('\n');
| ^~~~~~~
0_0_39700221_10904.cpp: In instantiation of 'void read(T&) [with T = int]':
0_0_39700221_10904.cpp:97:9: required from here
0_0_39700221_10904.cpp:16:41: error: 'getchar_unlocked' was not declared in this scope; did you mean '_getchar_nolock'?
16 | x=0; rint f=1; char ch = getchar();
| ^
0_0_39700221_10904.cpp: In instantiation of 'void write(T) [with T = int]':
0_0_39700221_10904.cpp:116:32: required from here
0_0_39700221_10904.cpp:26:23: error: 'putchar_unlocked' was not declared in this scope; did you mean '_putchar_nolock'?
26 | while(top) putchar(sta[--top] + 48);
| ^
|