QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#357899#4317. 拯救还是毁灭Alston_WanCompile Error//C++141.6kb2024-03-19 14:44:252024-03-19 14:44:26

Details

answer.code: In function ‘void Work()’:
answer.code:53:30: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   53 |                         if (!cnt[j]) q.push (j);
      |                              ^~~
      |                              int
answer.code:70:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   70 |         for (auto [p0,p1]: ans)
      |                   ^