QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#163884#7110. Kuririn MIRACLEucup-team1239Compile Error//C++203.0kb2023-09-04 16:06:592023-09-04 16:06:59

Details

answer.code: In function ‘int32_t main()’:
answer.code:54:18: error: reference to ‘integral’ is ambiguous
   54 |         if( (4*r+integral*v)>=d ){
      |                  ^~~~~~~~
In file included from /usr/include/c++/11/compare:39,
                 from /usr/include/c++/11/bits/stl_pair.h:65,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/specfun.h:45,
                 from /usr/include/c++/11/cmath:1935,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:2:
/usr/include/c++/11/concepts:100:13: note: candidates are: ‘template<class _Tp> concept std::integral’
  100 |     concept integral = is_integral_v<_Tp>;
      |             ^~~~~~~~
answer.code:24:22: note:                 ‘long double integral’
   24 | long double r, v, d, integral = 7.86984883735770769002;
      |                      ^~~~~~~~