QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#612934#7683. Hard Brackets ProblemGuanYunchangCompile Error//C++981.2kb2024-10-05 13:19:062024-10-05 13:19:53

Details

In file included from /usr/include/c++/13/unordered_map:37,
                 from answer.code:10:
/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 ‘void solve()’:
answer.code:31:19: error: ‘c’ does not name a type
   31 |         for (auto c : s) {
      |                   ^
answer.code:35:10: error: expected ‘;’ before ‘if’
   35 |         }
      |          ^
      |          ;
   36 | 
   37 |         if (l > r) {
      |         ~~
answer.code:37:9: error: expected primary-expression before ‘if’
   37 |         if (l > r) {
      |         ^~
answer.code:35:10: error: expected ‘;’ before ‘if’
   35 |         }
      |          ^
      |          ;
   36 | 
   37 |         if (l > r) {
      |         ~~
answer.code:37:9: error: expected primary-expression before ‘if’
   37 |         if (l > r) {
      |         ^~
answer.code:35:10: error: expected ‘)’ before ‘if’
   35 |         }
      |          ^
      |          )
   36 | 
   37 |         if (l > r) {
      |         ~~
answer.code:31:13: note: to match this ‘(’
   31 |         for (auto c : s) {
      |             ^