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_33979763_31783.cpp: In member function 'int mcf_graph<Cap, Cost>::add_edge(int, int, Cap, Cost)':
0_0_33979763_31783.cpp:13:38: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(0 <= from && from < _n);
                                      ^
0_0_33979763_31783.cpp:13:38: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_33979763_31783.cpp:14:34: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(0 <= to && to < _n);
                                  ^
0_0_33979763_31783.cpp: In member function 'mcf_graph<Cap, Cost>::edge mcf_graph<Cap, Cost>::get_edge(int)':
0_0_33979763_31783.cpp:33:31: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(0 <= i && i < m);
                               ^
0_0_33979763_31783.cpp: In member function 'std::vector<std::pair<_T1, _T2> > mcf_graph<Cap, Cost>::slope(int, int, Cap)':
0_0_33979763_31783.cpp:59:32: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(0 <= s && s < _n);
                                ^
0_0_33979763_31783.cpp:60:32: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(0 <= t && t < _n);
                                ^
0_0_33979763_31783.cpp:61:22: error: there are no arguments to 'assert' that depend on a template parameter, so a declaration of 'assert' must be available [-fpermissive]
         assert(s != t);
                      ^
0_0_33979763_31783.cpp: In function 'int main()':
0_0_33979763_31783.cpp:190:64: error: converting to 'std::vector<std::tuple<int, int, int, long long int> >::value_type {aka std::tuple<int, int, int, long long int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int, int, long long int}; <template-parameter-2-2> = void; _Elements = {int, int, int, long long int}]'
    for (auto &t:s) edge.push_back({i+2,n+ID(t)+2,1,a*t*t+b*t+c});
                                                                ^
0_0_33979763_31783.cpp:191:31: error: converting to 'std::vector<std::tuple<int, int, int, long long int> >::value_type {aka std::tuple<int, int, int, long long int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {const int&, int, int, int}; <template-parameter-2-2> = void; _Elements = {int, int, int, long long int}]'
    edge.push_back({S2,i+2,1,0});
                               ^
0_0_33979763_31783.cpp:193:58: error: converting to 'std::vector<std::tuple<int, int, int, long long int> >::value_type {aka std::tuple<int, int, int, long long int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, const int&, int, int}; <template-parameter-2-2> = void; _Elements = {int, int, int, long long int}]'
   for (int i=1; i<=tot; ++i) edge.push_back({n+i+2,T,1,0});
                                                          ^
0_0_33979763_31783.cpp: In instantiation of 'int mcf_graph<Cap, Cost>::add_edge(int, int, Cap, Cost) [with Cap = int; Cost = long long int]':
0_0_33979763_31783.cpp:195:74:   required from here
0_0_33979763_31783.cpp:13:38: error: 'assert' was not declared in this scope
         assert(0 <= from && from < _n);
                                      ^
0_0_33979763_31783.cpp:14:34: error: 'assert' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
         assert(0 <= to && to < _n);
                                  ^
0_0_33979763_31783.cpp:13:38: note: 'assert' declared here, later in the translation unit
         assert(0 <= from && from < _n);
                                      ^
0_0_33979763_31783.cpp: In instantiation of 'std::vector<std::pair<_T1, _T2> > mcf_graph<Cap, Cost>::slope(int, int, Cap) [with Cap = int; Cost = long long int]':
0_0_33979763_31783.cpp:53:38:   required from 'std::pair<_T1, _T2> mcf_graph<Cap, Cost>::flow(int, int, Cap) [with Cap = int; Cost = long long int]'
0_0_33979763_31783.cpp:50:58:   required from 'std::pair<_T1, _T2> mcf_graph<Cap, Cost>::flow(int, int) [with Cap = int; Cost = long long int]'
0_0_33979763_31783.cpp:199:24:   required from here
0_0_33979763_31783.cpp:59:32: error: 'assert' was not declared in this scope
         assert(0 <= s && s < _n);
                                ^
0_0_33979763_31783.cpp:60:32: error: 'assert' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
         assert(0 <= t && t < _n);
                                ^
0_0_33979763_31783.cpp:59:32: note: 'assert' declared here, later in the translation unit
         assert(0 <= s && s < _n);
                                ^
0_0_33979763_31783.cpp:61:22: error: 'assert' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
         assert(s != t);
                      ^
0_0_33979763_31783.cpp:59:32: note: 'assert' declared here, later in the translation unit
         assert(0 <= s && s < _n);
                                ^
0_0_33979763_31783.cpp:124:27: error: invalid use of 'auto'
             if (!dual_ref()) break;
                           ^


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-26 17:29:43, Gzip enabled