Follow those three steps:
- Download and install MinGW.
- Set MinGW on the Environment path.
- { "cmd": ["g++.exe","-std=c++14", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exeoutputf.in"], "selector":"source.cpp", "shell":true, "working_dir":"$file_path" } Copy this and go to the sublime text
- Go tools => build System => new build system =>paste this code and save =>
- write your code then save => demo.CPP => inputf.in =>outputf.in
Thanks // merja_shourov