when I am trying to debug the pset3 binary search, I want to use generate to have large numbers to test because my program works fine when I manually enter the values, but only for large values (i.e. 10000) it sometimes does not find the value when it is indeed there
however, I have searched how to use a standard input when running the program in gdb but it just does not work
so first I use this approach pset3 find - gdb with generate as pipe
./generate 10000 0 > testNumbers10000.txt to generate the input file
than I use run args 65516 < testNumbers10000.txt (also tried just run 65516 < testNumbers10000.txt but gave the same error) which just provides me with gibberish information on what went wrong
how can I solve this? My computer still is a laptop 32-bit so is this the problem?: https://www.cygwin.com/ml/cygwin/1999-04/msg00308.html
but I thought that in the virtual environment this should not matter? And I do not understand how I can implement the solution proposed there so I really need some help