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_24210666_4860.cpp:3:26: error: '__lg' was not declared in this scope
 const int lgN = __lg(MAXN) + 5;
                          ^
0_0_24210666_4860.cpp:44:52: error: 'NULL' was not declared in this scope
  Node* pull(Node *u, bool single = true, Node *l = NULL, Node *r = NULL){
                                                    ^
0_0_24210666_4860.cpp:44:68: error: 'NULL' was not declared in this scope
  Node* pull(Node *u, bool single = true, Node *l = NULL, Node *r = NULL){
                                                                    ^
0_0_24210666_4860.cpp:60:47: error: 'NULL' was not declared in this scope
  void modify(int mL, int mR, int v, Node *u = NULL){
                                               ^
0_0_24210666_4860.cpp:73:40: error: 'NULL' was not declared in this scope
  Node* query(int qL, int qR, Node *u = NULL){
                                        ^
0_0_24210666_4860.cpp: In constructor 'SegmentTree::Node::Node(int, int)':
0_0_24210666_4860.cpp:14:12: error: 'NULL' was not declared in this scope
    l = r = NULL;
            ^
0_0_24210666_4860.cpp: In member function 'SegmentTree::Node* SegmentTree::build(int, int)':
0_0_24210666_4860.cpp:42:16: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
   return pull(u);
                ^
0_0_24210666_4860.cpp:42:16: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
0_0_24210666_4860.cpp: In member function 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)':
0_0_24210666_4860.cpp:71:9: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
   pull(u);
         ^
0_0_24210666_4860.cpp:71:9: error: call to 'SegmentTree::Node* SegmentTree::pull(SegmentTree::Node*, bool, SegmentTree::Node*, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
0_0_24210666_4860.cpp: In member function 'SegmentTree::Node* SegmentTree::query(int, int, SegmentTree::Node*)':
0_0_24210666_4860.cpp:75:47: error: 'NULL' was not declared in this scope
   if (u->R <= qL || qR <= u->L) return (Node*)NULL;
                                               ^
0_0_24210666_4860.cpp: In function 'int main()':
0_0_24210666_4860.cpp:82:2: error: 'ios_base' has not been declared
  ios_base::sync_with_stdio(false);
  ^
0_0_24210666_4860.cpp:83:2: error: 'cin' was not declared in this scope
  cin.tie(0);
  ^
0_0_24210666_4860.cpp:85:3: error: 'cout' was not declared in this scope
   cout << "Case " << ++kase << ":\n";
   ^
0_0_24210666_4860.cpp:95:26: error: call to 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
     sol->modify(a-1, a, v);
                          ^
0_0_24210666_4860.cpp:99:27: error: call to 'void SegmentTree::modify(int, int, int, SegmentTree::Node*)' uses the default argument for parameter 4, which is not yet defined
     sol->modify(a-1, a, -v);
                           ^
0_0_24210666_4860.cpp:103:30: error: call to 'SegmentTree::Node* SegmentTree::query(int, int, SegmentTree::Node*)' uses the default argument for parameter 3, which is not yet defined
     cout << sol->query(a-1, b)->sum << '\n';
                              ^


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-29 19:28:27, Gzip enabled