Set up environment
This commit is contained in:
commit
fdaadfd028
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
main*
|
||||||
|
!main*.cpp
|
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Debug",
|
||||||
|
"type": "gdb",
|
||||||
|
"request": "launch",
|
||||||
|
"target": "${fileDirname}/${fileBasenameNoExtension}",
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"valuesFormatting": "prettyPrinters",
|
||||||
|
"preLaunchTask": "g++ build active file"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
17
.vscode/tasks.json
vendored
Normal file
17
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "g++ build active file",
|
||||||
|
"command": "g++",
|
||||||
|
"args": ["-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}"],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
14
main.cpp
Normal file
14
main.cpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
#define f first
|
||||||
|
#define s second
|
||||||
|
using namespace std;
|
||||||
|
using ll = long long;
|
||||||
|
using ii = pair<int, int>;
|
||||||
|
constexpr int MX = 1e5+5;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
|
||||||
|
ios_base::sync_with_stdio(0), cin.tie(0);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
14
main2.cpp
Normal file
14
main2.cpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
#define f first
|
||||||
|
#define s second
|
||||||
|
using namespace std;
|
||||||
|
using ll = long long;
|
||||||
|
using ii = pair<int, int>;
|
||||||
|
constexpr int MX = 1e5+5;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
|
||||||
|
ios_base::sync_with_stdio(0), cin.tie(0);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
14
main3.cpp
Normal file
14
main3.cpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
#define f first
|
||||||
|
#define s second
|
||||||
|
using namespace std;
|
||||||
|
using ll = long long;
|
||||||
|
using ii = pair<int, int>;
|
||||||
|
constexpr int MX = 1e5+5;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
|
||||||
|
ios_base::sync_with_stdio(0), cin.tie(0);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Reference in a new issue