0_0_29816869_17726.cpp:4:1: error: expected ',' or ';' before 'using'
using namespace std;
^
0_0_29816869_17726.cpp: In function 'bool dfs(int)':
0_0_29816869_17726.cpp:30:35: error: 'min' was not declared in this scope
slack[boy] = min(slack[boy],gap); //slack 可以理解为该男生要得到女生的倾心 还需多少期望值并取最小值
^
0_0_29816869_17726.cpp:30:35: 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_29816869_17726.cpp:1:
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_29816869_17726.cpp: In function 'int km()':
0_0_29816869_17726.cpp:42:52: error: 'max' was not declared in this scope
ex_girl[i] = max(ex_girl[i], love[i][j]);
^
0_0_29816869_17726.cpp:42:52: 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_29816869_17726.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_29816869_17726.cpp:47:25: error: 'fill' was not declared in this scope
fill(slack,slack+n,INF); //取最小值,初始化为无穷大
^
0_0_29816869_17726.cpp:47:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:67,
from 0_0_29816869_17726.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/deque.tcc:926:5: note: 'std::fill'
fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>& __first,
^
0_0_29816869_17726.cpp:59:9: error: 'usdb' was not declared in this scope
if(!usdb[j])
^
0_0_29816869_17726.cpp:60:22: error: 'min' was not declared in this scope
d=min(d,slack[j]);
^
0_0_29816869_17726.cpp:60:22: 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_29816869_17726.cpp:1:
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_29816869_17726.cpp: In function 'int main()':
0_0_29816869_17726.cpp:76:2: error: 'cin' was not declared in this scope
cin >> n;
^
0_0_29816869_17726.cpp:76:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_29816869_17726.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_29816869_17726.cpp:80:2: error: 'cout' was not declared in this scope
cout << km();
^
0_0_29816869_17726.cpp:80:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_29816869_17726.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
|