xxxxxxxxxx
Tools -> Build System -> New Build System
{
"cmd" : ["g++ $file_name -o $file_base_name && timeout 4s ./$file_base_name<input.in>output.in"],
"selector" : "source.c",
"shell": true,
"working_dir" : "$file_path"
}
- Save as "C++ 17.sublime-build"
- Select Tools -> Build System -> C++ 17
- Create files "<file_name>.cpp", "input.in" and "output.in"
- Enter input in "input.in" and save
- Cltr+Shift+B on <file_name>.cpp pane to run the file
- Output shown in "output.in"