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_33230508_16500.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include#include#includetypedef struct{    int x,y;}point;point a[10010];int map[1010][1010];int t,n,X,Y,sx,sy,ex,ey;using namespace std;int dis(int x,int y){    return x-y>=0?x-y:y-x;}int bfs(int u){    int i,j;    for(i=1;i<=n;i++)    {        if(dis(a[i].x,sx)+dis(a[i].y,sy)<=u)            return 0;        if(dis(a[i].x,ex)+dis(a[i].y,ey)<=u)            return 0;    }    for(i=0;i=0&&j=0&&y1=0&&j=0&&y2que;    point now,temp;    map[sx][sy]=0;    now.x=sx;    now.y=sy;    que.push(now);    while(!que.empty())    {        temp=que.front();        que.pop();        if(temp.x==ex&&temp.y==ey)            return 1;        if((temp.x+1>=0&&temp.x+1=0&&temp.y=0&&temp.x-1=0&&temp.y=0&&temp.x=0&&temp.y+1=0&&temp.x=0&&temp.y-1>1;                 if(bfs(mid))                    left=mid+1;                else                    right=mid-1;            }            bfs(right);            printf("%d %d\n",right+1,map[ex][ey]);        }    }    return 0;}
         ^


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 18:17:45, Gzip enabled