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_24320985_29781.cpp:6:7: error: 'intMAXM' does not name a type
 const intMAXM=1e4+9;
       ^
0_0_24320985_29781.cpp:12:29: error: conflicting declaration 'std::pair<int, int> m [111]'
 pair<int,int> h[MAXN],m[MAXN];
                             ^
0_0_24320985_29781.cpp:11:5: note: previous declaration as 'int m'
 int m,n;
     ^
0_0_24320985_29781.cpp: In function 'bool dfs(int)':
0_0_24320985_29781.cpp:14:5: error: 'visx' was not declared in this scope
     visx[x] = true;
     ^
0_0_24320985_29781.cpp:16:12: error: 'visy' was not declared in this scope
         if(visy[y])
            ^
0_0_24320985_29781.cpp:18:19: error: 'lx' was not declared in this scope
         int tmp = lx[x] + ly[y] - w[x][y];
                   ^
0_0_24320985_29781.cpp:18:27: error: 'ly' was not declared in this scope
         int tmp = lx[x] + ly[y] - w[x][y];
                           ^
0_0_24320985_29781.cpp:20:13: error: 'visy' was not declared in this scope
             visy[y] == true;
             ^
0_0_24320985_29781.cpp:21:16: error: 'linker' was not declared in this scope
             if(linker[y]==-1||dfs(linker[y])){
                ^
0_0_24320985_29781.cpp:26:17: error: 'slack' was not declared in this scope
         else if(slack[y]>tmp)
                 ^
0_0_24320985_29781.cpp: In function 'int km()':
0_0_24320985_29781.cpp:32:12: error: 'linker' was not declared in this scope
     memset(linker, -1, sizeof(linker));
            ^
0_0_24320985_29781.cpp:33:12: error: 'ly' was not declared in this scope
     memset(ly, 0, sizeof(ly));
            ^
0_0_24320985_29781.cpp:35:9: error: 'lx' was not declared in this scope
         lx[i] = -INF;
         ^
0_0_24320985_29781.cpp:37:18: error: 'i' was not declared in this scope
             if(w[i][j]>lx[i])
                  ^
0_0_24320985_29781.cpp:37:24: error: 'lx' was not declared in this scope
             if(w[i][j]>lx[i])
                        ^
0_0_24320985_29781.cpp:40:20: error: 'slack' was not declared in this scope
             memset(slack,0x3f,izeof(slack));
                    ^
0_0_24320985_29781.cpp:40:42: error: 'izeof' was not declared in this scope
             memset(slack,0x3f,izeof(slack));
                                          ^
0_0_24320985_29781.cpp:42:24: error: 'visx' was not declared in this scope
                 memset(visx,0,sizeof(visx));
                        ^
0_0_24320985_29781.cpp:43:24: error: 'visy' was not declared in this scope
                 memset(visy,0,sizeof(visy));
                        ^
0_0_24320985_29781.cpp:47:51: error: 'lx' was not declared in this scope
                 for(int i=0;i<cntm;i++)if(visx[i])lx[i]-=d;                    for(int i=0;i<cnth;i++){
                                                   ^
0_0_24320985_29781.cpp:4:12: error: 'second' was not declared in this scope
 #define  y second
            ^
0_0_24320985_29781.cpp:49:32: note: in expansion of macro 'y'
                     else slack[y]-=d;
                                ^
0_0_24320985_29781.cpp:54:23: error: 'cnty' was not declared in this scope
         for(int i=0;i<cnty;i++)
                       ^
0_0_24320985_29781.cpp:55:48: error: 'j' was not declared in this scope
             if(linker[i]!=-1)res+=w[linker[i]][j];
                                                ^
0_0_24320985_29781.cpp: In function 'int main()':
0_0_24320985_29781.cpp:60:22: error: expected initializer before '<' token
         for(int i=0,i<n;i++)
                      ^
0_0_24320985_29781.cpp:60:22: error: expected ';' before '<' token
0_0_24320985_29781.cpp:60:22: error: expected primary-expression before '<' token
0_0_24320985_29781.cpp:66:47: error: invalid types 'int[int]' for array subscript
                 else if(mp[i][j]=='m')m[cntm++]=make_pair(i,j);
                                               ^
0_0_24320985_29781.cpp:69:35: error: expected ';' before ')' token
             for(int j=0;j<cnth,j++){
                                   ^
0_0_24320985_29781.cpp:70:32: error: invalid types 'int[int]' for array subscript
                 w[i][j] =  (m[i].first + m[i].second - h[i].first - h[i].second);
                                ^
0_0_24320985_29781.cpp:70:45: error: invalid types 'int[int]' for array subscript
                 w[i][j] =  (m[i].first + m[i].second - h[i].first - h[i].second);
                                             ^


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-26 11:18:45, Gzip enabled