QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#773592#5147. Stack SortMaMengQiCompile Error//C++98511b2024-11-23 09:30:472024-11-23 09:30:49

Details

In file included from /usr/include/c++/13/unordered_map:37,
                 from answer.code:14:
/usr/include/c++/13/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   32 | #error This file requires compiler and library support \
      |  ^~~~~
answer.code: In function ‘int main()’:
answer.code:20:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |         scanf("%d", &t);
      |         ~~~~~^~~~~~~~~~
answer.code:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |                 scanf("%d", &n);
      |                 ~~~~~^~~~~~~~~~
answer.code:27:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   27 |                         scanf("%d", &x);
      |                         ~~~~~^~~~~~~~~~