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_17208750_12290.cpp:26:1: error: expected initializer before 'void'
 void build(int root, int l, int r);
 ^
0_0_17208750_12290.cpp: In function 'void build(int, int, int)':
0_0_17208750_12290.cpp:31:15: error: 'tree' was not declared in this scope
   if(l == r){ tree[root] = (temp[root] - D)%MOD; return;}
               ^
0_0_17208750_12290.cpp: In function 'void pushUp(int)':
0_0_17208750_12290.cpp:39:3: error: 'tree' was not declared in this scope
   tree[root] = (tree[root << 1] * tree[root<<1 | 1]) %MOD;
   ^
0_0_17208750_12290.cpp: In function 'void lookUp(int, int, int, int, int)':
0_0_17208750_12290.cpp:44:12: error: 'tree' was not declared in this scope
     return tree[root]; 
            ^
0_0_17208750_12290.cpp:44:21: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return tree[root]; 
                     ^
0_0_17208750_12290.cpp:47:3: error: 'ret' was not declared in this scope
   ret = 1;
   ^
0_0_17208750_12290.cpp: At global scope:
0_0_17208750_12290.cpp:50:6: error: expected unqualified-id before 'return'
   }  return ret;
      ^
0_0_17208750_12290.cpp:51:1: error: expected declaration before '}' token
 }
 ^


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-10-05 19:50:58, Gzip enabled