0_0_24811031_18684.cpp: In function 'bool read(T&)':
0_0_24811031_18684.cpp:5:25: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(in=getchar(),in!='-'&&(in<'0'||in>'9'))if(in==EOF)return false;
^
0_0_24811031_18684.cpp:5:25: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_24811031_18684.cpp:5:60: error: 'EOF' was not declared in this scope
while(in=getchar(),in!='-'&&(in<'0'||in>'9'))if(in==EOF)return false;
^
0_0_24811031_18684.cpp:7:25: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while(in=getchar(),in>='0'&&in<='9')num=num*10+in-'0';
^
|