#include <iostream> int x;x = 42; int main(){ std::cout << x << '\n';}
Standard input is empty
prog.cpp:4:1: error: ‘x’ does not name a type x = 42; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!