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_38900867_13353.cpp: In function 'void add_sub(int, int, int, double)':
0_0_38900867_13353.cpp:31:25: error: 'max' was not declared in this scope
   31 |     t[id].subt[rt].mx = max(love,t[id].subt[rt].mx);
      |                         ^~~
0_0_38900867_13353.cpp: In function 'double sear(int, int, int, int)':
0_0_38900867_13353.cpp:53:17: error: 'max' was not declared in this scope
   53 |     else return max(sear(id,rt<<1,ll,mid), sear(id,rt<<1|1,mid+1,rr));
      |                 ^~~
0_0_38900867_13353.cpp: In function 'double query(int, int, int, int, int)':
0_0_38900867_13353.cpp:62:17: error: 'max' was not declared in this scope
   62 |     else return max(query(id<<1,l,mid,ll,rr), query(id<<1|1,mid+1,r,ll,rr));
      |                 ^~~
0_0_38900867_13353.cpp: In function 'int main()':
0_0_38900867_13353.cpp:66:11: error: 'scanf' was not declared in this scope
   66 |     while(scanf("%d",&n) && n){
      |           ^~~~~
0_0_38900867_13353.cpp:84:26: error: 'swap' was not declared in this scope
   84 |                 if(h1>h2)swap(h1,h2);//trickŁĄ
      |                          ^~~~
0_0_38900867_13353.cpp:85:26: error: 'swap' was not declared in this scope
   85 |                 if(y1>y2)swap(y1,y2);
      |                          ^~~~
0_0_38900867_13353.cpp:87:32: error: 'printf' was not declared in this scope
   87 |                 if(ans == -1.0)printf("-1\n");
      |                                ^~~~~~
0_0_38900867_13353.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #define N 210
0_0_38900867_13353.cpp:88:22: error: 'printf' was not declared in this scope
   88 |                 else printf("%.1lf\n",ans);
      |                      ^~~~~~
0_0_38900867_13353.cpp:88:22: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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-25 18:38:59, Gzip enabled