-
Notifications
You must be signed in to change notification settings - Fork 1
/
topcoder.sublime-snippet
52 lines (45 loc) · 1016 Bytes
/
topcoder.sublime-snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<snippet>
<content><![CDATA[
// Ideone_Language_Id:1
/* Don"t remove the first line! */
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <set>
#include <utility>
#include <stack>
#include <cmath>
#include <cassert>
${1://more includes}
#define foreach(v,c) for(typeof((c).begin()) v=(c).begin();v!=(c).end();++v)
#define all(a) a.begin(),a.end()
#define in(a,b) ((b).find(a)!=(b).end())
#define pb push_back
#define fill(a,v) memset(a,v,sizeof a)
#define sz(a) ((int)(a.size()))
#define mp make_pair
#define pb push_back
${2://more defines}
using namespace std;
class ${3:${TM_FILENAME/(.+)\..+|.*/$1/:name}}
{
public:
${4:int} ${5:function} (${6:args...});
};
$4 $3::$5 ($6)
{
${7:/*Write code here*/}
}
int main(int argc, char const *argv[])
{
${8:/*main testing code*/}
}
]]></content>
<tabTrigger>topcoder</tabTrigger>
<scope>source.c, source.objc, source.c++, source.objc++</scope>
</snippet>