fork download
  1. #include <iostream>
  2. #include <valarray>
  3. #include <cstdint>
  4. using namespace std;
  5.  
  6. int main() {
  7. std::valarray<uint64_t> a((const uint64_t[1]){0x0f0f},1);
  8. std::valarray<uint64_t> b((const uint64_t[1]){0x0101},1);
  9. std::valarray<uint64_t> c = a&b;
  10. cout << c[0];
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
257