QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#20630#2425. The Collection GameL_G_J#Compile Error//C++201.4kb2022-02-16 21:23:132022-05-18 04:09:46

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);
      |                ^~~~~~