QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#598288 | #5213. 仙人掌 | 3un_larryfunc | Compile Error | / | / | C++20 | 1.3kb | 2024-09-28 21:11:20 | 2024-09-28 21:11:22 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘long long int dfs(long long int)’: answer.code:38:33: error: reference to ‘size’ is ambiguous 38 | size[x]-=2; | ^~~~ In file included from /usr/include/c++/13/string:53, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from answer.code:1: /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:264:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:8:54: note: ‘long long int size [500009]’ 8 | ll n,m,number,dfn[N],cnt,dp[N],fa[N],vis[N],first[N],size[N]; | ^~~~ answer.code:41:55: error: reference to ‘size’ is ambiguous 41 | else vis[y]=1,size[y]-=2; | ^~~~ /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:264:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:8:54: note: ‘long long int size [500009]’ 8 | ll n,m,number,dfn[N],cnt,dp[N],fa[N],vis[N],first[N],size[N]; | ^~~~ answer.code: In function ‘int main()’: answer.code:55:41: error: reference to ‘size’ is ambiguous 55 | first[i]=vis[i]=size[i]=dfn[i]=fa[i]=0; | ^~~~ /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:264:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:8:54: note: ‘long long int size [500009]’ 8 | ll n,m,number,dfn[N],cnt,dp[N],fa[N],vis[N],first[N],size[N]; | ^~~~ answer.code:61:25: error: reference to ‘size’ is ambiguous 61 | size[x]++,size[y]++; | ^~~~ /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:264:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:8:54: note: ‘long long int size [500009]’ 8 | ll n,m,number,dfn[N],cnt,dp[N],fa[N],vis[N],first[N],size[N]; | ^~~~ answer.code:61:35: error: reference to ‘size’ is ambiguous 61 | size[x]++,size[y]++; | ^~~~ /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/13/bits/range_access.h:264:5: note: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’ 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ answer.code:8:54: note: ‘long long int size [500009]’ 8 | ll n,m,number,dfn[N],cnt,dp[N],fa[N],vis[N],first[N],size[N]; | ^~~~ answer.code:65:54: error: reference to ‘size’ is ambiguous 65 | for (ll i=1;i<=n;i++) ans=(ll)ans*dp[size[i]]%mod; | ^~~~ /usr/include/c++/13/bits/range_access.h:274:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’ 274 | ...