fork download
  1. #include <iostream>
  2.  
  3. struct foo {
  4. unsigned value;
  5. foo operator^(foo rhs) const {
  6. rhs.value ^= value;
  7. return rhs;
  8. }
  9. };
  10.  
  11. foo compute_xor(foo a, foo b) {
  12. return a ^ b;
  13. }
  14.  
  15. int main() {
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty