0_0_17162317_20666.cpp: In function 'void add_sub(int, int, int, double)':
0_0_17162317_20666.cpp:31:51: error: 'max' was not declared in this scope
t[id].subt[rt].mx = max(love,t[id].subt[rt].mx);
^
0_0_17162317_20666.cpp: In function 'double sear(int, int, int, int)':
0_0_17162317_20666.cpp:54:69: error: 'max' was not declared in this scope
else return max(sear(id,rt<<1,ll,mid), sear(id,rt<<1|1,mid+1,rr));
^
0_0_17162317_20666.cpp: In function 'double query(int, int, int, int, int)':
0_0_17162317_20666.cpp:63:75: error: 'max' was not declared in this scope
else return max(query(id<<1,l,mid,ll,rr), query(id<<1|1,mid+1,r,ll,rr));
^
0_0_17162317_20666.cpp: In function 'int main()':
0_0_17162317_20666.cpp:67:24: error: 'scanf' was not declared in this scope
while(scanf("%d",&n) && n){
^
0_0_17162317_20666.cpp:85:36: error: 'swap' was not declared in this scope
if(h1>h2)swap(h1,h2);//trickŁĄ
^
0_0_17162317_20666.cpp:86:36: error: 'swap' was not declared in this scope
if(y1>y2)swap(y1,y2);
^
0_0_17162317_20666.cpp:88:45: error: 'printf' was not declared in this scope
if(ans == -1.0)printf("-1\n");
^
0_0_17162317_20666.cpp:89:42: error: 'printf' was not declared in this scope
else printf("%.1lf\n",ans);
^
|