when I enter the first input I receive this error
Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error:#0 0xffffffff.