I used this build file in windows 10 64bit
{
“cmd”: [“g++”, “-std=c++11”, “${file}”, “-o”, “${file_path}/a.out”],
“file_regex”: “^(…[^:]):([0-9]+):?([0-9]+)?:? (.)$”,
“working_dir”: “${file_path}”,
“selector”: “source.c, source.cpp, source.c++”,
"variants":
[
{
"name": "Run",
"cmd": [ "${packages}/Competitive Programming/run.sh", "c++11", "${file_path}", "a.out"]
}
],
"windows":
{
"variants":
[
{
"name": "Run",
"cmd": ["${packages}\\\\Competitive Programming\\\\run.bat", "c++11", "${file_path}", "a.out"]
}
]
}
}
but running with the build is showing this error.
[WinError 193] %1 is not a valid Win32 application
[cmd: [‘C:\Users\Lenovo\AppData\Roaming\Sublime Text\Packages/Competitive Programming/run.sh’, ‘c++11’, ‘D:\programming\inputting n as well as inputting m(m is 2 digit)’, ‘a.out’]]
[dir: D:\programming\inputting n as well as inputting m(m is 2 digit)]
[path: C:\MinGW\bin;C:\Windows\System32;C:\MinGW\bin;C:\Users\Lenovo\AppData\Local\atom\bin]
[Finished]