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;
^
|