fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main()
  5. {
  6.  
  7. std::cout<<log(-3)<<std::endl;
  8. std::cout<<bool(log(-3))<<std::endl;
  9.  
  10. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
nan
1