-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.h
More file actions
35 lines (30 loc) · 679 Bytes
/
common.h
File metadata and controls
35 lines (30 loc) · 679 Bytes
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
#pragma once
#define _SECURE_SCL 0
#pragma runtime_checks("",off)
#define _HAS_ITERATOR_DEBUGGING 0
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <assert.h>
#include <time.h>
#include <string.h>
#include <algorithm>
#include <stdarg.h>
#include <map>
#include <math.h>
using namespace std;
typedef unsigned char ui8;
typedef unsigned short ui16;
typedef unsigned int ui32;
typedef unsigned long long ui64;
typedef signed long long i64;
#define ARRAY_SIZE(X) (sizeof(X) / sizeof(X[0]))
void inline die ( const char * sTemplate, ... )
{
va_list ap;
va_start ( ap, sTemplate );
vprintf ( sTemplate, ap );
va_end ( ap );
printf ( "\n" );
exit ( 1 );
}