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_34777072_21843.cpp: In function 'int main()':
0_0_34777072_21843.cpp:38:27: error: 'x2' was not declared in this scope
     else if(a[i][j]=='D') x2=i,y2=j;
                           ^
0_0_34777072_21843.cpp:38:32: error: 'y2' was not declared in this scope
     else if(a[i][j]=='D') x2=i,y2=j;
                                ^
0_0_34777072_21843.cpp:42:10: error: 'x2' was not declared in this scope
   if(abs(x2-x1)+abs(y2-y1)%2!=tt%2) cout<<"NO"<<endl;
          ^
0_0_34777072_21843.cpp:42:13: error: 'x1' was not declared in this scope
   if(abs(x2-x1)+abs(y2-y1)%2!=tt%2) cout<<"NO"<<endl;
             ^
0_0_34777072_21843.cpp:42:21: error: 'y2' was not declared in this scope
   if(abs(x2-x1)+abs(y2-y1)%2!=tt%2) cout<<"NO"<<endl;
                     ^
0_0_34777072_21843.cpp:42:24: error: 'y1' was not declared in this scope
   if(abs(x2-x1)+abs(y2-y1)%2!=tt%2) cout<<"NO"<<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-16 18:23:31, Gzip enabled