trying to run a c++ command line program and getting error i’ve never seen before and cannot fix

  abort, c++, command-line, error-handling

simple code with error

I have been working on a react native project which is what i believe is causing the problem but i have no idea. Now that i have a assignment for another class to make a c++ command line program i cannot get it to run and cannot find anything on what is going on. Any help is appreciated. Thanks.

Error is: "dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) Abort trap: 6"

Source: Windows Questions C++