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_26346197_27516.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include #include using namespace std;int H,W;struct point{ int x,y; char c; int step; int key; bool f;};point data[105][105][16];int main(int args,char** argv){ char ch; int sx,sy,ans,flag,t; int dx[4]={0,-1,0,1}; int dy[4]={-1,0,1,0}; while(cin>>H>>W&&H&&W) { ans=0; flag=0; for(int i=0;i>ch; for(int f=0;f<16;f++) { data[i][j][f].x=j; data[i][j][f].y=i; data[i][j][f].step=0; data[i][j][f].c=ch; data[i][j][f].key=f; data[i][j][f].f=0; if(ch=='*') { sx=j; sy=i; } } } queue list; data[sy][sx][0].f=1; list.push(data[sy][sx][0]); while(!list.empty()) { point tmp=list.front(); if(tmp.c=='X') { flag=1; ans=tmp.step; break; } for(int i=0;i<4;i++) { if(tmp.x+dx[i]>=0&&tmp.x+dx[i]=0&&tmp.y+dy[i]
          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 11:41:41, Gzip enabled