fork(3) download
  1. #include <cmath>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. int x = 232900, y = 519944, z = 535076;
  7. cout << boolalpha << (x*x*x + y*y*y == z*z*z) << endl;
  8. cout << boolalpha << (powf(x, 3) + powf(y, 3) == powf(z, 3)) << endl;
  9. }
  10.  
Success #stdin #stdout 0s 4536KB
stdin
Standard input is empty
stdout
true
true