I get a weird exit code in clion:
exit code -1073741571 (0xC00000FD)
This is my code:
int main()
{
std::cin.
The error number 0xC00000FD stands for "stack overflow" (I suppose your platform is Windows). Under Windows local variables are allocated on the stack (as on most other platforms too) and int arr[30007][5] is pretty big (30007 * 5 * 4 = 600140 bytes) and stacks are usually rather small (typically around 1 Mb, again platform dependant)
You have many options:
std::vector instead of raw arrays (preferred)static int arr[30007][5];), then it won't reside on the stack anymore