fork download
  1. #include<iostream>
  2. #include<math.h>
  3. using namespace std;
  4. int main()
  5. {
  6. cout<<"(-1)^(2/3) = "<< pow(-1,2/3);
  7. return 0 ;
  8. }
  9.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
(-1)^(2/3) =  1