So what's your question?
I could tell you to not use such large arrays, and to allocate it dynamically.
I could tell you to read the valgrind message, and use the --max-stackframe like it tells you to.
So what's your question?
I could tell you to not use such large arrays, and to allocate it dynamically.
I could tell you to read the valgrind message, and use the --max-stackframe like it tells you to.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.