QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#20630 | #2425. The Collection Game | L_G_J# | Compile Error | / | / | C++20 | 1.4kb | 2022-02-16 21:23:13 | 2022-05-18 04:09:46 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve(int, int)’: answer.code:40:76: error: ‘schedule’ was not declared in this scope 40 | for(int l=1;l<=n;l+=(j<<1)) fr(r,l,l+j-1) if(a[r]&&a[r+j]) schedule(a[r],a[r+j]); | ^~~~~~~~ answer.code:41:28: error: no matching function for call to ‘visit()’ 41 | query=visit(); | ~~~~~^~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:2: /usr/include/c++/11/variant:1740:5: note: candidate: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’ 1740 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ /usr/include/c++/11/variant:1740:5: note: template argument deduction/substitution failed: answer.code:41:28: note: candidate expects at least 1 argument, 0 provided 41 | query=visit(); | ~~~~~^~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:133, from answer.code:2: /usr/include/c++/11/variant:1777:5: note: candidate: ‘template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)’ 1777 | visit(_Visitor&& __visitor, _Variants&&... __variants) | ^~~~~ /usr/include/c++/11/variant:1777:5: note: template argument deduction/substitution failed: answer.code:41:28: note: candidate expects at least 1 argument, 0 provided 41 | query=visit(); | ~~~~~^~ answer.code:57:16: error: ‘answer’ was not declared in this scope 57 | return answer(ans); | ^~~~~~