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_33239338_25976.cpp:7:1: error: expected initializer before 'long'
 long long op[(1<<maxm)+5];
 ^
0_0_33239338_25976.cpp: In function 'void init(int)':
0_0_33239338_25976.cpp:13:13: error: 'tree' was not declared in this scope
  if(rt>half)tree[rt]=rt-half;
             ^
0_0_33239338_25976.cpp:15:6: error: 'op' was not declared in this scope
   if(op[rt]==1){
      ^
0_0_33239338_25976.cpp:16:4: error: 'tree' was not declared in this scope
    tree[rt]=(tree[rt<<1]*tree[rt<<1|1])%MOD;
    ^
0_0_33239338_25976.cpp:18:4: error: 'tree' was not declared in this scope
    tree[rt]=(tree[rt<<1]+tree[rt<<1|1])%MOD;
    ^
0_0_33239338_25976.cpp: In function 'void change(int, int)':
0_0_33239338_25976.cpp:24:2: error: 'tree' was not declared in this scope
  tree[rt]=x;
  ^
0_0_33239338_25976.cpp:27:6: error: 'op' was not declared in this scope
   if(op[rt]==1){
      ^
0_0_33239338_25976.cpp: In function 'int query(int)':
0_0_33239338_25976.cpp:39:5: error: 'op' was not declared in this scope
  if(op[f]){
     ^
0_0_33239338_25976.cpp:40:19: error: 'tree' was not declared in this scope
   return rt%2==0?(tree[rt+1]*query(f))%MOD:(tree[rt-1]*query(f))%MOD;
                   ^
0_0_33239338_25976.cpp: In function 'int main()':
0_0_33239338_25976.cpp:50:10: error: 'op' was not declared in this scope
   memset(op,-1,sizeof(op));
          ^
0_0_33239338_25976.cpp:51:10: error: 'tree' was not declared in this scope
   memset(tree,0,sizeof(tree));
          ^


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-06-17 21:38:16, Gzip enabled