Using a large bitset is giving me compilation error in a codechef problem, but vector of bools works fine

Правка en1, от anotherTry, 2021-09-27 12:21:59

I have been practicing bitsets and I have read that using a bitset is better than using a vector of bools. I attempted to solve the following problem:

https://www.codechef.com/problems/CHEFQUE

The vector of bools gave me AC but the bitset gave me a compilation error.

The code that passes:

Code that passes

The code that gives an error:

Code that gives error

Any help would be appreciated.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский anotherTry 2021-09-27 12:21:59 2742 Initial revision (published)