In my first homework about class, I have to create a program similar to a social network that finds the max amount of friends among those existing IDs.
A pair of friends establish only when each other sends request to the counterpart.
the problem is that although some of the testing files get passed, almost of them returns RTE, I'm not sure but those arrays seems reasonable for me.
May anyone help me to find the problematic spots?
thnks for mutexe's reply, but my compiler tells nothing to me concerning the reason of runtime error.
thanks for Computergeek01's reply, the input file should be right since it's written by my teacher, and that's the only way I can assume.
What type of run-time error are you getting? They are not all the same, and it would help narrow the issue down if it came with an error code and\or possibly a faulting module as well. If you want to program then you should lose the idea that errors are meaningless gibberish, they often tell you exactly what is wrong. I ran your code and didn't see any immediate issues, could the problem be with the input file you mention?