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_20472217_18941.cpp:7:9: error: 'M' was not declared in this scope
 int map[M][M], vis[M], link[M];
         ^
0_0_20472217_18941.cpp:7:12: error: 'M' was not declared in this scope
 int map[M][M], vis[M], link[M];
            ^
0_0_20472217_18941.cpp:7:20: error: 'M' was not declared in this scope
 int map[M][M], vis[M], link[M];
                    ^
0_0_20472217_18941.cpp:7:29: error: 'M' was not declared in this scope
 int map[M][M], vis[M], link[M];
                             ^
0_0_20472217_18941.cpp: In function 'int find(int)':
0_0_20472217_18941.cpp:14:6: error: 'map' was not declared in this scope
   if(map[x][i] && !vis[i])
      ^
0_0_20472217_18941.cpp:14:20: error: 'vis' was not declared in this scope
   if(map[x][i] && !vis[i])
                    ^
0_0_20472217_18941.cpp:17:7: error: 'link' was not declared in this scope
    if(link[i] == 0 || find(link[i]))
       ^
0_0_20472217_18941.cpp: In function 'int main()':
0_0_20472217_18941.cpp:31:10: error: 'map' was not declared in this scope
   memset(map, 0, sizeof(map));
          ^
0_0_20472217_18941.cpp:32:10: error: 'link' was not declared in this scope
   memset(link, 0, sizeof(link));
          ^
0_0_20472217_18941.cpp:47:11: error: 'vis' was not declared in this scope
    memset(vis, 0, sizeof(vis));
           ^


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-10-07 00:06:06, Gzip enabled