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_19395930_22019.cpp: In function 'void ClearMark()':
0_0_19395930_22019.cpp:63:15: error: incompatible types in assignment of 'int' to 'int [101]'
         yslack=INF;
               ^
0_0_19395930_22019.cpp:65:14: error: incompatible types in assignment of 'int' to 'int [101]'
         xmark=-1;
              ^
0_0_19395930_22019.cpp:67:14: error: incompatible types in assignment of 'int' to 'int [101]'
         ymark=-1;
              ^
0_0_19395930_22019.cpp: In function 'void InitGraph()':
0_0_19395930_22019.cpp:81:33: error: 'memset' was not declared in this scope
     memset(pCost,0,sizeof(pCost));
                                 ^
0_0_19395930_22019.cpp:95:40: error: request for member 'x' in 'crdPerson', which is of non-class type 'Coord [101]'
                 2*nCount-abs(crdPerson.x-crdHouse[j].x)-abs(crdPerson.y-crdHouse[j].y);
                                        ^
0_0_19395930_22019.cpp:95:71: error: request for member 'y' in 'crdPerson', which is of non-class type 'Coord [101]'
                 2*nCount-abs(crdPerson.x-crdHouse[j].x)-abs(crdPerson.y-crdHouse[j].y);
                                                                       ^
0_0_19395930_22019.cpp:11:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 #define max(a,b) ((a)>(b)?(a):(b))
                         ^
0_0_19395930_22019.cpp:97:20: note: in expansion of macro 'max'
             maxVal=max(pCost[j],maxVal);
                    ^
0_0_19395930_22019.cpp:11:26: error: operands to ?: have different types 'int*' and 'int'
 #define max(a,b) ((a)>(b)?(a):(b))
                          ^
0_0_19395930_22019.cpp:97:20: note: in expansion of macro 'max'
             maxVal=max(pCost[j],maxVal);
                    ^
0_0_19395930_22019.cpp:101:13: error: incompatible types in assignment of 'int' to 'int [101]'
         xVal=maxVal;
             ^
0_0_19395930_22019.cpp: In function 'bool refresh_xyval(std::queue<int>&, int&)':
0_0_19395930_22019.cpp:13:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 #define min(a,b) ((a)<(b)?(a):(b))
                         ^
0_0_19395930_22019.cpp:127:16: note: in expansion of macro 'min'
         minVal=min(minVal,yslack);//在所有未能与已标记x匹配的y的松弛向量中(yslack>0)查找最小的
                ^
0_0_19395930_22019.cpp:13:26: error: operands to ?: have different types 'int' and 'int*'
 #define min(a,b) ((a)<(b)?(a):(b))
                          ^
0_0_19395930_22019.cpp:127:16: note: in expansion of macro 'min'
         minVal=min(minVal,yslack);//在所有未能与已标记x匹配的y的松弛向量中(yslack>0)查找最小的
                ^
0_0_19395930_22019.cpp:133:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if (xmark!=-1)
                     ^
0_0_19395930_22019.cpp:135:17: error: incompatible types in assignment of 'int' to 'int [101]'
             xVal-=minVal;
                 ^
0_0_19395930_22019.cpp:137:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if (ymark!=-1)
                     ^
0_0_19395930_22019.cpp:139:17: error: incompatible types in assignment of 'int' to 'int [101]'
             yVal+=minVal;
                 ^
0_0_19395930_22019.cpp:145:19: error: incompatible types in assignment of 'int' to 'int [101]'
             yslack-=minVal;
                   ^
0_0_19395930_22019.cpp:159:22: error: cannot convert 'std::vector<int>' to 'int' in initialization
         int curIndex=yslack_zero;
                      ^
0_0_19395930_22019.cpp: In function 'int km()':
0_0_19395930_22019.cpp:329:24: error: invalid operands of types 'int' and 'int [101]' to binary 'operator-'
         ans+=(2*nCount-xVal-yVal);//等价
                        ^


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-25 21:21:31, Gzip enabled