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_22207826_7833.cpp: In function 'void init(int)':
0_0_22207826_7833.cpp:28:3: error: 'pre' was not declared in this scope
   pre[i] = i;
   ^
0_0_22207826_7833.cpp:30:2: error: 'cnt' was not declared in this scope
  cnt = n;
  ^
0_0_22207826_7833.cpp: In function 'int root(int)':
0_0_22207826_7833.cpp:34:8: error: 'pre' was not declared in this scope
  if(x!=pre[x]){
        ^
0_0_22207826_7833.cpp:37:9: error: 'pre' was not declared in this scope
  return pre[x];
         ^
0_0_22207826_7833.cpp: In function 'void merge(int, int, int, int, bool)':
0_0_22207826_7833.cpp:41:8: error: 'n' was not declared in this scope
  if(bx>n || by>m)return;//超出地图的部分不进行合并
        ^
0_0_22207826_7833.cpp:41:16: error: 'm' was not declared in this scope
  if(bx>n || by>m)return;//超出地图的部分不进行合并
                ^
0_0_22207826_7833.cpp:44:2: error: 'ta' was not declared in this scope
  ta = farm[ax][ay]-'A';
  ^
0_0_22207826_7833.cpp:45:2: error: 'tb' was not declared in this scope
  tb = farm[bx][by]-'A';
  ^
0_0_22207826_7833.cpp:52:24: error: 'm' was not declared in this scope
   int fx = root((ax-1)*m+ay);
                        ^
0_0_22207826_7833.cpp:55:4: error: 'pre' was not declared in this scope
    pre[fy] = fx;
    ^
0_0_22207826_7833.cpp:56:6: error: 'cnt' was not declared in this scope
    --cnt;
      ^
0_0_22207826_7833.cpp: In function 'int main()':
0_0_22207826_7833.cpp:65:23: error: 'n' was not declared in this scope
  while(scanf("%d %d",&n,&m)!=EOF){
                       ^
0_0_22207826_7833.cpp:65:26: error: 'm' was not declared in this scope
  while(scanf("%d %d",&n,&m)!=EOF){
                          ^
0_0_22207826_7833.cpp:77:17: error: 'cnt' was not declared in this scope
   printf("%d\n",cnt);
                 ^


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-06-29 08:38:45, Gzip enabled