#include <iostream> #include <bitset> int main() { std::bitset<0> b = 511; //std::cout << b << std::endl; b[1] = true; /* std::cout << b[100] << std::endl; */ return 0; }
Standard input is empty
Standard output is empty
terminate called after throwing an instance of 'std::out_of_range' what(): _Base_bitset::_M_getword