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_39154574_22364.cpp: In function 'T read()':
0_0_39154574_22364.cpp:18:17: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
   18 |         for (; !isdigit (c); c = getchar ()) if (c == '-') w = -1;
      |                 ^~~~~~~
0_0_39154574_22364.cpp:18:17: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_39154574_22364.cpp:19:16: error: there are no arguments to 'isdigit' that depend on a template parameter, so a declaration of 'isdigit' must be available [-fpermissive]
   19 |         for (; isdigit (c); c = getchar ()) s = (s << 1) + (s << 3) + c - '0';
      |                ^~~~~~~
0_0_39154574_22364.cpp: In function 'int main()':
0_0_39154574_22364.cpp:48:9: error: 'memset' was not declared in this scope
   48 |         memset (dp, 0, sizeof dp);
      |         ^~~~~~
0_0_39154574_22364.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    3 | # include <algorithm>
  +++ |+#include <cstring>
    4 | using namespace std;


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-05-20 05:35:33, Gzip enabled