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_38839503_2373.cpp:1:7: error: stray '`' in program
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |       ^
0_0_38839503_2373.cpp:1:8: error: stray '\301' in program
    1 | int v[`<c1><f9>`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |        ^~~~
0_0_38839503_2373.cpp:1:9: error: stray '\371' in program
    1 | int v[`<c1><f9>`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |            ^~~~
0_0_38839503_2373.cpp:1:10: error: stray '`' in program
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |          ^
0_0_38839503_2373.cpp:1:5: error: storage size of 'v' isn't known
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |     ^
0_0_38839503_2373.cpp: In function 'int s(int)':
0_0_38839503_2373.cpp:1:125: error: 'printf' was not declared in this scope
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |                                                                                                                             ^~~~~~
0_0_38839503_2373.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
0_0_38839503_2373.cpp: In function 'int main()':
0_0_38839503_2373.cpp:1:164: error: 'scanf' was not declared in this scope
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(1));}}
      |                                                                                                                                                                    ^~~~~
0_0_38839503_2373.cpp:1:260: error: 'puts' was not declared in this scope
    1 | int v[`Áù`],m,l,r,h,w,n;int s(int p){return l-r?(m=l+r>>1,v[p*=2]<w?l=m+1,s(p+1):(r=m,s(p)),v[p/2]=v[p]>v[p+1]?v[p]:v[p+1]):printf("%d\n",l,v[p]-=w);}main(){for(;~scanf("%d%d%d",&h,&w,&n);){for(m=0;m++<n*4;)v[m]=w;for(h>n&&(h=n);n--;r=h,v[l=scanf("%d",&w)]<w?puts("-1"):s(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-15 15:43:44, Gzip enabled