QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#600485#9345. Artful Paintingsucup-team4583#Compile Error//C++142.1kb2024-09-29 16:51:582024-09-29 16:51:58

Details

answer.code: In lambda function:
answer.code:32:27: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   32 |                 for (auto [l, r, k] : p1) e[r].emplace_back(l - 1, -k);
      |                           ^
answer.code:33:27: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   33 |                 for (auto [l, r, k] : p2) e[l - 1].emplace_back(r, lim - k);
      |                           ^
answer.code:36:66: error: ‘k’ was not declared in this scope
   36 |                 e[0].emplace_back(n, lim), e[n].emplace_back(0, -k);
      |                                                                  ^
answer.code:45:35: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   45 |                         for (auto [v, w] : e[u]) {
      |                                   ^