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_33827347_10025.cpp:13:1: error: expected initializer before 'int'
 int mp[2009][2009];
 ^
0_0_33827347_10025.cpp: In function 'void dfs(int, int, int)':
0_0_33827347_10025.cpp:19:5: error: 'mp' was not declared in this scope
  if(mp[x][y+1] != v-1)
     ^
0_0_33827347_10025.cpp:21:5: error: 'mp' was not declared in this scope
  if(mp[x-1][y] != v-2)
     ^
0_0_33827347_10025.cpp:23:5: error: 'mp' was not declared in this scope
  if(mp[x+1][y] != v-3)
     ^
0_0_33827347_10025.cpp:25:5: error: 'mp' was not declared in this scope
  if(mp[x][y-1] != v-4)
     ^
0_0_33827347_10025.cpp:27:2: error: 'mp' was not declared in this scope
  mp[x][y] = v;
  ^
0_0_33827347_10025.cpp: In function 'int main()':
0_0_33827347_10025.cpp:37:9: error: 'n' was not declared in this scope
  cin >> n;
         ^
0_0_33827347_10025.cpp:38:9: error: 'mp' was not declared in this scope
  memset(mp , 0 , sizeof(mp));
         ^


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-22 18:45:17, Gzip enabled