#include <array> int main(){ std::array<int, -1> arr; return arr[0];}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:5:25: error: size of variable 'arr' is too large std::array<int, -1> arr; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!