windows10 和 linuxmint双系统. 正在配置linux系统的sublime. 因为要练习ACM题目感觉直接输入输出会方便一点,就搜了网上的这个代码,在编译工具栏目中保存为了C++builder,尝试着编译"helloworld"试试看.但是发现没办法编译运行,错误也直接贴在下面了.求助各路大神!谢谢啦!
{
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\" < \"${file_path}/in\" > \"${file_path}/out\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Build & Run",
"shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' < '${file_path}/in' > '${file_path}/out'"
},
{
"name": "Build Only",
"shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}'"
},
{
"name": "Run Only",
"shell_cmd": "'${file_path}/${file_base_name}' < '${file_path}/in' > '${file_path}/out'"
}
]
}
/bin/bash: /media/wooden/LENOVO/计算机/测试/in: 没有那个文件或目录
[Finished in 0.2s with exit code 1]
[shell_cmd: g++ '/media/wooden/LENOVO/计算机/测试/untitled.cpp' -o '/media/wooden/LENOVO/计算机/测试/untitled' && '/media/wooden/LENOVO/计算机/测试/untitled' < '/media/wooden/LENOVO/计算机/测试/in' > '/media/wooden/LENOVO/计算机/测试/out']
[dir: /media/wooden/LENOVO/计算机/测试]
[path: /home/wooden/bin:/home/wooden/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]
{
"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\" < \"${file_path}/in\" > \"${file_path}/out\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Build & Run",
"shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' < '${file_path}/in' > '${file_path}/out'"
},
{
"name": "Build Only",
"shell_cmd": "g++ '${file}' -o '${file_path}/${file_base_name}'"
},
{
"name": "Run Only",
"shell_cmd": "'${file_path}/${file_base_name}' < '${file_path}/in' > '${file_path}/out'"
}
]
}
/bin/bash: /media/wooden/LENOVO/计算机/测试/in: 没有那个文件或目录
[Finished in 0.2s with exit code 1]
[shell_cmd: g++ '/media/wooden/LENOVO/计算机/测试/untitled.cpp' -o '/media/wooden/LENOVO/计算机/测试/untitled' && '/media/wooden/LENOVO/计算机/测试/untitled' < '/media/wooden/LENOVO/计算机/测试/in' > '/media/wooden/LENOVO/计算机/测试/out']
[dir: /media/wooden/LENOVO/计算机/测试]
[path: /home/wooden/bin:/home/wooden/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]