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_21091549_6441.cpp:5:14: error: expected primary-expression before '=' token
 #define maxn = 200010;
              ^
0_0_21091549_6441.cpp:6:8: note: in expansion of macro 'maxn'
 int mx[maxn<<2];
        ^
0_0_21091549_6441.cpp:5:22: error: expected ']' before ';' token
 #define maxn = 200010;
                      ^
0_0_21091549_6441.cpp:6:8: note: in expansion of macro 'maxn'
 int mx[maxn<<2];
        ^
0_0_21091549_6441.cpp:6:12: error: expected unqualified-id before '<<' token
 int mx[maxn<<2];
            ^
0_0_21091549_6441.cpp: In function 'void pushup(int)':
0_0_21091549_6441.cpp:8:2: error: 'mx' was not declared in this scope
  mx[o] = max(mx[o<<1] , mx[o<<1|1]);
  ^
0_0_21091549_6441.cpp: In function 'void build(int, int, int)':
0_0_21091549_6441.cpp:12:15: error: 'mx' was not declared in this scope
   scanf("%d",&mx[o]);
               ^
0_0_21091549_6441.cpp: In function 'void update(int, int, int, int, int)':
0_0_21091549_6441.cpp:22:3: error: 'mx' was not declared in this scope
   mx[o]=sc;
   ^
0_0_21091549_6441.cpp: In function 'int query(int, int, int, int, int)':
0_0_21091549_6441.cpp:34:10: error: 'mx' was not declared in this scope
   return mx[o];
          ^


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 13:56:46, Gzip enabled