foo.cc: In function 'bool is_same(int, int)':
foo.cc:12:30: error: reference to 'is_same' is ambiguous
return ew[a] == ew[b] && is_same(gov[a][0], gov[b][1]) && is_same(gov[a][1], gov[b][0]);
^~~~~~~
foo.cc:5:6: note: candidates are: bool is_same(int, int)
bool is_same(int a, int b){
^~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from foo.cc:1:
/usr/include/c++/7/type_traits:994:12: note: template<class, class> struct std::is_same
struct is_same;
^~~~~~~
foo.cc:12:63: error: reference to 'is_same' is ambiguous
return ew[a] == ew[b] && is_same(gov[a][0], gov[b][1]) && is_same(gov[a][1], gov[b][0]);
^~~~~~~
foo.cc:5:6: note: candidates are: bool is_same(int, int)
bool is_same(int a, int b){
^~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from foo.cc:1:
/usr/include/c++/7/type_traits:994:12: note: template<class, class> struct std::is_same
struct is_same;
^~~~~~~
foo.cc: In function 'void dfs(int)':
foo.cc:23:20: error: reference to 'is_same' is ambiguous
ans = max(ans, is_same(gov[n][0], gov[n][1]) * sz[n]);
^~~~~~~
foo.cc:5:6: note: candidates are: bool is_same(int, int)
bool is_same(int a, int b){
^~~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from foo.cc:1:
/usr/include/c++/7/type_traits:994:12: note: template<class, class> struct std::is_same
struct is_same;
^~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务