#include <iostream>#include <cmath> int main() { std::cout << std::sqrt(-1.0) << '\n'; return 0;}
Standard input is empty
-nan
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!