ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2109. Tourism on Mars

If you have Runtime error #9 (stack overflow) in Visual C++
Posted by Izaron 27 Jul 2017 23:09
Insert this magic line before the code

#pragma comment(linker, "/STACK:36777216")

And it works!
Re: If you have Runtime error #9 (stack overflow) in Visual C++
Posted by Mahilewets 28 Jul 2017 00:59
That is not magic
That line sets stack size to 16 MB
And you forgot the most important thing
The code works ONLY  with Microsoft Visual C++