QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#338963#7605. Yet Another Mex ProblemcnyzCompile Error//C++145.3kb2024-02-26 15:39:082024-02-26 15:39:09

Details

answer.code: In member function ‘void ODT::cover(int, int, int)’:
answer.code:123:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  123 |                 auto [res,id]=T1.qry(l,r,w);
      |                      ^
answer.code: In function ‘void solve()’:
answer.code:142:20: error: ‘ml’ was not declared in this scope; did you mean ‘ll’?
  142 |         FOR(i,1,n) ml[i]=n+1;
      |                    ^~
      |                    ll
answer.code:144:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  144 |                 for(auto [l,r]:ivl[i-1]) {
      |                          ^
answer.code:152:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  152 |                 for(auto [l,r]:ivl[i]) if(pr!=r) tp.pb(l,r),pr=r;
      |                          ^
answer.code:157:29: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  157 |         FOR(i,0,n) for(auto [l,r]:ivl[i]) {
      |                             ^
answer.code:167:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  167 |                 for(auto [l,r,w]:op[i]) odt.cover(l,r,w);
      |                          ^