- 编译
- 使用GCC-5.1.0或者更高版本GCC进行编译。
- 编译命令
g++ -o SeedCup2016.exe -std=c++14 -O2 -DNDEBUG SeedCup2016.cpp
。
- 运行
Bin
文件夹中的SeedCup2016.exe
是Windows平台下32位的可执行文件,如果需要其他平台下的可执行文件请自行编译。- 因为本程序仅使用了标准库,所以本程序的代码可以在任何能够编译ISO C++14的平台下编译运行。
- 本程序将从当前目录下的
input.txt
中读入需要处理的C语言代码并进行分析,然后会将运行顺序输出到当前目录下的output.txt
。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
priv="/etc/pki/private/mok/signing_key.pem" | |
x509="/etc/pki/private/mok/signing_key.x509" | |
akdir="/var/cache/akmods" | |
kver="$(uname -r)" | |
sifi="/usr/src/kernels/${kver}/scripts/sign-file" | |
tmpf="/tmp/modsign_tmp.ko" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iomanip> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
inline double ToDouble(const string &sOrg) | |
try { | |
return stod(sOrg); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <cstdio> | |
#include <cstring> | |
#include <utility> | |
using namespace std; | |
typedef int I32; | |
typedef unsigned int U32; | |
typedef long long I64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#define _SCL_SECURE_NO_WARNINGS | |
#pragma comment(lib, "crypt32.lib") | |
#pragma comment(lib, "wldap32.lib") | |
#pragma comment(lib, "ws2_32.lib") | |
#include <boost/algorithm/string.hpp> | |
#include <boost/algorithm/string/trim.hpp> | |
#include <boost/filesystem/fstream.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#define _SCL_SECURE_NO_WARNINGS | |
#include <boost/algorithm/string.hpp> | |
#include <boost/filesystem.hpp> | |
#include <boost/gil/image.hpp> | |
#include <boost/gil/extension/io/png_io.hpp> | |
#include <boost/lexical_cast.hpp> | |
#include <algorithm> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstring> | |
using namespace std; | |
// AcAutomaton | |
struct tnode { | |
int s; | |
tnode *f, *w, *c[26]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i> 00004654 Build: detached / 9f5abb02b7c23850440588c8ba6d6405527b625e on Jan 15 2017 | |
i> 00004654 Initializing Vulkan 1.0.0... | |
i> 00004654 Found 2 global layers: | |
i> 00004654 - VK_LAYER_NV_optimus (spec: 1.0.8, impl: 0.0.1) | |
i> 00004654 NVIDIA Optimus layer | |
i> 00004654 - VK_LAYER_VALVE_steam_overlay (spec: 1.0.3, impl: 0.0.1) | |
i> 00004654 Steam Overlay Layer | |
i> 00004654 Found 3 global extensions: | |
i> 00004654 - VK_KHR_surface (0.0.25) | |
i> 00004654 - VK_KHR_win32_surface (0.0.5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SeedCup2016.cpp | |
// Author: EAirPeter([email protected]) | |
// Date: 10/25/2016 | |
// Compilation: g++ -o SeedCup2016.exe -std=c++14 -O2 -DNDEBUG SeedCup2016.cpp | |
// Description: This code is used for participating SeedCup2016. | |
#ifndef NDEBUG | |
# define NDEBUG | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* utils/ListG.inl | |
* Generating List. | |
* List: A double circular linked list. | |
*/ | |
#ifndef LISTG_TNAME | |
# error LISTG_TNAME not defined. | |
#endif // ifndef LISTG_TNAME |