QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#475532#9120. Huge Segment Treeucup-team253#Compile Error//C++236.7kb2024-07-13 15:15:182024-07-13 15:15:23

Details

answer.code: In function ‘vll logarithm(const vll&)’:
answer.code:249:23: error: reference to ‘integral’ is ambiguous
  249 |         return modulo(integral(deri*inve), a.size());
      |                       ^~~~~~~~
In file included from /usr/include/c++/13/compare:37,
                 from /usr/include/c++/13/bits/stl_pair.h:65,
                 from /usr/include/c++/13/bits/stl_algobase.h:64,
                 from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
                 from answer.code:8:
/usr/include/c++/13/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:224:5: note:                 ‘vll integral(const vll&)’
  224 | vll integral(const vll &a)
      |     ^~~~~~~~
answer.code: In function ‘int main()’:
answer.code:331:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  331 |         scanf("%d", &k);
      |         ~~~~~^~~~~~~~~~