fork(2) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. struct k {
  5. int i;
  6. k(int a){i=a;}
  7. k operator ^(k b) {return k(pow(this->i, b.i));}
  8. };
  9.  
  10.  
  11. int main() {
  12. k a(2);
  13. k b(2);
  14. k c(3);
  15.  
  16. printf("%d\n", (a^b^c).i);
  17. return 0;
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
64