Hi guys, i have program which implements the longest common subsequence algorithm. But from some reason, it is impossible to run. I am using Win7 and Dev-C++. I also tried Visual studio, where during debugging an error occured- Unhandled exception at 0x74e743f9 in Untitled1.exe: 0xC0000005: Access violation reading location 0x00000000. I am pretty sure that source code is ok, I dont know if have problems in some variables or what. BTW, when I tried to run Hello world program, it worked fine... Thanks a lot
When you call the excecutable, you have to do so from the console (not just clicking on the .exe) and you need to add at least 2 arguments for this program. If I do this by clicking on the exe I get the same error.
In this scenario, argv[1] and argv[2] do not exist! Your program is crashing at line 18 as it tries to find argv[1].