QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#734266#5250. Combination Locksucup-team3932Compile Error//C++202.7kb2024-11-11 08:15:372024-11-11 08:15:38

Details

answer.code: In function ‘void solve()’:
answer.code:78:21: error: ‘uint32_t’ does not name a type
   78 |     if (static_cast<uint32_t>(i) % 2 == 1) {
      |                     ^~~~~~~~
answer.code:7:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    6 | #include <algorithm>
  +++ |+#include <cstdint>
    7 | #include <array>
answer.code:94:50: error: ‘uint32_t’ does not name a type
   94 |       if (can_use[state] && popcount(static_cast<uint32_t>(state)) % 2 == 1) {
      |                                                  ^~~~~~~~
answer.code:94:50: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?