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_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;
                             ^


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-07-03 14:55:55, Gzip enabled