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_38661232_6202.cpp: In function 'int main()':
0_0_38661232_6202.cpp:30:3: error: 'memset' was not declared in this scope
   memset(tree,0,sizeof(tree));
   ^~~~~~
0_0_38661232_6202.cpp:30:3: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38661232_6202.cpp:5:1:
+#include <cstring>
 #define lson k<<1
0_0_38661232_6202.cpp:30:3:
   memset(tree,0,sizeof(tree));
   ^~~~~~
0_0_38661232_6202.cpp:32:10: error: 'b' was not declared in this scope
   memset(b,0,sizeof(b));
          ^
0_0_38661232_6202.cpp:33:10: error: 'c' was not declared in this scope
   memset(c,0,sizeof(c));
          ^
0_0_38661232_6202.cpp:34:3: error: 'm' was not declared in this scope
   m=0x3f3f3f3f,tot=0;
   ^
0_0_38661232_6202.cpp:34:16: error: 'tot' was not declared in this scope
   m=0x3f3f3f3f,tot=0;
                ^~~
0_0_38661232_6202.cpp:34:16: note: suggested alternative: 'ltoa'
   m=0x3f3f3f3f,tot=0;
                ^~~
                ltoa


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-23 10:12:42, Gzip enabled