VS 2013 to 2015

I finished my code a while ago, but my computer had to be fixed and they reset rhe OS. Although, I was able to save all the data before it was fixed. I had the VS 2013, but now I have the 2015 version. The code was working perfectly, but now it skips instructions and I have no idea what's the problem. I could paste it here, but it's 1000+ lines.
Paste it to https://gist.github.com/ and give us the link. Also indicate which lines you believe it is skipping.
https://gist.github.com/anonymous/b301cc9e9e52d91185ec

I think it's skipping some of the first lines of the cases
You forgot to set the language as C++, this is a fixed link:
https://gist.github.com/anonymous/5d8cdb4a30b4bd936440

Could you give more details about what you think it is skipping and why?
What do you mean I forgot to set the language?

For example, in case 4, the for cycle in line 616 should begin with i=0, but it starts with i=1. I have no idea why it is doing this.
How do you know it starts at 1 instead of 0? In your output statement on line 618, you add 1 to i.
Because it shows the first output, but skips the instruction in line 620 and it only works when i=1, ergo output=2.
miguel96 wrote:
skips the instruction in line 620
It is not skipping that instruction; you have leftover input in the input stream and it is reading that. Please read:
http://www.LB-Stuff.com/user-input
Ok thx. I'll ready it and then I'll say tomorrow
Ok. I understand that, but it was working perfectly with the 2013 version. Why is it not working now?
The problem is not specific to any version of any compiler. Your program has multiple ways to reach line 620, some of which may or may not leave unread input in the buffer. It is likely that while using VS2013 you never triggered the issue, or if you did you didn't notice it, or possibly forgot. Either way, the issue has always been there and changing your compiler version did not make it magically appear.
I'll make a few changes but it might take a while. Thanks for the help.
Topic archived. No new replies allowed.