hello,everyone,I am a Chinese college student coming from China.You can call me my ID or YAIMY.(If you want to know me more ,you can sent messages to me) I usually solve problems on some chinese online judge such like Hangzhou Dianzi University Online Judge. Recently I am solving some problems on when I meet a problem that trouble always happen when I use my Network flow model which I used to use to solve many Network flow roblems on one online judge of China.once I submitted my code,the problem status always show this "Runtime Error(ACCESS_VIOLATION)" which puzzles me much.Then I search the F.A.Q and find that Runtime Error(ACCESS_VIOLATION) means that "Your program tried to read from or write to a address for which it does not have the appropriate access."(The linked website of F.A.Q http://acm.hdu.edu.cn/faq.php) for example , when I am doing the 3416th problem I meet this troule (Link: http://acm.hdu.edu.cn/status.php?first=&pid=&user=youareinmyheart〈=0&status=0). I make the array bigger but it still didn't work,so I hope that you can help me solve this problem,Thank you sincerely. below is the link of C++ code I wrote but not accepted: http://www.cppblog.com/YouAreInMyHeart/archive/2012/10/07/192950.html because you may not see the code below clearly,you can link the website up:) ------------------------------------分割线君----------------------------------------------- as the code is difficult to watch , so I delete them and remain the link of the code:) ------------------------------------分割线君----------------------------------------------- below is the link of the problem: http://acm.hdu.edu.cn/showproblem.php?pid=3416 I hope there will be someone who can help me,I wonder if my Netflow model is wrong,you can write comments or sent messages to me,thank you to watch my article sincerely,I hope that we can be friends.









head[maxn]; -> head[maxm];I think you should erase code from the text of your post, the link to code is more useful.
you use stack for dijkstra insted of queue i think there is overflow. try o add lines "while (top > NV + 1) ;;;" after "while(top)" and you will get TL, it proves i am right.
I use the queue but it still TLE,()thank you for asking my question.can I ask you what you just said " try o add lines "while (top > NV + 1) ;;;" after "while(top)" "mean?
still TLE? there was Runtime Error. do you got new verdict, and now it is Time Limit Exceeded?
Thank you :) I hope you can enjoy today's Codeforces #143 :)
now you should try real queue
Yes,I do this so,but it still don't work,maybe there are something special that I don't know.I have refresh a new model(though it seems no different with mine:),but it works.o(╯□╰)o).Thank you sincerely for asking my questions so pationful.I hope that we can be good friends:)
what? have you got Ac or not? If not, give me your code and the verdict (WA, TL, ...).
ok.I will erase and remain the link:)