- Go to Tools > Build Systems > New Build System
- Copy the code from C++14.sublime-build and paste it there and save it by any name
- Go to Tools > Build Systems ans select your new build system
- Create 2 files named inputf.in and outputf.in in same directory in which u have ur code
- Write input in inputf.in, save and run the code in sublime and you will get output in outputf.in
- You can use COMMAND + shift + B to directly compile run.
- You can use 3 pane setup to view code, input file and output file at once (View > Group > New group).
brew install gcc
brew install coreutils