QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#163882#7110. Kuririn MIRACLEucup-team1239Compile Error//C++233.0kb2023-09-04 16:06:312023-09-04 16:06:31

詳細信息

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