A segmentation fault (aka segfault) is a common condition that causes programs
to crash; they are often associated with a file named core.
Segfaults are caused by a program trying to read or write an illegal memory
location
Segfaults are caused by a program trying to read or write an illegal memory location
It's like the OS telling you that you tried to access a piece of memory
that is not yours.
A segmentation fault
(also known as a segfault) is a typical cause of programme crashes,
and it's often linked to a file called core. Segfaults occur when a programme attempts
to read or write to an invalid memory address.
if you are using vectors make sure to give them a propper size
during their definition