fork(1) download
  1. #include <iostream>
  2.  
  3. struct foo {
  4. unsigned value;
  5. };
  6.  
  7. foo compute_xor(foo a, foo b) {
  8. return a ^ b;
  9. }
  10.  
  11. int main() {
  12. // your code goes here
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘foo compute_xor(foo, foo)’:
prog.cpp:8:11: error: no match for ‘operator^’ (operand types are ‘foo’ and ‘foo’)
  return a ^ b;
         ~~^~~
stdout
Standard output is empty