#include <iostream> #include <limits> int main() { char* a1 = new char[std::numeric_limits<std::size_t>::max()]; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:5:61: error: size of array is too large
char* a1 = new char[std::numeric_limits<std::size_t>::max()];
^
Standard output is empty