Skip to content

Instantly share code, notes, and snippets.

@Sohaib03
Last active January 6, 2024 12:30
Show Gist options
  • Save Sohaib03/9002f629a03b59b099717813be36dd6c to your computer and use it in GitHub Desktop.
Save Sohaib03/9002f629a03b59b099717813be36dd6c to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
#define pb push_back
#define fill(x, y) memset(x, y, sizeof(y))
#define all(x) (x).begin(), (x).end()
#define debug(x) { cerr << #x << " = " << x << endl; }
#define IO { ios_base::sync_with_stdio(false); cin.tie(0); }
#define read(x) freopen(x, "r", stdin)
#define write(x) freopen(x, "w", stdout)
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
int main() {
}
/*
{
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"New C++ File" : {
"prefix": "nw",
"body": [
"#include <bits/stdc++.h>",
"",
"#define pb push_back",
"#define fill(x, y) memset(x, y, sizeof(y))",
"#define all(x) (x).begin(), (x).end()",
"#define debug(x) { cerr << #x << \" = \" << x << endl; }",
"#define IO { ios_base::sync_with_stdio(false); cin.tie(0); }",
"#define read(x) freopen(x, \"r\", stdin)",
"#define write(x) freopen(x, \"w\", stdout)",
"",
"using namespace std;",
"",
"typedef long long ll;",
"typedef pair<int, int> ii;",
"typedef vector<int> vi;",
"",
"",
"int main() {",
"",
"}",
]
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment