This language bar is your friend. Select your favorite languages!
Edit summary for version 35 :
New Cpp implementation by user [fantasy]

Version 34

Version 35

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Imports
#include <iostream>
Code
std::cerr << x << " is negative" << std::endl;