fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int j = 3;
  7. cout << pow(64, (double)1.0/(double)j) << endl; // Outputs 4
  8. int root = pow(64, (double)1.0/(double)j);
  9. cout << root << endl; // Outputs 3
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
4
3