QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#854561#9735. Japanese Bandsucup-team3607#Compile Error//C++144.5kb2025-01-12 02:38:002025-01-12 02:38:06

Details

answer.code: In function ‘void solve_test(std::istream&, std::ostream&)’:
answer.code:87:21: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   87 |         for (auto &&[a, b] : es)
      |                     ^
answer.code:95:38: error: ‘popcount’ was not declared in this scope
   95 |             sum_ways[mask] = ways[1][popcount(uint32_t(mask))];
      |                                      ^~~~~~~~
answer.code:109:21: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  109 |         for (auto &&[a, b] : es)
      |                     ^
answer.code:136:38: error: ‘popcount’ was not declared in this scope
  136 |             const int coef = ways[0][popcount(uint32_t(mask))];
      |                                      ^~~~~~~~