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_13725150_18698.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13725150_18698.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13725150_18698.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_13725150_18698.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13725150_18698.cpp:12:1: error: expected ']' before 'void'
 void PushUp(int root) //�ڵ㱣���������ֵ
 ^
0_0_13725150_18698.cpp: In function 'void Build_Tree(int, int, int)':
0_0_13725150_18698.cpp:21:16: error: 'segtree' was not declared in this scope
   scanf("%d", &segtree[root]);
                ^
0_0_13725150_18698.cpp:21:29: error: 'scanf' was not declared in this scope
   scanf("%d", &segtree[root]);
                             ^
0_0_13725150_18698.cpp:25:19: error: expected ',' or ';' before numeric constant
  int m = (l + r)  1;
                   ^
0_0_13725150_18698.cpp:28:13: error: 'PushUp' was not declared in this scope
  PushUp(root);
             ^
0_0_13725150_18698.cpp: In function 'void Update(int, int, int, int, int)':
0_0_13725150_18698.cpp:35:3: error: 'segtree' was not declared in this scope
   segtree[root] = data;
   ^
0_0_13725150_18698.cpp:38:19: error: expected ',' or ';' before numeric constant
  int m = (l + r)  1;
                   ^
0_0_13725150_18698.cpp:40:3: error: expected ')' before 'Update'
   Update(pos, data, lson);
   ^
0_0_13725150_18698.cpp:43:13: error: 'PushUp' was not declared in this scope
  PushUp(root);
             ^
0_0_13725150_18698.cpp: In function 'int Query(int, int, int, int, int)':
0_0_13725150_18698.cpp:50:3: error: expected ')' before 'return'
   return segtree[root];
   ^
0_0_13725150_18698.cpp:51:19: error: expected ',' or ';' before numeric constant
  int m = (l + r)  1;
                   ^
0_0_13725150_18698.cpp:53:3: error: expected ')' before 'sum'
   sum = max(sum, Query(L, R, lson));
   ^
0_0_13725150_18698.cpp:54:8: error: expected ')' before 'm'
  if(R  m)
        ^
0_0_13725150_18698.cpp:55:35: error: 'max' was not declared in this scope
   sum = max(sum, Query(L, R, rson));
                                   ^
0_0_13725150_18698.cpp: In function 'int main()':
0_0_13725150_18698.cpp:64:32: error: 'scanf' was not declared in this scope
  while(scanf("%d%d", &num, &que) != EOF)
                                ^
0_0_13725150_18698.cpp:64:37: error: 'EOF' was not declared in this scope
  while(scanf("%d%d", &num, &que) != EOF)
                                     ^
0_0_13725150_18698.cpp:71:3: error: expected ';' before '{' token
   {
   ^
0_0_13725150_18698.cpp:71:3: error: expected primary-expression before '{' token
0_0_13725150_18698.cpp:71:3: error: expected ')' before '{' token
0_0_13725150_18698.cpp:76:42: error: 'printf' was not declared in this scope
     printf("%d\n", Query(a, b, 1, num, 1));
                                          ^


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 05:19:43, Gzip enabled