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_36714959_26681.cpp:7:18: error: expected unqualified-id before '...' token
 namespace MCMF { ... }
                  ^
0_0_36714959_26681.cpp: In function 'void init()':
0_0_36714959_26681.cpp:8:73: error: 'init' is not a member of 'MCMF'
 void init() { memset(ecnt, 0, sizeof ecnt); memset(deg, 0, sizeof deg); MCMF::init(); }
                                                                         ^
0_0_36714959_26681.cpp:8:73: note: suggested alternative:
0_0_36714959_26681.cpp:8:6: note:   'init'
 void init() { memset(ecnt, 0, sizeof ecnt); memset(deg, 0, sizeof deg); MCMF::init(); }
      ^
0_0_36714959_26681.cpp: In function 'int main()':
0_0_36714959_26681.cpp:20:1: error: 'add' is not a member of 'MCMF'
 MCMF::add(tot, i, 1, 0); MCMF::add(tot, j, 1, 0); tot++;
 ^
0_0_36714959_26681.cpp:20:26: error: 'add' is not a member of 'MCMF'
 MCMF::add(tot, i, 1, 0); MCMF::add(tot, j, 1, 0); tot++;
                          ^
0_0_36714959_26681.cpp:24:1: error: 's' is not a member of 'MCMF'
 MCMF::s = n+tot, MCMF::t = n+tot+1;
 ^
0_0_36714959_26681.cpp:24:1: note: suggested alternative:
0_0_36714959_26681.cpp:6:6: note:   's'
 char s[202][202];
      ^
0_0_36714959_26681.cpp:24:18: error: 't' is not a member of 'MCMF'
 MCMF::s = n+tot, MCMF::t = n+tot+1;
                  ^
0_0_36714959_26681.cpp:25:33: error: 'add' is not a member of 'MCMF'
 for (int i = n+1; i < tot; i++) MCMF::add(MCMF::s, i, 1, 0);
                                 ^
0_0_36714959_26681.cpp:25:43: error: 's' is not a member of 'MCMF'
 for (int i = n+1; i < tot; i++) MCMF::add(MCMF::s, i, 1, 0);
                                           ^
0_0_36714959_26681.cpp:25:43: note: suggested alternative:
0_0_36714959_26681.cpp:6:6: note:   's'
 char s[202][202];
      ^
0_0_36714959_26681.cpp:29:35: error: 'add' is not a member of 'MCMF'
 for (int j = 0; j < ecnt[i]; j++) MCMF::add(i, MCMF::t, 1, tt++);
                                   ^
0_0_36714959_26681.cpp:29:48: error: 't' is not a member of 'MCMF'
 for (int j = 0; j < ecnt[i]; j++) MCMF::add(i, MCMF::t, 1, tt++);
                                                ^
0_0_36714959_26681.cpp:31:1: error: 'MCMF' is not a member of 'MCMF'
 MCMF::MCMF(); tmp += MCMF::ans;
 ^
0_0_36714959_26681.cpp:31:1: note: suggested alternative:
0_0_36714959_26681.cpp:7:16: note:   'MCMF'
 namespace MCMF { ... }
                ^
0_0_36714959_26681.cpp:31:22: error: 'ans' is not a member of 'MCMF'
 MCMF::MCMF(); tmp += MCMF::ans;
                      ^


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-11-29 01:23:33, Gzip enabled