0_0_30251006_2658.cpp: In function 'void read(T&)':
0_0_30251006_2658.cpp:3:33: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
x=0;int f=0;char ch=getchar();
^
0_0_30251006_2658.cpp:3:33: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_30251006_2658.cpp:4:53: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(ch<'0'||ch>'9') {f|=(ch=='-');ch=getchar();}
^
0_0_30251006_2658.cpp:5:64: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
^
|