QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#572681#6401. Classic: N Real DNA PotsMaMengQiCompile Error//C++203.5kb2024-09-18 15:55:142024-09-18 15:55:14

Details

answer.code:35:39: warning: bad option ‘-fwhole-program’ to pragma ‘optimize’ [-Wpragmas]
   35 | #pragma GCC optimize("-fwhole-program")
      |                                       ^
answer.code:42:41: warning: bad option ‘-fstrict-overflow’ to pragma ‘optimize’ [-Wpragmas]
   42 | #pragma GCC optimize("-fstrict-overflow")
      |                                         ^
answer.code:44:41: warning: bad option ‘-fcse-skip-blocks’ to pragma ‘optimize’ [-Wpragmas]
   44 | #pragma GCC optimize("-fcse-skip-blocks")
      |                                         ^
answer.code:58:51: warning: bad option ‘-funsafe-loop-optimizations’ to pragma ‘optimize’ [-Wpragmas]
   58 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |                                                   ^
answer.code:70:17: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   70 | inline int read(){
      |                 ^
answer.code:70:17: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:70:17: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:70:17: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code:79:18: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   79 | bool chk(double s){
      |                  ^
answer.code:79:18: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:79:18: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:79:18: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
answer.code:93:13: warning: bad option ‘-fwhole-program’ to attribute ‘optimize’ [-Wattributes]
   93 | signed main(){
      |             ^
answer.code:93:13: warning: bad option ‘-fstrict-overflow’ to attribute ‘optimize’ [-Wattributes]
answer.code:93:13: warning: bad option ‘-fcse-skip-blocks’ to attribute ‘optimize’ [-Wattributes]
answer.code:93:13: warning: bad option ‘-funsafe-loop-optimizations’ to attribute ‘optimize’ [-Wattributes]
In file included from /usr/include/c++/13/string:43,
                 from /usr/include/c++/13/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
                 from answer.code:62:
/usr/include/c++/13/bits/allocator.h: In destructor ‘constexpr std::_Vector_base<double, std::allocator<double> >::_Vector_impl::~_Vector_impl()’:
/usr/include/c++/13/bits/allocator.h:184:7: error: inlining failed in call to ‘always_inline’ ‘constexpr std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = double]’: target specific option mismatch
  184 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/13/vector:66,
                 from /usr/include/c++/13/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53:
/usr/include/c++/13/bits/stl_vector.h:133:14: note: called from here
  133 |       struct _Vector_impl
      |              ^~~~~~~~~~~~