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_19698910_11351.cpp:6:20: error: expected ']' before ';' token
 #define MAX 1000000;
                    ^
0_0_19698910_11351.cpp:7:12: note: in expansion of macro 'MAX'
 int source[MAX] = {0};
            ^
0_0_19698910_11351.cpp:7:15: error: expected unqualified-id before ']' token
 int source[MAX] = {0};
               ^
0_0_19698910_11351.cpp: In function 'void BuildTree(int, int, int)':
0_0_19698910_11351.cpp:18:15: error: 'source' was not declared in this scope
   scanf("%d",&source[i]);
               ^
0_0_19698910_11351.cpp:25:2: error: 'source' was not declared in this scope
  source[i] = maxx(source[i<<1],source[i<<1|1]);
  ^
0_0_19698910_11351.cpp: In function 'int query(int, int, int, int, int)':
0_0_19698910_11351.cpp:31:10: error: 'source' was not declared in this scope
   return source[i];
          ^
0_0_19698910_11351.cpp: In function 'void update(int, int, int, int, int)':
0_0_19698910_11351.cpp:50:3: error: 'source' was not declared in this scope
   source[i] = b;
   ^
0_0_19698910_11351.cpp:62:2: error: 'source' was not declared in this scope
  source[i] = maxx(source[i<<1],source[i<<1|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-26 14:45:17, Gzip enabled