0_0_32155756_30212.cpp: In instantiation of 'mcmf<W, C>::mcmf(int, std::vector<std::vector<int> >&, std::vector<int>&, std::vector<C>&, std::vector<C>&) [with W = int; C = long long int]':
0_0_32155756_30212.cpp:177:50: required from here
0_0_32155756_30212.cpp:124:33: error: 'memset' was not declared in this scope
memset(&inf, 0x4f, sizeof(C));
^
0_0_32155756_30212.cpp:125:34: error: 'memset' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
memset(&finf, 0x4f, sizeof(W));
^
0_0_32155756_30212.cpp:124:33: note: 'memset' declared here, later in the translation unit
memset(&inf, 0x4f, sizeof(C));
^
0_0_32155756_30212.cpp: In instantiation of 'bool mcmf<W, C>::bellman() [with W = int; C = long long int]':
0_0_32155756_30212.cpp:148:15: required from 'std::pair<C, W> mcmf<W, C>::get_mcmf(const int&, const int&) [with W = int; C = long long int]'
0_0_32155756_30212.cpp:191:58: required from here
0_0_32155756_30212.cpp:83:29: error: 'fabs' was not declared in this scope
return fabs(dis[T] - inf) > eps;
^
0_0_32155756_30212.cpp: In instantiation of 'W mcmf<W, C>::dfs(int, W) [with W = int; C = long long int]':
0_0_32155756_30212.cpp:150:25: required from 'std::pair<C, W> mcmf<W, C>::get_mcmf(const int&, const int&) [with W = int; C = long long int]'
0_0_32155756_30212.cpp:191:58: required from here
0_0_32155756_30212.cpp:93:62: error: 'fabs' was not declared in this scope
fabs(dis[cur] + h[cur] + e.cost - h[e.to] - dis[e.to]) <= eps &&
^
0_0_32155756_30212.cpp: In instantiation of 'bool mcmf<W, C>::dijkstra() [with W = int; C = long long int]':
0_0_32155756_30212.cpp:155:21: required from 'std::pair<C, W> mcmf<W, C>::get_mcmf(const int&, const int&) [with W = int; C = long long int]'
0_0_32155756_30212.cpp:191:58: required from here
0_0_32155756_30212.cpp:54:29: error: 'fabs' was not declared in this scope
return fabs(dis[T] - inf) > eps;
^
|