fork download
  1. {
  2. "cmd":["bash", "-c", "g++ -std=c++14 -Wall '${file}' -o '${file_path}/${file_base_name}' && timeout 0.5s '${file_path}/${file_base_name}'"],
  3. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  4. "working_dir": "${file_path}",
  5. "selector": "source.c, source.c++",
  6. "variants":
  7. [
  8. {
  9. "name": "Run",
  10. "cmd":["bash", "-c", "g++ -std=c++14 '${file}' -o '${file_path}/${file_base_name}' && timeout 0.5s '${file_path}/${file_base_name}'"]
  11. }
  12. ]
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: expected unqualified-id before ‘{’ token
 {
 ^
stdout
Standard output is empty