fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #include <cstdlib>
  5. #include <cmath>
  6.  
  7. int main(void)
  8. {
  9. double x = -2.0;
  10. cout << (3/abs(x)) << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
1.5