Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

Блог пользователя YouAreInMyHeart

Автор YouAreInMyHeart, 14 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

»
14 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

head[maxn]; -> head[maxm];
I think you should erase code from the text of your post, the link to code is more useful.