fork download
  1. #include <iostream>
  2. #include <bitset>
  3. using namespace std;
  4.  
  5. int main() {
  6. bitset<1> E(0);
  7. bitset<16> AC(0x3293);
  8. E[0] = AC[15];
  9. AC = AC << 1;
  10. AC[0] = E[0];
  11. cout << hex << AC.to_ulong();
  12. return 0;
  13. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
6526