#include <iostream> #include <bitset> using namespace std; int main() { int a= 234; b = bitset<8>(a).to_string(); cout << b; return 0; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:7:2: error: 'b' was not declared in this scope b = bitset<8>(a).to_string(); ^
Standard output is empty