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_33373063_19279.cpp:4:7: error: expected nested-name-specifier before 'namespacestd'
 using namespacestd;
       ^
0_0_33373063_19279.cpp:16:1: error: 'vector' does not name a type
 vector<edge> G[maxn];
 ^
0_0_33373063_19279.cpp:21:14: error: variable or field 'addedge' declared void
 void addedge(intfrom, int to, int cap) {
              ^
0_0_33373063_19279.cpp:21:14: error: 'intfrom' was not declared in this scope
0_0_33373063_19279.cpp:21:23: error: expected primary-expression before 'int'
 void addedge(intfrom, int to, int cap) {
                       ^
0_0_33373063_19279.cpp:21:31: error: expected primary-expression before 'int'
 void addedge(intfrom, int to, int cap) {
                               ^
0_0_33373063_19279.cpp: In function 'void init()':
0_0_33373063_19279.cpp:27:9: error: 'G' was not declared in this scope
         G[i].clear();
         ^
0_0_33373063_19279.cpp: In function 'void bfs(int)':
0_0_33373063_19279.cpp:34:5: error: 'queue' was not declared in this scope
     queue <int> Q;
     ^
0_0_33373063_19279.cpp:34:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_33373063_19279.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_33373063_19279.cpp:34:12: error: expected primary-expression before 'int'
     queue <int> Q;
            ^
0_0_33373063_19279.cpp:36:5: error: 'Q' was not declared in this scope
     Q.push(s);
     ^
0_0_33373063_19279.cpp:40:30: error: 'G' was not declared in this scope
         for (int i = 0 ; i < G[v].size(); i++) {
                              ^
0_0_33373063_19279.cpp: At global scope:
0_0_33373063_19279.cpp:50:16: error: 'intt' has not been declared
 int dfs(int v, intt , int f) {
                ^
0_0_33373063_19279.cpp: In function 'int dfs(int, int, int)':
0_0_33373063_19279.cpp:51:14: error: 't' was not declared in this scope
     if (v == t) {
              ^
0_0_33373063_19279.cpp:54:31: error: 'G' was not declared in this scope
     for (int &i = iter[v]; i <G[v].size(); i ++) {
                               ^
0_0_33373063_19279.cpp:57:31: error: 't' was not declared in this scope
             int d = dfs(e.to, t, min(f,e.cap));
                               ^
0_0_33373063_19279.cpp:57:45: error: 'min' was not declared in this scope
             int d = dfs(e.to, t, min(f,e.cap));
                                             ^
0_0_33373063_19279.cpp:57:45: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33373063_19279.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_33373063_19279.cpp: At global scope:
0_0_33373063_19279.cpp:68:14: error: 'ints' was not declared in this scope
 int max_flow(ints, int t) {
              ^
0_0_33373063_19279.cpp:68:20: error: expected primary-expression before 'int'
 int max_flow(ints, int t) {
                    ^
0_0_33373063_19279.cpp:68:25: error: expression list treated as compound expression in initializer [-fpermissive]
 int max_flow(ints, int t) {
                         ^
0_0_33373063_19279.cpp:68:27: error: expected ',' or ';' before '{' token
 int max_flow(ints, int t) {
                           ^


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-06-29 08:26:50, Gzip enabled