F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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';
                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-28 22:17:21, Gzip enabled