0_0_39093333_2486.cpp: In function 'void read(T1&, T2& ...)':
0_0_39093333_2486.cpp:11: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]
11 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:17:22: note: in expansion of macro 'getchar'
17 | ret=0;char c=getchar();
| ^~~~~~~
0_0_39093333_2486.cpp:11:17: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
11 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:17:22: note: in expansion of macro 'getchar'
17 | ret=0;char c=getchar();
| ^~~~~~~
0_0_39093333_2486.cpp:11: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]
11 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:18:23: note: in expansion of macro 'getchar'
18 | while(c<'0')c=getchar();
| ^~~~~~~
0_0_39093333_2486.cpp:11: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]
11 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:19:41: note: in expansion of macro 'getchar'
19 | while(c>='0')ret=ret*10+c-'0',c=getchar();
| ^~~~~~~
0_0_39093333_2486.cpp: In function 'void read(std::string&)':
0_0_39093333_2486.cpp:11:17: error: 'getchar_unlocked' was not declared in this scope; did you mean '_getchar_nolock'?
11 | #define getchar getchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:23:29: note: in expansion of macro 'getchar'
23 | ret.clear();char ch=getchar();
| ^~~~~~~
0_0_39093333_2486.cpp: In function 'void print(int)':
0_0_39093333_2486.cpp:12:17: error: 'putchar_unlocked' was not declared in this scope; did you mean '_putchar_nolock'?
12 | #define putchar putchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:32:20: note: in expansion of macro 'putchar'
32 | while(top) putchar(sta[--top]+48);
| ^~~~~~~
0_0_39093333_2486.cpp: In function 'int main()':
0_0_39093333_2486.cpp:12:17: error: 'putchar_unlocked' was not declared in this scope; did you mean '_putchar_nolock'?
12 | #define putchar putchar_unlocked
| ^~~~~~~~~~~~~~~~
0_0_39093333_2486.cpp:94:44: note: in expansion of macro 'putchar'
94 | print(res),putchar(endl);
| ^~~~~~~
0_0_39093333_2486.cpp: In instantiation of 'void read(T1&, T2& ...) [with T1 = int; T2 = {}]':
0_0_39093333_2486.cpp:64:25: required from here
0_0_39093333_2486.cpp:17:29: error: 'getchar_unlocked' was not declared in this scope; did you mean '_getchar_nolock'?
17 | ret=0;char c=getchar();
| ^
0_0_39093333_2486.cpp: In instantiation of 'void read(T1&, T2& ...) [with T1 = int; T2 = {int}]':
0_0_39093333_2486.cpp:66:12: required from here
0_0_39093333_2486.cpp:17:29: error: 'getchar_unlocked' was not declared in this scope; did you mean '_getchar_nolock'?
|