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_29944768_10397.cpp:9:10: error: 'MAXN' was not declared in this scope
 int love[MAXN][MAXN];   // 记录每个妹子和每个男生的好感度
          ^
0_0_29944768_10397.cpp:9:16: error: 'MAXN' was not declared in this scope
 int love[MAXN][MAXN];   // 记录每个妹子和每个男生的好感度
                ^
0_0_29944768_10397.cpp:10:13: error: 'MAXN' was not declared in this scope
 int ex_girl[MAXN];      // 每个妹子的期望值
             ^
0_0_29944768_10397.cpp:11:12: error: 'MAXN' was not declared in this scope
 int ex_boy[MAXN];       // 每个男生的期望值
            ^
0_0_29944768_10397.cpp:12:15: error: 'MAXN' was not declared in this scope
 bool vis_girl[MAXN];    // 记录每一轮匹配匹配过的女生
               ^
0_0_29944768_10397.cpp:13:14: error: 'MAXN' was not declared in this scope
 bool vis_boy[MAXN];     // 记录每一轮匹配匹配过的男生
              ^
0_0_29944768_10397.cpp:14:11: error: 'MAXN' was not declared in this scope
 int match[MAXN];        // 记录每个男生匹配到的妹子 如果没有则为-1
           ^
0_0_29944768_10397.cpp:15:11: error: 'MAXN' was not declared in this scope
 int slack[MAXN];        // 记录每个汉子如果能被妹子倾心最少还需要多少期望值
           ^
0_0_29944768_10397.cpp: In function 'bool dfs(int)':
0_0_29944768_10397.cpp:20:5: error: 'vis_girl' was not declared in this scope
     vis_girl[girl]=true;
     ^
0_0_29944768_10397.cpp:22:12: error: 'vis_boy' was not declared in this scope
         if(vis_boy[boy]) continue;
            ^
0_0_29944768_10397.cpp:23:17: error: 'ex_boy' was not declared in this scope
         int gap=ex_boy[boy]+ex_girl[girl]-love[girl][boy];
                 ^
0_0_29944768_10397.cpp:23:29: error: 'ex_girl' was not declared in this scope
         int gap=ex_boy[boy]+ex_girl[girl]-love[girl][boy];
                             ^
0_0_29944768_10397.cpp:23:43: error: 'love' was not declared in this scope
         int gap=ex_boy[boy]+ex_girl[girl]-love[girl][boy];
                                           ^
0_0_29944768_10397.cpp:26:13: error: 'vis_boy' was not declared in this scope
             vis_boy[boy]=true;
             ^
0_0_29944768_10397.cpp:27:16: error: 'match' was not declared in this scope
             if(match[boy]==-1||dfs(match[boy]))
                ^
0_0_29944768_10397.cpp:35:13: error: 'slack' was not declared in this scope
             slack[boy]=min(slack[boy],gap);
             ^
0_0_29944768_10397.cpp: In function 'int KM()':
0_0_29944768_10397.cpp:42:9: error: 'match' was not declared in this scope
     mst(match,-1);
         ^
0_0_29944768_10397.cpp:4:25: note: in definition of macro 'mst'
 #define mst(a,b) memset(a,b,sizeof(a))
                         ^
0_0_29944768_10397.cpp:43:9: error: 'ex_boy' was not declared in this scope
     mst(ex_boy,0);
         ^
0_0_29944768_10397.cpp:4:25: note: in definition of macro 'mst'
 #define mst(a,b) memset(a,b,sizeof(a))
                         ^
0_0_29944768_10397.cpp:46:9: error: 'ex_girl' was not declared in this scope
         ex_girl[i]=love[i][0];
         ^
0_0_29944768_10397.cpp:46:20: error: 'love' was not declared in this scope
         ex_girl[i]=love[i][0];
                    ^
0_0_29944768_10397.cpp:54:14: error: 'slack' was not declared in this scope
         fill(slack+1,slack+n+1,INF);
              ^
0_0_29944768_10397.cpp:57:17: error: 'vis_boy' was not declared in this scope
             mst(vis_boy,false);
                 ^
0_0_29944768_10397.cpp:4:25: note: in definition of macro 'mst'
 #define mst(a,b) memset(a,b,sizeof(a))
                         ^
0_0_29944768_10397.cpp:58:17: error: 'vis_girl' was not declared in this scope
             mst(vis_girl,false);
                 ^
0_0_29944768_10397.cpp:4:25: note: in definition of macro 'mst'
 #define mst(a,b) memset(a,b,sizeof(a))
                         ^
0_0_29944768_10397.cpp:64:33: error: 'ex_girl' was not declared in this scope
                 if(vis_girl[j]) ex_girl[j]-=d;
                                 ^
0_0_29944768_10397.cpp:76:14: error: 'love' was not declared in this scope
         res+=love[match[i]][i];
              ^
0_0_29944768_10397.cpp: In function 'int main()':
0_0_29944768_10397.cpp:85:13: error: 'love' was not declared in this scope
         mst(love,0); //初始化我们二分图的权值边
             ^
0_0_29944768_10397.cpp:4:25: note: in definition of macro 'mst'
 #define mst(a,b) memset(a,b,sizeof(a))
                         ^


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-12-01 08:30:24, Gzip enabled