#include <iostream> #include <cstdint> int main(){ static const std::uint64_t Len = 0x7ffffffff; std::uint64_t StackOverFlow[Len]; StackOverFlow[0] = 0xdeadbeef; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:5:33: error: size of array ‘StackOverFlow’ is too large
std::uint64_t StackOverFlow[Len];
^
prog.cpp:6:2: error: ‘StackOverFlow’ was not declared in this scope
StackOverFlow[0] = 0xdeadbeef;
^
Standard output is empty