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_36274417_11001.cpp:9:7: error: 'maxn' does not name a type
 const maxn=205;
       ^
0_0_36274417_11001.cpp:10:11: error: 'maxn' was not declared in this scope
 char grid[maxn][maxn];
           ^
0_0_36274417_11001.cpp:10:17: error: 'maxn' was not declared in this scope
 char grid[maxn][maxn];
                 ^
0_0_36274417_11001.cpp: In function 'void bfs(int, int)':
0_0_36274417_11001.cpp:25:8: error: 'class std::queue<node>' has no member named 'top'
   f1=q.top();
        ^
0_0_36274417_11001.cpp:27:6: error: 'gird' was not declared in this scope
   if(gird[f1.x][f1.y]=='r')
      ^
0_0_36274417_11001.cpp:28:26: error: expected primary-expression before 'return'
    printf("%d\n",f1.ans),return 0;
                          ^
0_0_36274417_11001.cpp:32:50: error: 'grid' was not declared in this scope
    if(f2.x>=0&&f2.y<n&&f2.y<m&&!vis[f2.x][f2.y]&&grid[f2.x][f2.y]!='#'){
                                                  ^
0_0_36274417_11001.cpp:34:8: error: 'gird' was not declared in this scope
     if(gird[f2.x][f2.y]=='x') f2.ans+=2;
        ^
0_0_36274417_11001.cpp: In function 'int main()':
0_0_36274417_11001.cpp:48:17: error: 'grid' was not declared in this scope
     scanf("%c",&grid[i][j]);
                 ^


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-09-28 07:19:34, Gzip enabled