QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#654807#9313. Make MaxGuanYunchangCompile Error//C++982.1kb2024-10-18 22:19:122024-10-18 22:19:14

Details

answer.code: In function ‘void source()’:
answer.code:22:25: error: ‘>>’ should be ‘> >’ within a nested template argument list
   22 |     vector<pair<int, int>> pos[n+1];
      |                         ^~
      |                         > >
answer.code:25:37: error: ‘>>’ should be ‘> >’ within a nested template argument list
   25 |     multiset<pair<int, pair<int, int>>> s;
      |                                     ^~
      |                                     > >
answer.code:28:26: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   28 |         pos[i].push_back({i, i});
      |                          ^
answer.code:28:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   28 |         pos[i].push_back({i, i});
      |         ~~~~~~~~~~~~~~~~^~~~~~~~
answer.code:29:18: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   29 |         s.insert({a[i], {i, i}});
      |                  ^
answer.code:29:17: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   29 |         s.insert({a[i], {i, i}});
      |         ~~~~~~~~^~~~~~~~~~~~~~~~
answer.code:29:17: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:34:14: error: ‘it’ does not name a type; did you mean ‘int’?
   34 |         auto it = s.begin();
      |              ^~
      |              int
answer.code:35:19: error: ‘it’ was not declared in this scope; did you mean ‘i’?
   35 |         int val = it->first;
      |                   ^~
      |                   i
answer.code:48:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   48 |             s.erase({val, {l, r}});
      |                     ^
answer.code:48:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   48 |             s.erase({val, {l, r}});
      |             ~~~~~~~^~~~~~~~~~~~~~~
answer.code:48:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:49:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   49 |             s.erase({mxL, {pos[l-1][0].first, pos[l-1][0].second}});
      |                     ^
answer.code:49:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   49 |             s.erase({mxL, {pos[l-1][0].first, pos[l-1][0].second}});
      |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:49:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:58:22: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   58 |             s.insert({val, {newL, newR}});
      |                      ^
answer.code:58:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   58 |             s.insert({val, {newL, newR}});
      |             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
answer.code:58:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:62:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   62 |             s.erase({val, {l, r}});
      |                     ^
answer.code:62:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   62 |             s.erase({val, {l, r}});
      |             ~~~~~~~^~~~~~~~~~~~~~~
answer.code:62:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:63:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   63 |             s.erase({mxR, {pos[r+1][0].first, pos[r+1][0].second}});
      |                     ^
answer.code:63:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   63 |             s.erase({mxR, {pos[r+1][0].first, pos[r+1][0].second}});
      |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:63:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
answer.code:72:22: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
   72 |             s.insert({val, {newL, newR}});
      |                      ^
answer.code:72:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11...