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_29423622_9357.cpp:7:25: error: expected unqualified-id before ',' token
 struct tree{    int l,r,,min,max; ll self,lazy;    }tree[3000033];
                         ^
0_0_29423622_9357.cpp: In function 'void pushdown(int)':
0_0_29423622_9357.cpp:16:13: error: 'struct tree' has no member named 'min'
  tree[x<<1].min+=tree[x].lazy;
             ^
0_0_29423622_9357.cpp:17:15: error: 'struct tree' has no member named 'min'
  tree[x<<1|1].min+=tree[x].lazy;
               ^
0_0_29423622_9357.cpp:18:13: error: 'struct tree' has no member named 'max'
  tree[x<<1].max+=tree[x].lazy;
             ^
0_0_29423622_9357.cpp:19:15: error: 'struct tree' has no member named 'max'
  tree[x<<1|1].max+=tree[x].lazy;
               ^
0_0_29423622_9357.cpp: In function 'void pushup(int)':
0_0_29423622_9357.cpp:23:10: error: 'struct tree' has no member named 'min'
  tree[x].min=min(tree[x<<1].min,tree[x<<1|1].min);
          ^
0_0_29423622_9357.cpp:23:29: error: 'struct tree' has no member named 'min'
  tree[x].min=min(tree[x<<1].min,tree[x<<1|1].min);
                             ^
0_0_29423622_9357.cpp:23:46: error: 'struct tree' has no member named 'min'
  tree[x].min=min(tree[x<<1].min,tree[x<<1|1].min);
                                              ^
0_0_29423622_9357.cpp:25:10: error: 'struct tree' has no member named 'max'
  tree[x].max=max(tree[x<<1].max,tree[x<<1|1].max);
          ^
0_0_29423622_9357.cpp:25:29: error: 'struct tree' has no member named 'max'
  tree[x].max=max(tree[x<<1].max,tree[x<<1|1].max);
                             ^
0_0_29423622_9357.cpp:25:46: error: 'struct tree' has no member named 'max'
  tree[x].max=max(tree[x<<1].max,tree[x<<1|1].max);
                                              ^
0_0_29423622_9357.cpp: In function 'void build(int, int, int)':
0_0_29423622_9357.cpp:30:10: error: 'struct tree' has no member named 'min'
  tree[x].min=tree[x].max=tree[x].self=tree[x].lazy=0;
          ^
0_0_29423622_9357.cpp:30:22: error: 'struct tree' has no member named 'max'
  tree[x].min=tree[x].max=tree[x].self=tree[x].lazy=0;
                      ^
0_0_29423622_9357.cpp:33:11: error: 'struct tree' has no member named 'min'
   tree[x].min=tree[x].max=tree[x].self;
           ^
0_0_29423622_9357.cpp:33:23: error: 'struct tree' has no member named 'max'
   tree[x].min=tree[x].max=tree[x].self;
                       ^
0_0_29423622_9357.cpp: In function 'void renew(int, int, int, int)':
0_0_29423622_9357.cpp:42:14: error: 'struct tree' has no member named 'max'
   if(tree[x].max==tree[x].min){
              ^
0_0_29423622_9357.cpp:42:27: error: 'struct tree' has no member named 'min'
   if(tree[x].max==tree[x].min){
                           ^
0_0_29423622_9357.cpp:43:29: error: 'struct tree' has no member named 'min'
    tree[x].lazy=val-tree[x].min;
                             ^
0_0_29423622_9357.cpp:45:12: error: 'struct tree' has no member named 'min'
    tree[x].min+=tree[x].lazy;
            ^
0_0_29423622_9357.cpp:46:12: error: 'struct tree' has no member named 'max'
    tree[x].max+=tree[x].lazy; return;
            ^
0_0_29423622_9357.cpp: In function 'void rephi(int, int, int)':
0_0_29423622_9357.cpp:57:14: error: 'struct tree' has no member named 'max'
   if(tree[x].max==tree[x].min){
              ^
0_0_29423622_9357.cpp:57:27: error: 'struct tree' has no member named 'min'
   if(tree[x].max==tree[x].min){
                           ^
0_0_29423622_9357.cpp:58:29: error: 'struct tree' has no member named 'min'
    tree[x].lazy=phi[tree[x].min]-tree[x].min;
                             ^
0_0_29423622_9357.cpp:58:42: error: 'struct tree' has no member named 'min'
    tree[x].lazy=phi[tree[x].min]-tree[x].min;
                                          ^
0_0_29423622_9357.cpp:60:12: error: 'struct tree' has no member named 'min'
    tree[x].min+=tree[x].lazy;
            ^
0_0_29423622_9357.cpp:61:12: error: 'struct tree' has no member named 'max'
    tree[x].max+=tree[x].lazy; return;
            ^


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-12-28 04:30:50, Gzip enabled