#include <iostream>#include <cmath> int main(){ double a = -std::nan("1"); std::cout << a << std::endl;}
Standard input is empty
-nan
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!