Well if it works on cpp.sh you shouldn't be looking at the code, but the compiler.
Did you install code blocks with mingw included? If not immediately do so. You will waste more time trying to link it yourself.
After that all you have to do is create project > blank project, file > new > file > cpp source ( checkmark everything, type main.cpp then press the "...", then save) then put stuff in and press the gear to compile.
I did install with "mingw" and i also created a new project to run this code.
But still it force closes after accepting the integers.
You can run it yourself and see whats wrong.
If you move line 7 to line 3, do you experience the same issue? If you don't you're probably exceeding the amount of memory allocated for the stack. Those are ridiculously large arrays to store on the stack.
Well if it works on cpp.sh you shouldn't be looking at the code, but the compiler.
well... no... you should be looking at the code as well. certain compilers accept things that others dont.
You are still looking at the compiler... Plus cpp.sh uses gcc, and mingw is just a windows version of that. I used both of them and I know their limitations(there aren't many), but an example is that can't use to_string() in mingw last time I remember :(
if you are looking at the program you are not looking at the compiler.... and yes im aware cpp.sh uses gcc. but gcc != mingw. mingw was ported to windows, which means its own set of bugs and quirks.
>I know their limitations(there aren't many)
i dont know who told you that... there are many limitations to gcc, just as there are with any compiler