Hello! Today I'm going to show you how to incwease stacc size in some various opewating systems ( ^◡^)
I'm sowwy if my engwish is bad (⁄ ⁄>⁄ω⁄<⁄ ⁄)⁄
u awe using Mac ⌘ ૮ ˶ᵔ ᵕ ᵔ˶ ა
I used mac for my internship for several months and I used to compile C++ using mac.
Mac iws a bit wetawded bcuzz its weawwy hawd to set up #include <bits/stdc++.h>
g++ -Wl,-stack_size,0x40000000 solution.cpp -o solution
will incwease the stacc size to 1GB, (the hexadecimal is in bytes) ~~~~bash g++ -Wl,-stack_size,0x80000000 solution.cpp -o solution ~~~~~ will incwease the stacc size to 2GB
u awe using Windows ૮₍ ˃ ⤙ ˂ ₎ა
g++ -Wl,--stack,1073741824 solution.cpp -o solution
will incwease the stacc size to 1GB, (the decimal is in bytes)
u awe using any winux wistwibution ฅ՞•ﻌ•՞ฅ
ulimit -s 1024576
will incwease the stacc size to 1GB, (the decimal is in kiwobytes)