QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#488187#8726. Magic ShowAdorableCompile Error//C++23862b2024-07-23 17:48:452024-07-23 17:48:46

详细

Bob.code: In function ‘long long int Bob(std::vector<std::pair<int, int> >)’:
Bob.code:8:18: error: ‘__gcd’ was not declared in this scope
    8 |         b *= y / __gcd(b, (__int128)y);
      |                  ^~~~~
Bob.code:8:18: note: suggested alternatives:
In file included from /usr/include/c++/13/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
                 from Bob.code:1:
/usr/include/c++/13/bits/stl_algo.h:1185:5: note:   ‘std::__gcd’
 1185 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:58:
/usr/include/c++/13/numeric:120:5: note:   ‘std::__detail::__gcd’
  120 |     __gcd(_Tp __m, _Tp __n)
      |     ^~~~~