QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#50482 | #4554. 联通子树 | flower | Compile Error | / | / | C++ | 3.0kb | 2022-09-26 15:27:20 | 2022-09-26 15:27:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void dfs1(int, int)’: answer.code:24:22: error: ‘G’ was not declared in this scope 24 | if(u != par) G[u].erase(find(G[u].begin(), G[u].end(), par)); | ^ answer.code:25:14: error: ‘G’ was not declared in this scope 25 | sort(G[u].begin(), G[u].end()); | ^ answer.code:26:9: error: ‘dep’ was not declared in this scope 26 | dep[u] = dep[fa[u] = par] + 1, sz[u] = 1; | ^~~ answer.code: In function ‘void dfs2(int, int)’: answer.code:46:22: error: ‘G’ was not declared in this scope 46 | for(auto v : G[u]) if(v != son[u]) dfs2(v, v); | ^ answer.code: In function ‘int chain_f(int, int)’: answer.code:49:12: error: ‘dep’ was not declared in this scope 49 | if(dep[u] - dep[v] <= 1) return 1; | ^~~ answer.code: In lambda function: answer.code:51:33: error: no match for ‘operator/’ (operand types are ‘Mint’ and ‘std::vector<Mint>’) 51 | return (preg[r] / pref[l - 1]).get(); | ~~~~~~~ ^ ~~~~~~~~~~~ | | | | Mint std::vector<Mint> In file included from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/complex:422:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const std::complex<_Tp>&)’ 422 | operator/(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/11/complex:422:5: note: template argument deduction/substitution failed: answer.code:51:45: note: ‘Mint’ is not derived from ‘const std::complex<_Tp>’ 51 | return (preg[r] / pref[l - 1]).get(); | ^ In file included from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/complex:431:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const _Tp&)’ 431 | operator/(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/11/complex:431:5: note: template argument deduction/substitution failed: answer.code:51:45: note: ‘Mint’ is not derived from ‘const std::complex<_Tp>’ 51 | return (preg[r] / pref[l - 1]).get(); | ^ In file included from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/complex:440:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator/(const _Tp&, const std::complex<_Tp>&)’ 440 | operator/(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/11/complex:440:5: note: template argument deduction/substitution failed: answer.code:51:45: note: ‘std::vector<Mint>’ is not derived from ‘const std::complex<_Tp>’ 51 | return (preg[r] / pref[l - 1]).get(); | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from answer.code:1: /usr/include/c++/11/bits/valarray_after.h:408:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)’ 408 | _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/valarray_after.h:408:5: note: template argument deduction/substitution failed: answer.code:51:45: note: ‘Mint’ is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ 51 | return (preg[r] / pref[l - 1]).get(); | ^ In file included from /usr/include/c++/11/valarray:603, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:95, from answer.code:1: /usr/include/c++/11/bits/valarray_after.h:408:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’ 408 | _DEFINE_EXPR_BINARY_OPERATOR(/, struct std::__divides) | ^~~~~~~~~~~~~~~~~...