Skip to content

Instantly share code, notes, and snippets.

@dcrystalj
Last active September 10, 2018 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcrystalj/e8066088daed07c10c842e7f32d80334 to your computer and use it in GitHub Desktop.
Save dcrystalj/e8066088daed07c10c842e7f32d80334 to your computer and use it in GitHub Desktop.
g++ build
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build & run",
"type": "shell",
"command": "g++ program.cpp -std=c++14 -o program.out && time ./program < in.txt",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build & debug",
"type": "shell",
"command": "g++ program.cpp -std=c++14 -g -o program.out",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment