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_35061025_32544.cpp:5:1: error: 'struct_Seg_Tree' does not name a type
 struct_Seg_Tree{
 ^
0_0_35061025_32544.cpp:15:2: error: 'tt' does not name a type
 }tt[1000000];
  ^
0_0_35061025_32544.cpp: In function 'long long int build(int, int, int)':
0_0_35061025_32544.cpp:19:4: error: 'tt' was not declared in this scope
    tt[idx].left=l;
    ^
0_0_35061025_32544.cpp:25:31: error: 'mid' was not declared in this scope
    return tt[idx].sum=build(l,mid,LL(idx)+build(mid+1,r,RR(idx)));
                               ^
0_0_35061025_32544.cpp: In function 'void update(int, int, int, int)':
0_0_35061025_32544.cpp:29:10: error: 'tt' was not declared in this scope
    if(l<=tt[idx].left&&r>=tt[idx].right){
          ^
0_0_35061025_32544.cpp:34:7: error: 'tt' was not declared in this scope
    if(tt[idx].add){
       ^
0_0_35061025_32544.cpp:35:19: error: request for member 'sum' in '(idx << 1)', which is of non-class type 'int'
        tt[LL(idx).sum]+=(long long)tt[LL(idx)].caldis()*tt[idx].add;
                   ^
0_0_35061025_32544.cpp:36:19: error: request for member 'sum' in '((idx << 1) | 1)', which is of non-class type 'int'
        tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
                   ^
0_0_35061025_32544.cpp:36:26: error: expected primary-expression before 'long'
        tt[RR(idx).sum]++(long long)tt[RR(idx)].caldis()*tt[idx].add;
                          ^
0_0_35061025_32544.cpp:42:12: error: 'tt' was not declared in this scope
    int mid=tt[idx].calmid();
            ^
0_0_35061025_32544.cpp: In function 'long long int query(int, int, int)':
0_0_35061025_32544.cpp:49:12: error: 'tt' was not declared in this scope
      if(l==tt[idx].left&&r==tt[idx].right){
            ^
0_0_35061025_32544.cpp:52:9: error: 'tt' was not declared in this scope
      if(tt[idx].add){
         ^
0_0_35061025_32544.cpp:59:14: error: 'tt' was not declared in this scope
      int mid=tt[idx].calmid();
              ^
0_0_35061025_32544.cpp:65:59: error: expected ')' before ';' token
          return query(l,mid,LL(idx)+query(mid+1,r,RR(idx));
                                                           ^
0_0_35061025_32544.cpp: In function 'int main()':
0_0_35061025_32544.cpp:81:42: error: 'pirntf' was not declared in this scope
               pirntf("lld\n",query(a,b,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 09:15:06, Gzip enabled