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_39501358_5447.cpp: In function 'void rd(T&)':
0_0_39501358_5447.cpp:62:12: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
   62 |     while(!isdigit(c)) { if(c=='-') f=-1; c=getchar(); }
      |            ^~~~~~~
0_0_39501358_5447.cpp:62:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39501358_5447.cpp:63:11: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
   63 |     while(isdigit(c)) x=x*10-'0'+c,c=getchar(); x*=f;
      |           ^~~~~~~
0_0_39501358_5447.cpp: In instantiation of 'void rd(T&) [with T = int]':
0_0_39501358_5447.cpp:89:15:   required from here
0_0_39501358_5447.cpp:62:19: error: 'isdigit' was not declared in this scope
   62 |     while(!isdigit(c)) { if(c=='-') f=-1; c=getchar(); }
      |            ~~~~~~~^~~
0_0_39501358_5447.cpp:63:18: error: 'isdigit' was not declared in this scope
   63 |     while(isdigit(c)) x=x*10-'0'+c,c=getchar(); x*=f;
      |           ~~~~~~~^~~


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-11-14 12:38:36, Gzip enabled