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_33551929_16833.cpp:4:8: error: 'N' was not declared in this scope
  int t[N<<2];
        ^
0_0_33551929_16833.cpp: In member function 'void SegmentTree::build(int, int, int, int*)':
0_0_33551929_16833.cpp:6:12: error: 't' was not declared in this scope
   if(l==r){t[x]=tmp[l];return;}
            ^
0_0_33551929_16833.cpp:8:3: error: 't' was not declared in this scope
   t[x]=min(t[x<<1],t[x<<1|1]);
   ^
0_0_33551929_16833.cpp:8:29: error: 'min' was not declared in this scope
   t[x]=min(t[x<<1],t[x<<1|1]);
                             ^
0_0_33551929_16833.cpp: In member function 'int SegmentTree::query(int, int, int, int, int)':
0_0_33551929_16833.cpp:11:26: error: 't' was not declared in this scope
   if(ql<=l&&qr>=r)return t[x];
                          ^
0_0_33551929_16833.cpp:14:65: error: 'min' was not declared in this scope
   return min(query(x<<1,l,mid,ql,qr),query(x<<1|1,mid+1,r,ql,qr));
                                                                 ^
0_0_33551929_16833.cpp: In member function 'void SegmentTree::chg(int, int, int, int, int)':
0_0_33551929_16833.cpp:17:12: error: 't' was not declared in this scope
   if(l==r){t[x]=s;return;}
            ^
0_0_33551929_16833.cpp:20:3: error: 't' was not declared in this scope
   t[x]=min(t[x<<1],t[x<<1|1]);
   ^
0_0_33551929_16833.cpp:20:29: error: 'min' was not declared in this scope
   t[x]=min(t[x<<1],t[x<<1|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:00:12, Gzip enabled