QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#460952 | #6875. Chaos Begin | HuangHanSheng | Compile Error | / | / | C++20 | 7.6kb | 2024-07-02 14:12:13 | 2024-07-02 14:12:16 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void FileIO::setIn(std::string)’: answer.code:66:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 66 | void setIn(string s) { freopen(s.c_str(),"r",stdin); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘void FileIO::setOut(std::string)’: answer.code:67:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 67 | void setOut(string s) { freopen(s.c_str(),"w",stdout); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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:5: /usr/include/c++/13/bits/allocator.h: In destructor ‘constexpr std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()’: /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 = char]’: target specific option mismatch 184 | ~allocator() _GLIBCXX_NOTHROW { } | ^ In file included from /usr/include/c++/13/string:54: /usr/include/c++/13/bits/basic_string.h:181:14: note: called from here 181 | struct _Alloc_hider : allocator_type // TODO check __is_final | ^~~~~~~~~~~~