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_38097519_15783.cpp: In function 'bool check(int, int)':
0_0_38097519_15783.cpp:9:16: error: 'n' was not declared in this scope
     if (x<0||x>n-1||y<0||y>m-1) return 0;
                ^
0_0_38097519_15783.cpp:9:28: error: 'm' was not declared in this scope
     if (x<0||x>n-1||y<0||y>m-1) return 0;
                            ^
0_0_38097519_15783.cpp: In function 'bool yue(int, int, int, int, int)':
0_0_38097519_15783.cpp:15:29: error: 'swap' was not declared in this scope
     if (x1 > x2) swap(x1, x2);
                             ^
0_0_38097519_15783.cpp:16:29: error: 'swap' was not declared in this scope
     if (y1 > y2) swap(y1, y2);
                             ^
0_0_38097519_15783.cpp:17:21: error: 'k' was not declared in this scope
     for (int i=1;i<=k;i++)
                     ^
0_0_38097519_15783.cpp: In function 'bool BFS(int)':
0_0_38097519_15783.cpp:30:21: error: 'n' was not declared in this scope
     for (int i=0;i<=n;i++)
                     ^
0_0_38097519_15783.cpp:31:25: error: 'm' was not declared in this scope
         for (int j=0;j<=m;j++)
                         ^
0_0_38097519_15783.cpp:32:13: error: 'vis' was not declared in this scope
             vis[i][j] = 0;
             ^
0_0_38097519_15783.cpp:33:5: error: 'queue' was not declared in this scope
     queue<PII> q;
     ^
0_0_38097519_15783.cpp:33:11: error: 'PII' was not declared in this scope
     queue<PII> q;
           ^
0_0_38097519_15783.cpp:33:16: error: 'q' was not declared in this scope
     queue<PII> q;
                ^
0_0_38097519_15783.cpp:34:27: error: 'make_pair' was not declared in this scope
     q.push(make_pair(sx,sy));
                           ^
0_0_38097519_15783.cpp:35:5: error: 'vis' was not declared in this scope
     vis[sx][sy] = 1;
     ^
0_0_38097519_15783.cpp:38:13: error: expected ';' before 'u'
         PII u = q.front();q.pop();
             ^
0_0_38097519_15783.cpp:39:17: error: 'u' was not declared in this scope
         int x = u.first, y = u.second;
                 ^
0_0_38097519_15783.cpp:42:36: error: 'y' was not declared in this scope
             int nx = x+dx[i], ny = y+dy[i];
                                    ^
0_0_38097519_15783.cpp: In function 'void Case_Test()':
0_0_38097519_15783.cpp:70:5: error: 'cin' was not declared in this scope
     cin>>n>>m>>k;
     ^
0_0_38097519_15783.cpp:70:10: error: 'n' was not declared in this scope
     cin>>n>>m>>k;
          ^
0_0_38097519_15783.cpp:70:13: error: 'm' was not declared in this scope
     cin>>n>>m>>k;
             ^
0_0_38097519_15783.cpp:70:16: error: 'k' was not declared in this scope
     cin>>n>>m>>k;
                ^
0_0_38097519_15783.cpp:71:5: error: 'ans' was not declared in this scope
     ans = inf;
     ^
0_0_38097519_15783.cpp:71:11: error: 'inf' was not declared in this scope
     ans = inf;
           ^
0_0_38097519_15783.cpp:76:62: error: 'swap' was not declared in this scope
         if (wall[i].x1>wall[i].x2) swap(wall[i].x1,wall[i].x2);
                                                              ^
0_0_38097519_15783.cpp:77:62: error: 'swap' was not declared in this scope
         if (wall[i].y1>wall[i].y2) swap(wall[i].y1,wall[i].y2);
                                                              ^
0_0_38097519_15783.cpp:89:30: error: 'Min' was not declared in this scope
             ans = Min(ans,cnt);
                              ^
0_0_38097519_15783.cpp:91:5: error: 'cout' was not declared in this scope
     cout<<ans<<endl;
     ^
0_0_38097519_15783.cpp:91:16: error: 'endl' was not declared in this scope
     cout<<ans<<endl;
                ^


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-23 06:29:18, Gzip enabled