I am trying to solve the linear equation A.x=C. I created the matrix as shown below to find the x. When I increase the dimension (n) to for example n=100000, I get an error as:
"Unhandled exception at at 0x778EDDC2 in Project7.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x00A4F65C."