fork download
  1. #include <iostream>
  2.  
  3. #include<math.h>
  4. float f(float n){return pow(n,sizeof('-')-1?2:.5);}
  5.  
  6. int main() {
  7. std::cout << f(5) << ":" << sizeof('-');
  8. return 0;
  9. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
2.23607:1