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_20506530_12046.cpp:11:2: note: #pragma message: 
#include<iostream>
#include<algorithm>
#include<memory.h>
#include<string>
#include<queue>
using namespace std;
int n,m;
const int MAXX=99999999;
char grid[202][202];
int vis[202][202];

 ")
  ^
0_0_20506530_12046.cpp:22:2: note: #pragma message: 
int minx=MAXX;
int y[4]={-1,0,0,1};
int x[4]={0,-1,1,0};
void dfs(int i,int j,int t){
    if(i<0||i>=n||j<0||j>=m)return ;
    if(grid[i][j]=='#'||vis[i][j])return ;
    if(grid[i][j]=='r'){
        if(t<minx)minx=t;
    }
    vis[i][j]=1;

 ")
  ^
0_0_20506530_12046.cpp:33:2: note: #pragma message: 
    if(grid[i][j]=='x')t++;
    for(int k=0;k<4;k++)
    dfs(i+y[k],j+x[k],t+1);
    
    vis[i][j]=0;
}
int main(){
    ios::sync_with_stdio(0);
    while(cin>>n>>m){
        memset(vis,0,sizeof(vis));

 ")
  ^
0_0_20506530_12046.cpp:44:2: note: #pragma message: 
        int sy,sx;
        minx=MAXX;
        for(int i=0;i<n;i++){
            for(int j=0;j<m;j++){
                cin>>grid[i][j];
                if(grid[i][j]=='a'){
                    sy=i;sx=j;
                }
            }
        }

 ")
  ^
GCC4.9.2/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x25): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status


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-29 23:42:22, Gzip enabled