博客中凡事引用了common.h头文件的代码,需要将此文件加入。
如下所示:
#ifndef __COMMON__
#define __COMMON__
#include <Windows.h>
#include <Richedit.h>
#include <iostream>
#include <vector>
#include <queue>
#include <deque>
#include <map>
#include <stdio.h>
#include <string.h>
#include <cstring>
#include <stdlib.h>
#include <time.h>
#include <process.h>
#include <Windows.h>
#include <ctype.h>
#include <algorithm>
#include <ctime>
#include <set>
#include <memory>
using namespace std;
#pragma warning(disable:4800)
#pragma warning(disable:4129)
#pragma warning(disable:4715)
#pragma warning(disable:4996)
template<typename T>
void swap( T &a, T &b )
{
T tmp = a;
a = b;
b = tmp;
return;
}
#endif