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_25103396_24648.cpp:32:16: error: redefinition of 'const int dy1 [8]'
 const int dy1[8] = { -1, 1, -2, 2, -2, 2, -1, 1 };
                ^
0_0_25103396_24648.cpp:31:11: note: 'const int dy1 [8]' previously defined here
 const int dy1[8] = { -2, -2, -1, -1, 1, 1, 2, 2 };
           ^
0_0_25103396_24648.cpp: In function 'void go()':
0_0_25103396_24648.cpp:191:19: error: 'dx1' was not declared in this scope
     int xx = x1 + dx1[k];
                   ^
0_0_25103396_24648.cpp:194:9: error: redeclaration of 'int yyy'
     int yyy = y1 + dy2[k];
         ^
0_0_25103396_24648.cpp:193:9: note: 'int yyy' previously declared here
     int yyy = x1 + dx2[k];
         ^
0_0_25103396_24648.cpp:196:43: error: 'xxx' was not declared in this scope
     if (ok(xx, yy, x2, y2, x3, y3) && dif(xxx, yyy, x2, y2) && dif(xxx, yyy, x3, y3))
                                           ^


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-09-29 05:06:00, Gzip enabled