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_26664418_3140.cpp: In function 'void Dinic::init()':
0_0_26664418_3140.cpp:16:9: error: 'fill' is not a member of 'std'
         std::fill(head, head + maxN, -1);
         ^
0_0_26664418_3140.cpp: In function 'bool Dinic::dinic_bfs(int, int)':
0_0_26664418_3140.cpp:28:9: error: 'fill' is not a member of 'std'
         std::fill(depth, depth + maxN, INF);
         ^
0_0_26664418_3140.cpp:29:9: error: 'copy' is not a member of 'std'
         std::copy(head, head + maxN, head_copy);
         ^
0_0_26664418_3140.cpp:30:9: error: 'queue' is not a member of 'std'
         std::queue<int> q;
         ^
0_0_26664418_3140.cpp:30:20: error: expected primary-expression before 'int'
         std::queue<int> q;
                    ^
0_0_26664418_3140.cpp:32:9: error: 'q' was not declared in this scope
         q.push(source);
         ^
0_0_26664418_3140.cpp: In function 'int Dinic::dinic_dfs(int, int, int)':
0_0_26664418_3140.cpp:53:49: error: 'min' is not a member of 'std'
                 f = dinic_dfs(edge[e].to, sink, std::min(limit, edge[e].dist));
                                                 ^
0_0_26664418_3140.cpp: In function 'int main()':
0_0_26664418_3140.cpp:76:19: error: 'scanf' was not declared in this scope
     scanf("%d", &T);
                   ^
0_0_26664418_3140.cpp:89:43: error: 'printf' was not declared in this scope
         printf("Case %d: %d\n", ++cas, ans);
                                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 17:18:52, Gzip enabled