diff --git a/src/my-online-judge-master/.gitignore b/src/my-online-judge-master/.gitignore deleted file mode 100644 index 5d947ca..0000000 --- a/src/my-online-judge-master/.gitignore +++ /dev/null @@ -1,18 +0,0 @@ -# Build and Release Folders -bin-debug/ -bin-release/ -[Oo]bj/ -[Bb]in/ - -# Other files and folders -.settings/ - -# Executables -*.swf -*.air -*.ipa -*.apk - -# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` -# should NOT be excluded as they contain compiler settings and other important -# information for Eclipse / Flash Builder. diff --git a/src/my-online-judge-master/.vscode/settings.json b/src/my-online-judge-master/.vscode/settings.json deleted file mode 100644 index fc3f400..0000000 --- a/src/my-online-judge-master/.vscode/settings.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "files.associations": { - "cctype": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "csignal": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "*.tcc": "cpp", - "bitset": "cpp", - "chrono": "cpp", - "compare": "cpp", - "complex": "cpp", - "concepts": "cpp", - "condition_variable": "cpp", - "cstdint": "cpp", - "deque": "cpp", - "list": "cpp", - "map": "cpp", - "set": "cpp", - "string": "cpp", - "unordered_map": "cpp", - "unordered_set": "cpp", - "vector": "cpp", - "exception": "cpp", - "algorithm": "cpp", - "functional": "cpp", - "iterator": "cpp", - "memory": "cpp", - "memory_resource": "cpp", - "numeric": "cpp", - "optional": "cpp", - "random": "cpp", - "ratio": "cpp", - "regex": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "utility": "cpp", - "fstream": "cpp", - "initializer_list": "cpp", - "iomanip": "cpp", - "iosfwd": "cpp", - "iostream": "cpp", - "istream": "cpp", - "limits": "cpp", - "mutex": "cpp", - "new": "cpp", - "numbers": "cpp", - "ostream": "cpp", - "semaphore": "cpp", - "sstream": "cpp", - "stdexcept": "cpp", - "stop_token": "cpp", - "streambuf": "cpp", - "thread": "cpp", - "cinttypes": "cpp", - "typeindex": "cpp", - "typeinfo": "cpp", - "variant": "cpp" - } -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/.vscode/launch.json b/src/my-online-judge-master/MYOJ/.vscode/launch.json deleted file mode 100644 index e86253b..0000000 --- a/src/my-online-judge-master/MYOJ/.vscode/launch.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "configurations": [ - { - "name": "(gdb) Launch", - "type": "cppdbg", - "request": "launch", - "program": "enter program name, for example ${workspaceFolder}/a.out", - "args": [], - "stopAtEntry": false, - "cwd": "${fileDirname}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ] - } - ], - "version": "2.0.0" -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/.vscode/settings.json b/src/my-online-judge-master/MYOJ/.vscode/settings.json deleted file mode 100644 index 329d3d0..0000000 --- a/src/my-online-judge-master/MYOJ/.vscode/settings.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "cmake.sourceDirectory": "/home/zzy1/2024/my-online-judge/MYOJ", - "files.associations": { - "chrono": "cpp", - "cctype": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "csignal": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "*.tcc": "cpp", - "bitset": "cpp", - "compare": "cpp", - "concepts": "cpp", - "condition_variable": "cpp", - "cstdint": "cpp", - "deque": "cpp", - "list": "cpp", - "map": "cpp", - "set": "cpp", - "string": "cpp", - "unordered_map": "cpp", - "vector": "cpp", - "exception": "cpp", - "algorithm": "cpp", - "functional": "cpp", - "iterator": "cpp", - "memory": "cpp", - "memory_resource": "cpp", - "numeric": "cpp", - "random": "cpp", - "ratio": "cpp", - "regex": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "utility": "cpp", - "fstream": "cpp", - "future": "cpp", - "initializer_list": "cpp", - "iomanip": "cpp", - "iosfwd": "cpp", - "iostream": "cpp", - "istream": "cpp", - "limits": "cpp", - "mutex": "cpp", - "new": "cpp", - "numbers": "cpp", - "ostream": "cpp", - "semaphore": "cpp", - "sstream": "cpp", - "stdexcept": "cpp", - "stop_token": "cpp", - "streambuf": "cpp", - "thread": "cpp", - "cinttypes": "cpp", - "typeinfo": "cpp", - "complex": "cpp", - "optional": "cpp", - "typeindex": "cpp", - "variant": "cpp", - "unordered_set": "cpp", - "shared_mutex": "cpp" - } -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/.vscode/tasks.json b/src/my-online-judge-master/MYOJ/.vscode/tasks.json deleted file mode 100644 index 6aed485..0000000 --- a/src/my-online-judge-master/MYOJ/.vscode/tasks.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "tasks": [ - { - "type": "cppbuild", - "label": "C/C++: g++-11 build active file", - "command": "/usr/bin/g++-11", - "args": [ - "-fdiagnostics-color=always", - "-g", - "${file}", - "-o", - "${fileDirname}/${fileBasenameNoExtension}" - ], - "options": { - "cwd": "${fileDirname}" - }, - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - }, - "detail": "Task generated by Debugger." - } - ], - "version": "2.0.0" -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/CMakeLists.txt b/src/my-online-judge-master/MYOJ/CMakeLists.txt deleted file mode 100644 index ccf9abb..0000000 --- a/src/my-online-judge-master/MYOJ/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -cmake_minimum_required(VERSION 3.10) -project(MYOJ) - -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ./output) -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED True) - -add_executable(OJ_server ./OJ_server/OJ_server.cc) -target_link_libraries(OJ_server PRIVATE jsoncpp ctemplate mysqlclient) - -add_executable(compile_server ./compile_server/compile_server.cc) -target_link_libraries(compile_server PRIVATE jsoncpp) - -add_executable(data_server ./data_server/data_server.cc) -target_link_libraries(data_server PRIVATE jsoncpp ctemplate mysqlclient) \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/OJ_Control.hpp b/src/my-online-judge-master/MYOJ/OJ_server/OJ_Control.hpp deleted file mode 100644 index cd8108e..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/OJ_Control.hpp +++ /dev/null @@ -1,372 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include "OJ_view.hpp" -#include "../comm/Comm_model_MySQL.hpp" -#include "../comm/util.hpp" -#include "../comm/httplib.h" - -namespace ns_control -{ - const std::string http_pattern = "/compile_and_run"; - - class Machine - { - public: - Machine(const std::string &IP, const uint16_t port) - : _IP(IP), _port(port), a_loads(0) - { - } - ~Machine() - { - } - - void inLoad() - { - a_loads.fetch_add(1, std::memory_order_relaxed); - } - - void deLoad() - { - a_loads.fetch_sub(1, std::memory_order_relaxed); - } - - void resetLoad() - { - a_loads.store(0, std::memory_order_relaxed); - } - - uint32_t getLoad() const - { - return a_loads.load(std::memory_order_relaxed); - } - - std::string getIP() const - { - return _IP; - } - - uint16_t getPort() const - { - return _port; - } - - Machine(const Machine &) = delete; - Machine &operator=(const Machine &) = delete; - - Machine(Machine &&other) noexcept - : _IP(std::move(other._IP)), _port(other._port), a_loads(other.a_loads.load()) - { - } - - // 移动赋值运算符 - Machine &operator=(Machine &&other) noexcept - { - if (this != &other) - { - _IP = std::move(other._IP); - _port = other._port; - a_loads.store(other.a_loads.load()); - other.a_loads.store(0); - } - return *this; - } - - private: - std::string _IP; // 主机IP地址 - uint16_t _port; // 主机端口号 - std::atomic_uint a_loads; // 负载量,原子类型,保证线程安全 - }; - - const std::string conf_path = "/home/zzy1/2024/my-online-judge/MYOJ/OJ_server/service_machine.conf"; - - class LoadBalance - { - public: - LoadBalance() - { - // 导入配置文件 - if (!loadConf()) - { - // 导入失败,差错问题以在loadConf中说明,此处直接退出 - exit(1); - } - lg(Info, "加载配置文件%s成功!\n", conf_path.c_str()); - } - - ~LoadBalance() - { - } - - bool loadConf() - { - // 1.打开文件流 - std::ifstream in(conf_path); - if (!in.is_open()) - { - // 打开失败的情况 - lg(Error, "加载配置文件%s失败, 请检查! errno: %d, strerror: %s\n", conf_path.c_str(), errno, strerror(errno)); - return false; - } - - std::string line; // 从文件流中读取缓冲区 - std::vector tokens; // 分割字符串后的结果缓冲区 - - while (getline(in, line)) - { - ns_util::splitUtil::splitString(line, ":", &tokens); - if (tokens.size() != 2) - { - lg(Error, "分割字符串失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - return false; - } - - Machine machine(tokens[0], stoi(tokens[1])); - - // 先将配置文件中的所有主机按照上线处理 - _onlines.push_back(_machines.size()); - _machines.push_back(std::move(machine)); - } - - // 从文件流中读取完毕,回收资源 - in.close(); - return true; - } - - // 两个输出型参数,分别是主机的ID号,和描述主机的二级指针,以及返回是否选择成功 - bool smartChoice(int *num, Machine **ppmachine) - { - // 1. 判断是否还有主机在线 - _mutex.lock(); - if (_onlines.size() == 0) - { - // 所有主机均已下线 - lg(Fatal, "所有主机均已下线, 请运维人员检查主机状况!\n"); - return false; - } - - // 2.遍历所有在线的主机表,找到负载最小的主机号 - int min_num = _onlines[0]; // 用来存储负载最小的主机的编号 - uint32_t min_load = _machines[min_num].getLoad(); // 用来存储负载最小的主机的负载量 - - for (int i = 1; i < _onlines.size(); i++) - { - int tmp_num = _onlines[i]; - uint32_t tmp_load = _machines[tmp_num].getLoad(); - if (min_load > tmp_load) - { - min_load = tmp_load; - min_num = tmp_num; - } - } - - _mutex.unlock(); - - *num = min_num; - *ppmachine = &_machines[min_num]; - return true; - } - - // 上线所有主机 - void onlineMachine() - { - _mutex.lock(); - _onlines.insert(_onlines.end(), _offlines.begin(), _offlines.end()); - _offlines.clear(); - _mutex.unlock(); - } - - // 展示所有主机,分别将离线主机,在线主机打印出来,主要debug使用 - void showMachine() - { - std::cout << "在线主机: "; - for (int x : _onlines) - { - std::cout << x << " "; - } - std::cout << std::endl; - - std::cout << "离线主机: "; - for (int x : _offlines) - { - std::cout << x << " "; - } - std::cout << std::endl; - } - - // 下线指定主机 - void offlineMachine(int host_id) - { - _mutex.lock(); - if (_machines.size() <= host_id) - { - lg(Warning, "要下线的主机: %d 不存在!\n", host_id); - return; - } - - for (auto it = _onlines.begin(); it != _onlines.end(); it++) - { - if (*it == host_id) - { - // 由于直接break,所以不需要考虑迭代器失效的问题 - _onlines.erase(it); - _offlines.push_back(host_id); - break; - } - } - - _mutex.unlock(); - } - - private: - std::vector _machines; // 存储所有的主机,每个主机的下标就是天然的主机编号 - std::vector _onlines; // 记录所有上线状态的主机编号 - std::vector _offlines; // 记录所有下线状态的主机编号 - std::mutex _mutex; // 锁,由于STL不保证线程安全,需要加锁保护 - }; - - // 核心控制器 - class Control - { - public: - Control() - { - } - ~Control() - { - } - - // 将所有主机恢复为在线状态 - void recoveryMachine() - { - _lb.onlineMachine(); - } - - // 获取所有问题 - bool allQuestions(std::string *html) - { - std::vector questions; - - if (!_model.getAllQuestions(&questions)) - { - lg(Error, "获取所有题目失败, 无法构成网页!\n"); - *html = "获取所有题目失败, 无法构成网页!"; - return false; - } - - std::sort(questions.begin(), questions.end(), - [](const ns_model_MySQL::Question &q1, const ns_model_MySQL::Question &q2) - { - int num1 = std::stoi(q1.number); - int num2 = std::stoi(q2.number); - assert(!(num1 == num2)); - - return (num1 < num2); - }); - - _view.AllExpandHtml(questions, html); - - return true; - } - - bool oneQuestion(const std::string &num, std::string *html) - { - ns_model_MySQL::Question q; - - if (!_model.getOneQuestion(num, &q)) - { - lg(Error, "获取题号%s的题目信息失败, 无法构建网页!\n", num.c_str()); - *html = "获取单个题目失败,无法构成网页!"; - return false; - } - - _view.OneExpandHtml(q, html); - return true; - } - - void Judge(const std::string &num, const std::string &in_json, std::string *out_json) - { - // 1.根据题号,拿到相应的题目信息 - ns_model_MySQL::Question q; - _model.getOneQuestion(num, &q); - - // 2.对题目信息反序列化,保存到json串中,其中in_json中的主要信息有code和input - Json::Value in_value; - Json::Reader reader; - reader.parse(in_json, in_value); - - // 3.构建compile_server所需要的json串 - Json::Value compile_value; - std::string code = in_value["code"].asString(); - code += "\n"; - code += q.tail; - - compile_value["code"] = code; - compile_value["input"] = in_value["input"].asString(); - compile_value["cpu_limit"] = q.cpu_limit; - compile_value["mem_limit"] = q.mem_limit; - - Json::FastWriter writer; - std::string compile_string = writer.write(compile_value); - - // 4.选择负载均衡最低的主机 - // 注意:并不是一寻找就能找到的,可能找到的主机已经挂掉了 - // 这个时候就要将挂掉的主机放入offlines中 - // 然后再去寻找新的主机 - // 这样结果要么就直接找到,要么就全部挂掉 - int host_id = 0; - while (true) - { - Machine *pmachine = nullptr; - if (!_lb.smartChoice(&host_id, &pmachine)) - { - // 主机全挂了 - break; - } - - // 选到了一个主机 - // 5. 向主机发送http请求,得到结果,通过返回的状态码判断主机是否还在线 - httplib::Client cli(pmachine->getIP(), pmachine->getPort()); - - // 发送post请求,并增加负载 - pmachine->inLoad(); - - lg(Info, "选择主机id: %d, ip: %s, port: %d, load: %d 尝试进行编译运行服务...\n", - host_id, pmachine->getIP().c_str(), pmachine->getPort(), pmachine->getLoad()); - // std::cout << "发起判题请求" << http_pattern.c_str() << std::endl; - httplib::Result res = cli.Post(http_pattern.c_str(), compile_string, "application/json;charset=utf-8"); - // httplib::Result 类型使httplib库中的定义的类,其中重载了->操作符 - // 可以用于获取response中的各种信息 - - // 判断结果有效,并且状态码为200才说明是成功的 - if (res && res->status == 200) - { - *out_json = res->body; - // 请求完毕,减少负载 - pmachine->deLoad(); - lg(Info, "编译运行服务完成...\n"); - break; - } - else - { - // 失败,需要重新请求,并且将此次选择的主机放到下线表中 - lg(Warning, "本次请求的主机id: %d, 请求失败, ip: %s, port: %d\n", - host_id, pmachine->getIP().c_str(), pmachine->getPort()); - pmachine->resetLoad(); - _lb.offlineMachine(host_id); - _lb.showMachine(); // for debug - } - } - } - - private: - ns_view::View _view; - ns_model_MySQL::Model _model; - LoadBalance _lb; - }; - -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/OJ_server b/src/my-online-judge-master/MYOJ/OJ_server/OJ_server deleted file mode 100644 index 568b752..0000000 Binary files a/src/my-online-judge-master/MYOJ/OJ_server/OJ_server and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/OJ_server/OJ_server.cc b/src/my-online-judge-master/MYOJ/OJ_server/OJ_server.cc deleted file mode 100644 index a0fe3ba..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/OJ_server.cc +++ /dev/null @@ -1,75 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "OJ_Control.hpp" - -static ns_control::Control *ctrl_ptr = nullptr; - -void recovery(int signo) -{ - ctrl_ptr->recoveryMachine(); -} - -int main(int argc, char *argv[]) -{ - // 0、修改指定信号的默认行为,把ctrl + \产生的SIGQUIT信号重定向为一键上线所有主机(交由运维使用) - signal(SIGQUIT, recovery); - - // 1、守护进程化 - if (argc == 2) - { - std::string option(argv[1]); - if (option == "-d") - { - // 1、守护进程化 - if (daemon(1, 0) == -1) - { - perror("OJ_server 守护进程化失败!\n"); - exit(1); - } - } - } - - // 2、用户请求的服务路由功能(用户不同的请求前往不同的区域) - httplib::Server svr; // httplib中的Server类 - ns_control::Control ctrl; // 核心业务逻辑的控制器(初始化的同时,加载题库) - ctrl_ptr = &ctrl; - - // 3、搭建首页,告诉httplib服务器使用指定的目录作为静态文件服务的根目录,在找不到任何对应路由请求的情况下,使用这个目录下的文件作为响应(即首页文件) - svr.set_base_dir("/home/zzy1/2024/my-online-judge/MYOJ/OJ_server/wwwroot"); - - // 3.1 获取所有题目的列表 - svr.Get("/all_questions", [&ctrl](const httplib::Request &req, httplib::Response &resp) - { - std::string html; - ctrl.allQuestions(&html); - resp.set_content(html, "text/html; charset=utf-8"); }); - - // 3.2 用户提供题目编号来获取题目内容 - svr.Get(R"(/question/(\d+))", [&ctrl](const httplib::Request &req, httplib::Response &resp) - { - std::string number = req.matches[1]; //matches[1]中储存着正则匹配到的字符 - std::string html; - ctrl.oneQuestion(number, &html); - resp.set_content(html, "text/html; charset=utf-8"); }); - - // 3.3 用户提交代码,使用我们的判题功能 - // 尽管POST请求的参数是在正文当中的,但是调用函数的时候还是要根据URL路径来调用(因为HTTP 服务器的核心功能之一是根据客户端请求的 URL 路径来决定如何处理请求。路由机制确保了不同类型的请求可以被正确地路由到相应的处理函数。) - svr.Post(R"(/judge/(\d+))", [&ctrl](const httplib::Request &req, httplib::Response &resp) - { - std::string number = req.matches[1]; - std::string result_json; - ctrl.Judge(number, req.body /* POST请求的参数,存放在正文当中 */, &result_json); - resp.set_content(result_json, "application/json;charset=utf-8"); }); - - svr.listen("0.0.0.0", 8081); - return 0; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/OJ_view.hpp b/src/my-online-judge-master/MYOJ/OJ_server/OJ_view.hpp deleted file mode 100644 index 5825d95..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/OJ_view.hpp +++ /dev/null @@ -1,71 +0,0 @@ -// 通常是拿到数据之后,进行构建网页,渲染网络内容,展示给用户的(浏览器功能) -#pragma once - -#include -#include -#include - -#include "../comm/Comm_model_MySQL.hpp" - -namespace ns_view -{ - using namespace std; - using namespace ns_model_MySQL; - - const string template_path = "/home/zzy1/2024/my-online-judge/MYOJ/OJ_server/template_html/"; - - class View - { - public: - View() - { - } - ~View() - { - } - - public: - void AllExpandHtml(const vector &questions, string *html) - { - // 题目的编号 题目的标题 题目的难度 - // 推荐使用表格显示 - // 1. 形成路径 - string src_html = template_path + "all_questions.html"; - // 2. 形成数据字典 - ctemplate::TemplateDictionary root("all_questions"); - for (const auto &q : questions) - { - ctemplate::TemplateDictionary *sub = root.AddSectionDictionary("question_list"); - sub->SetValue("number", q.number); - sub->SetValue("title", q.title); - sub->SetValue("star", q.star); - } - - // 3. 获取被渲染的html - ctemplate::Template *tpl = ctemplate::Template::GetTemplate(src_html, ctemplate::DO_NOT_STRIP); - - // 4. 开始完成渲染功能 - tpl->Expand(html, &root); - } - - void OneExpandHtml(const Question &q, string *html) - { - // 1. 形成路径 - string src_html = template_path + "one_question.html"; - - // 2. 形成数据字典(不需要循环了,只有一个题目) - ctemplate::TemplateDictionary root("one_question"); - root.SetValue("number", q.number); - root.SetValue("title", q.title); - root.SetValue("star", q.star); - root.SetValue("desc", q.desc); - root.SetValue("pre_code", q.header); - - // 3. 获取被渲染的html - ctemplate::Template *tpl = ctemplate::Template::GetTemplate(src_html, ctemplate::DO_NOT_STRIP); - - // 4. 开始完成渲染功能 - tpl->Expand(html, &root); - } - }; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/makefile b/src/my-online-judge-master/MYOJ/OJ_server/makefile deleted file mode 100644 index 6ddf74f..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/makefile +++ /dev/null @@ -1,6 +0,0 @@ -OJ_server:OJ_server.cc - g++ -o $@ $^ -std=c++11 -ljsoncpp -lctemplate -lmysqlclient - -.PHONY:clean -clean: - rm -rf OJ_server \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/service_machine.conf b/src/my-online-judge-master/MYOJ/OJ_server/service_machine.conf deleted file mode 100644 index a7add45..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/service_machine.conf +++ /dev/null @@ -1 +0,0 @@ -127.0.0.1:8082 \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/template_html/all_questions.html b/src/my-online-judge-master/MYOJ/OJ_server/template_html/all_questions.html deleted file mode 100644 index 36404f2..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/template_html/all_questions.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - 在线OJ - 题目列表 - - - - -
- - - - -
-
-

Online Judge 题目列表

-
- - - - - - - - - - - {{#question_list}} - - - - - - {{/question_list}} - -
编号标题难度
{{number}}{{title}}{{star}}
-
- - - -
- - diff --git a/src/my-online-judge-master/MYOJ/OJ_server/template_html/one_question.html b/src/my-online-judge-master/MYOJ/OJ_server/template_html/one_question.html deleted file mode 100644 index 00ace3d..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/template_html/one_question.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - {{number}}.{{title}} - - - - - - - - - - - -
- - - - -
- -
-

- {{number}}.{{title}} - {{star}} -

-
{{desc}}
-
- -
-
-
-
- - -
-
- -
-
- - - -
- - - - - \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/index.html b/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/index.html deleted file mode 100644 index d28f8b1..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/index.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - - - - - - OJ系统 - - - - - - -
- - - - -
-

欢迎来到OnlineJudge平台

-

这是一个独立开发的在线OJ平台,旨在为编程爱好者提供优质的学习和练习环境。在这里,你可以挑战各种编程题目,提升你的编程技能。

- 开始编程之旅 -
-
- - - diff --git a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/login.html b/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/login.html deleted file mode 100644 index 4b48993..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/login.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 欢迎 - 用户登录/注册 - - - - -
- -
- -

欢迎回来

-
-
- - -
-
- - -
- -
- -

还没有账号?立即注册

-
- - - -
- - - diff --git a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/script.js b/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/script.js deleted file mode 100644 index 674646c..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/script.js +++ /dev/null @@ -1,60 +0,0 @@ -function toggleForm() { - // 获取登录表单和注册表单元素 - const loginForm = document.getElementById('loginForm'); - const registerForm = document.getElementById('registerForm'); - - // 切换表单的显示状态 - if (loginForm.style.display === 'none') { - loginForm.style.display = 'block'; - registerForm.style.display = 'none'; - } else { - loginForm.style.display = 'none'; - registerForm.style.display = 'block'; - } -} - -function validateLogin() { - // 获取用户输入的邮箱和密码 - const email = document.getElementById('loginEmail').value; - const password = document.getElementById('loginPassword').value; - - // 简单的前端验证:检查是否为空 - if (email === '' || password === '') { - alert('请填写所有字段'); - return false; - } - - // TODO: 添加更完善的验证逻辑和与后端的交互 - - // 模拟登录成功跳转 - // alert('登录成功!'); - window.location.href = 'index.html'; - return false; -} - -function validateRegister() { - // 获取用户输入的用户名、邮箱、密码和确认密码 - const username = document.getElementById('registerUsername').value; - const email = document.getElementById('registerEmail').value; - const password = document.getElementById('registerPassword').value; - const confirmPassword = document.getElementById('confirmPassword').value; - - // 简单的前端验证:检查是否为空 - if (username === '' || email === '' || password === '' || confirmPassword === '') { - alert('请填写所有字段'); - return false; - } - - // 简单的前端验证:检查密码是否一致 - if (password !== confirmPassword) { - alert('密码不匹配'); - return false; - } - - // TODO: 添加更完善的验证逻辑和与后端的交互 - - // 模拟注册成功跳转 - // alert('注册成功!'); - window.location.href = 'index.html'; - return false; -} diff --git a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/styles.css b/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/styles.css deleted file mode 100644 index 07b3e1e..0000000 --- a/src/my-online-judge-master/MYOJ/OJ_server/wwwroot/styles.css +++ /dev/null @@ -1,116 +0,0 @@ -body { - font-family: 'Arial', sans-serif; - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - margin: 0; - background-color: #f0f2f5; /* 浅灰色背景 */ -} - -.container { - background-color: white; - padding: 30px 40px; /* 增加内边距 */ - border-radius: 8px; /* 更圆润的边角 */ - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */ -} - -.form-container { - width: 380px; /* 调整宽度 */ -} - -h2 { - text-align: center; - color: #333; - margin-bottom: 20px; /* 增加标题底部间距 */ -} - -form { - display: flex; - flex-direction: column; -} - -.input-group { - position: relative; /* 用于放置图标 */ - margin-bottom: 15px; /* 调整输入框间距 */ -} - -/* ...其他样式... */ - -input { - width: 100%; - padding: 12px 12px; - padding-left: 40px; /* 为图标留出空间 */ - border: 1px solid #d9d9d9; - border-radius: 4px; - box-sizing: border-box; -} - -.input-group i { - position: absolute; - top: 50%; - left: 12px; - transform: translateY(-50%); - color: #999; -} - -/* ...其他样式... */ - - -button { - background-color: #1890ff; /* LeetCode 蓝色 */ - color: white; - padding: 12px; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 16px; - transition: background-color 0.3s ease; /* 添加过渡效果 */ -} - -button:hover { - background-color: #40a9ff; /* 更深的蓝色 */ -} - -p { - text-align: center; - margin-top: 15px; -} - -a { - color: #1890ff; - text-decoration: none; -} - -/* 社交登录按钮样式 */ -.social-login { - display: flex; - justify-content: space-between; - margin-top: 20px; -} - -.btn-social { - width: 48%; - padding: 10px; - border: none; - border-radius: 4px; - cursor: pointer; - font-size: 14px; - display: flex; - align-items: center; - justify-content: center; -} - -.btn-wechat { - background-color: #09bb07; /* 微信绿色 */ - color: white; -} - -.btn-qq { - background-color: #00a0e9; /* QQ蓝色 */ - color: white; -} - -.btn-social i { - margin-right: 8px; -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/query/client-vscode/query.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/query/client-vscode/query.json deleted file mode 100644 index 82bb964..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/query/client-vscode/query.json +++ /dev/null @@ -1 +0,0 @@ -{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cache-v2-0c65574fb2b09fe3b98e.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cache-v2-0c65574fb2b09fe3b98e.json deleted file mode 100644 index c24b896..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cache-v2-0c65574fb2b09fe3b98e.json +++ /dev/null @@ -1,1167 +0,0 @@ -{ - "entries" : - [ - { - "name" : "CMAKE_ADDR2LINE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/addr2line" - }, - { - "name" : "CMAKE_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ar" - }, - { - "name" : "CMAKE_BUILD_TYPE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "STRING", - "value" : "Debug" - }, - { - "name" : "CMAKE_CACHEFILE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "This is the directory where this CMakeCache.txt was created" - } - ], - "type" : "INTERNAL", - "value" : "/home/zzy1/2024/my-online-judge/MYOJ/build" - }, - { - "name" : "CMAKE_CACHE_MAJOR_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Major version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "3" - }, - { - "name" : "CMAKE_CACHE_MINOR_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Minor version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "22" - }, - { - "name" : "CMAKE_CACHE_PATCH_VERSION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Patch version of cmake used to create the current loaded cache" - } - ], - "type" : "INTERNAL", - "value" : "1" - }, - { - "name" : "CMAKE_COLOR_MAKEFILE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Enable/Disable color output during build." - } - ], - "type" : "BOOL", - "value" : "ON" - }, - { - "name" : "CMAKE_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to CMake executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/cmake" - }, - { - "name" : "CMAKE_CPACK_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to cpack program executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/cpack" - }, - { - "name" : "CMAKE_CTEST_COMMAND", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to ctest program executable." - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/ctest" - }, - { - "name" : "CMAKE_CXX_COMPILER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/g++-9" - }, - { - "name" : "CMAKE_CXX_COMPILER_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ar-9" - }, - { - "name" : "CMAKE_CXX_COMPILER_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ranlib-9" - }, - { - "name" : "CMAKE_CXX_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_CXX_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "-g" - }, - { - "name" : "CMAKE_CXX_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "-Os -DNDEBUG" - }, - { - "name" : "CMAKE_CXX_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "-O3 -DNDEBUG" - }, - { - "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "-O2 -g -DNDEBUG" - }, - { - "name" : "CMAKE_C_COMPILER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-9" - }, - { - "name" : "CMAKE_C_COMPILER_AR", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ar-9" - }, - { - "name" : "CMAKE_C_COMPILER_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gcc-ranlib-9" - }, - { - "name" : "CMAKE_C_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_C_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "-g" - }, - { - "name" : "CMAKE_C_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "-Os -DNDEBUG" - }, - { - "name" : "CMAKE_C_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "-O3 -DNDEBUG" - }, - { - "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "-O2 -g -DNDEBUG" - }, - { - "name" : "CMAKE_DLLTOOL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "CMAKE_DLLTOOL-NOTFOUND" - }, - { - "name" : "CMAKE_EXECUTABLE_FORMAT", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Executable file format" - } - ], - "type" : "INTERNAL", - "value" : "ELF" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "No help, variable specified on the command line." - } - ], - "type" : "BOOL", - "value" : "TRUE" - }, - { - "name" : "CMAKE_EXTRA_GENERATOR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of external makefile project generator." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_GENERATOR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator." - } - ], - "type" : "INTERNAL", - "value" : "Unix Makefiles" - }, - { - "name" : "CMAKE_GENERATOR_INSTANCE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Generator instance identifier." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_GENERATOR_PLATFORM", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator platform." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_GENERATOR_TOOLSET", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Name of generator toolset." - } - ], - "type" : "INTERNAL", - "value" : "" - }, - { - "name" : "CMAKE_HOME_DIRECTORY", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Source directory with the top level CMakeLists.txt file for this project" - } - ], - "type" : "INTERNAL", - "value" : "/home/zzy1/2024/my-online-judge/MYOJ" - }, - { - "name" : "CMAKE_INSTALL_PREFIX", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Install path prefix, prepended onto install directories." - } - ], - "type" : "PATH", - "value" : "/usr/local" - }, - { - "name" : "CMAKE_INSTALL_SO_NO_EXE", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Install .so files without execute permission." - } - ], - "type" : "INTERNAL", - "value" : "1" - }, - { - "name" : "CMAKE_LINKER", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ld" - }, - { - "name" : "CMAKE_MAKE_PROGRAM", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/gmake" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_NM", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/nm" - }, - { - "name" : "CMAKE_NUMBER_OF_MAKEFILES", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "number of local generators" - } - ], - "type" : "INTERNAL", - "value" : "1" - }, - { - "name" : "CMAKE_OBJCOPY", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/objcopy" - }, - { - "name" : "CMAKE_OBJDUMP", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/objdump" - }, - { - "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Platform information initialized" - } - ], - "type" : "INTERNAL", - "value" : "1" - }, - { - "name" : "CMAKE_PROJECT_DESCRIPTION", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "" - }, - { - "name" : "CMAKE_PROJECT_HOMEPAGE_URL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "" - }, - { - "name" : "CMAKE_PROJECT_NAME", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "MYOJ" - }, - { - "name" : "CMAKE_RANLIB", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/ranlib" - }, - { - "name" : "CMAKE_READELF", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/readelf" - }, - { - "name" : "CMAKE_ROOT", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Path to CMake installation." - } - ], - "type" : "INTERNAL", - "value" : "/usr/share/cmake-3.22" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_SKIP_INSTALL_RPATH", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." - } - ], - "type" : "BOOL", - "value" : "NO" - }, - { - "name" : "CMAKE_SKIP_RPATH", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If set, runtime paths are not added when using shared libraries." - } - ], - "type" : "BOOL", - "value" : "NO" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during all build types." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." - } - ], - "type" : "STRING", - "value" : "" - }, - { - "name" : "CMAKE_STRIP", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "Path to a program." - } - ], - "type" : "FILEPATH", - "value" : "/usr/bin/strip" - }, - { - "name" : "CMAKE_UNAME", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "uname command" - } - ], - "type" : "INTERNAL", - "value" : "/usr/bin/uname" - }, - { - "name" : "CMAKE_VERBOSE_MAKEFILE", - "properties" : - [ - { - "name" : "ADVANCED", - "value" : "1" - }, - { - "name" : "HELPSTRING", - "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." - } - ], - "type" : "BOOL", - "value" : "FALSE" - }, - { - "name" : "MYOJ_BINARY_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/home/zzy1/2024/my-online-judge/MYOJ/build" - }, - { - "name" : "MYOJ_IS_TOP_LEVEL", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "ON" - }, - { - "name" : "MYOJ_SOURCE_DIR", - "properties" : - [ - { - "name" : "HELPSTRING", - "value" : "Value Computed by CMake" - } - ], - "type" : "STATIC", - "value" : "/home/zzy1/2024/my-online-judge/MYOJ" - } - ], - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cmakeFiles-v1-3c45878c05d9c4e2f5e8.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cmakeFiles-v1-3c45878c05d9c4e2f5e8.json deleted file mode 100644 index c06a731..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/cmakeFiles-v1-3c45878c05d9c4e2f5e8.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "inputs" : - [ - { - "path" : "CMakeLists.txt" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.22.1/CMakeSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.22.1/CMakeCCompiler.cmake" - }, - { - "isGenerated" : true, - "path" : "build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/Linux.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeCInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-C.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake" - }, - { - "isCMake" : true, - "isExternal" : true, - "path" : "/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake" - } - ], - "kind" : "cmakeFiles", - "paths" : - { - "build" : "/home/zzy1/2024/my-online-judge/MYOJ/build", - "source" : "/home/zzy1/2024/my-online-judge/MYOJ" - }, - "version" : - { - "major" : 1, - "minor" : 0 - } -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/codemodel-v2-3a02eaf0c5ec9f085ccc.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/codemodel-v2-3a02eaf0c5ec9f085ccc.json deleted file mode 100644 index 936c41f..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/codemodel-v2-3a02eaf0c5ec9f085ccc.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "configurations" : - [ - { - "directories" : - [ - { - "build" : ".", - "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", - "minimumCMakeVersion" : - { - "string" : "3.10" - }, - "projectIndex" : 0, - "source" : ".", - "targetIndexes" : - [ - 0, - 1, - 2 - ] - } - ], - "name" : "Debug", - "projects" : - [ - { - "directoryIndexes" : - [ - 0 - ], - "name" : "MYOJ", - "targetIndexes" : - [ - 0, - 1, - 2 - ] - } - ], - "targets" : - [ - { - "directoryIndex" : 0, - "id" : "OJ_server::@6890427a1f51a3e7e1df", - "jsonFile" : "target-OJ_server-Debug-b3c4d7afb40038cf7482.json", - "name" : "OJ_server", - "projectIndex" : 0 - }, - { - "directoryIndex" : 0, - "id" : "compile_server::@6890427a1f51a3e7e1df", - "jsonFile" : "target-compile_server-Debug-f354d14ff60db7eb7dbe.json", - "name" : "compile_server", - "projectIndex" : 0 - }, - { - "directoryIndex" : 0, - "id" : "data_server::@6890427a1f51a3e7e1df", - "jsonFile" : "target-data_server-Debug-10f607b1341a826026e7.json", - "name" : "data_server", - "projectIndex" : 0 - } - ] - } - ], - "kind" : "codemodel", - "paths" : - { - "build" : "/home/zzy1/2024/my-online-judge/MYOJ/build", - "source" : "/home/zzy1/2024/my-online-judge/MYOJ" - }, - "version" : - { - "major" : 2, - "minor" : 3 - } -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json deleted file mode 100644 index 3a67af9..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "backtraceGraph" : - { - "commands" : [], - "files" : [], - "nodes" : [] - }, - "installers" : [], - "paths" : - { - "build" : ".", - "source" : "." - } -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/index-2024-09-25T12-40-08-0895.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/index-2024-09-25T12-40-08-0895.json deleted file mode 100644 index 4d66177..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/index-2024-09-25T12-40-08-0895.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "cmake" : - { - "generator" : - { - "multiConfig" : false, - "name" : "Unix Makefiles" - }, - "paths" : - { - "cmake" : "/usr/bin/cmake", - "cpack" : "/usr/bin/cpack", - "ctest" : "/usr/bin/ctest", - "root" : "/usr/share/cmake-3.22" - }, - "version" : - { - "isDirty" : false, - "major" : 3, - "minor" : 22, - "patch" : 1, - "string" : "3.22.1", - "suffix" : "" - } - }, - "objects" : - [ - { - "jsonFile" : "codemodel-v2-3a02eaf0c5ec9f085ccc.json", - "kind" : "codemodel", - "version" : - { - "major" : 2, - "minor" : 3 - } - }, - { - "jsonFile" : "cache-v2-0c65574fb2b09fe3b98e.json", - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } - }, - { - "jsonFile" : "cmakeFiles-v1-3c45878c05d9c4e2f5e8.json", - "kind" : "cmakeFiles", - "version" : - { - "major" : 1, - "minor" : 0 - } - }, - { - "jsonFile" : "toolchains-v1-7286679ae278c4c667e3.json", - "kind" : "toolchains", - "version" : - { - "major" : 1, - "minor" : 0 - } - } - ], - "reply" : - { - "client-vscode" : - { - "query.json" : - { - "requests" : - [ - { - "kind" : "cache", - "version" : 2 - }, - { - "kind" : "codemodel", - "version" : 2 - }, - { - "kind" : "toolchains", - "version" : 1 - }, - { - "kind" : "cmakeFiles", - "version" : 1 - } - ], - "responses" : - [ - { - "jsonFile" : "cache-v2-0c65574fb2b09fe3b98e.json", - "kind" : "cache", - "version" : - { - "major" : 2, - "minor" : 0 - } - }, - { - "jsonFile" : "codemodel-v2-3a02eaf0c5ec9f085ccc.json", - "kind" : "codemodel", - "version" : - { - "major" : 2, - "minor" : 3 - } - }, - { - "jsonFile" : "toolchains-v1-7286679ae278c4c667e3.json", - "kind" : "toolchains", - "version" : - { - "major" : 1, - "minor" : 0 - } - }, - { - "jsonFile" : "cmakeFiles-v1-3c45878c05d9c4e2f5e8.json", - "kind" : "cmakeFiles", - "version" : - { - "major" : 1, - "minor" : 0 - } - } - ] - } - } - } -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-OJ_server-Debug-b3c4d7afb40038cf7482.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-OJ_server-Debug-b3c4d7afb40038cf7482.json deleted file mode 100644 index 58733ec..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-OJ_server-Debug-b3c4d7afb40038cf7482.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "artifacts" : - [ - { - "path" : "output/OJ_server" - } - ], - "backtrace" : 1, - "backtraceGraph" : - { - "commands" : - [ - "add_executable", - "target_link_libraries" - ], - "files" : - [ - "CMakeLists.txt" - ], - "nodes" : - [ - { - "file" : 0 - }, - { - "command" : 0, - "file" : 0, - "line" : 8, - "parent" : 0 - }, - { - "command" : 1, - "file" : 0, - "line" : 9, - "parent" : 0 - } - ] - }, - "compileGroups" : - [ - { - "compileCommandFragments" : - [ - { - "fragment" : "-g" - }, - { - "fragment" : "-std=gnu++11" - } - ], - "language" : "CXX", - "languageStandard" : - { - "backtraces" : - [ - 1 - ], - "standard" : "11" - }, - "sourceIndexes" : - [ - 0 - ] - } - ], - "id" : "OJ_server::@6890427a1f51a3e7e1df", - "link" : - { - "commandFragments" : - [ - { - "fragment" : "-g", - "role" : "flags" - }, - { - "fragment" : "", - "role" : "flags" - }, - { - "backtrace" : 2, - "fragment" : "-ljsoncpp", - "role" : "libraries" - }, - { - "backtrace" : 2, - "fragment" : "-lctemplate", - "role" : "libraries" - }, - { - "backtrace" : 2, - "fragment" : "-lmysqlclient", - "role" : "libraries" - } - ], - "language" : "CXX" - }, - "name" : "OJ_server", - "nameOnDisk" : "OJ_server", - "paths" : - { - "build" : ".", - "source" : "." - }, - "sourceGroups" : - [ - { - "name" : "Source Files", - "sourceIndexes" : - [ - 0 - ] - } - ], - "sources" : - [ - { - "backtrace" : 1, - "compileGroupIndex" : 0, - "path" : "OJ_server/OJ_server.cc", - "sourceGroupIndex" : 0 - } - ], - "type" : "EXECUTABLE" -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-compile_server-Debug-f354d14ff60db7eb7dbe.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-compile_server-Debug-f354d14ff60db7eb7dbe.json deleted file mode 100644 index c686012..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-compile_server-Debug-f354d14ff60db7eb7dbe.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "artifacts" : - [ - { - "path" : "output/compile_server" - } - ], - "backtrace" : 1, - "backtraceGraph" : - { - "commands" : - [ - "add_executable", - "target_link_libraries" - ], - "files" : - [ - "CMakeLists.txt" - ], - "nodes" : - [ - { - "file" : 0 - }, - { - "command" : 0, - "file" : 0, - "line" : 11, - "parent" : 0 - }, - { - "command" : 1, - "file" : 0, - "line" : 12, - "parent" : 0 - } - ] - }, - "compileGroups" : - [ - { - "compileCommandFragments" : - [ - { - "fragment" : "-g" - }, - { - "fragment" : "-std=gnu++11" - } - ], - "language" : "CXX", - "languageStandard" : - { - "backtraces" : - [ - 1 - ], - "standard" : "11" - }, - "sourceIndexes" : - [ - 0 - ] - } - ], - "id" : "compile_server::@6890427a1f51a3e7e1df", - "link" : - { - "commandFragments" : - [ - { - "fragment" : "-g", - "role" : "flags" - }, - { - "fragment" : "", - "role" : "flags" - }, - { - "backtrace" : 2, - "fragment" : "-ljsoncpp", - "role" : "libraries" - } - ], - "language" : "CXX" - }, - "name" : "compile_server", - "nameOnDisk" : "compile_server", - "paths" : - { - "build" : ".", - "source" : "." - }, - "sourceGroups" : - [ - { - "name" : "Source Files", - "sourceIndexes" : - [ - 0 - ] - } - ], - "sources" : - [ - { - "backtrace" : 1, - "compileGroupIndex" : 0, - "path" : "compile_server/compile_server.cc", - "sourceGroupIndex" : 0 - } - ], - "type" : "EXECUTABLE" -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-data_server-Debug-10f607b1341a826026e7.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-data_server-Debug-10f607b1341a826026e7.json deleted file mode 100644 index 3e3e0bd..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/target-data_server-Debug-10f607b1341a826026e7.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "artifacts" : - [ - { - "path" : "output/data_server" - } - ], - "backtrace" : 1, - "backtraceGraph" : - { - "commands" : - [ - "add_executable", - "target_link_libraries" - ], - "files" : - [ - "CMakeLists.txt" - ], - "nodes" : - [ - { - "file" : 0 - }, - { - "command" : 0, - "file" : 0, - "line" : 14, - "parent" : 0 - }, - { - "command" : 1, - "file" : 0, - "line" : 15, - "parent" : 0 - } - ] - }, - "compileGroups" : - [ - { - "compileCommandFragments" : - [ - { - "fragment" : "-g" - }, - { - "fragment" : "-std=gnu++11" - } - ], - "language" : "CXX", - "languageStandard" : - { - "backtraces" : - [ - 1 - ], - "standard" : "11" - }, - "sourceIndexes" : - [ - 0 - ] - } - ], - "id" : "data_server::@6890427a1f51a3e7e1df", - "link" : - { - "commandFragments" : - [ - { - "fragment" : "-g", - "role" : "flags" - }, - { - "fragment" : "", - "role" : "flags" - }, - { - "backtrace" : 2, - "fragment" : "-ljsoncpp", - "role" : "libraries" - }, - { - "backtrace" : 2, - "fragment" : "-lctemplate", - "role" : "libraries" - }, - { - "backtrace" : 2, - "fragment" : "-lmysqlclient", - "role" : "libraries" - } - ], - "language" : "CXX" - }, - "name" : "data_server", - "nameOnDisk" : "data_server", - "paths" : - { - "build" : ".", - "source" : "." - }, - "sourceGroups" : - [ - { - "name" : "Source Files", - "sourceIndexes" : - [ - 0 - ] - } - ], - "sources" : - [ - { - "backtrace" : 1, - "compileGroupIndex" : 0, - "path" : "data_server/data_server.cc", - "sourceGroupIndex" : 0 - } - ], - "type" : "EXECUTABLE" -} diff --git a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/toolchains-v1-7286679ae278c4c667e3.json b/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/toolchains-v1-7286679ae278c4c667e3.json deleted file mode 100644 index 8fe1c5d..0000000 --- a/src/my-online-judge-master/MYOJ/build/.cmake/api/v1/reply/toolchains-v1-7286679ae278c4c667e3.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "kind" : "toolchains", - "toolchains" : - [ - { - "compiler" : - { - "id" : "GNU", - "implicit" : - { - "includeDirectories" : - [ - "/usr/lib/gcc/x86_64-linux-gnu/9/include", - "/usr/local/include", - "/usr/include/x86_64-linux-gnu", - "/usr/include" - ], - "linkDirectories" : - [ - "/usr/lib/gcc/x86_64-linux-gnu/9", - "/usr/lib/x86_64-linux-gnu", - "/usr/lib", - "/lib/x86_64-linux-gnu", - "/lib" - ], - "linkFrameworkDirectories" : [], - "linkLibraries" : - [ - "gcc", - "gcc_s", - "c", - "gcc", - "gcc_s" - ] - }, - "path" : "/usr/bin/gcc-9", - "version" : "9.5.0" - }, - "language" : "C", - "sourceFileExtensions" : - [ - "c", - "m" - ] - }, - { - "compiler" : - { - "id" : "GNU", - "implicit" : - { - "includeDirectories" : - [ - "/usr/include/c++/9", - "/usr/include/x86_64-linux-gnu/c++/9", - "/usr/include/c++/9/backward", - "/usr/lib/gcc/x86_64-linux-gnu/9/include", - "/usr/local/include", - "/usr/include/x86_64-linux-gnu", - "/usr/include" - ], - "linkDirectories" : - [ - "/usr/lib/gcc/x86_64-linux-gnu/9", - "/usr/lib/x86_64-linux-gnu", - "/usr/lib", - "/lib/x86_64-linux-gnu", - "/lib" - ], - "linkFrameworkDirectories" : [], - "linkLibraries" : - [ - "stdc++", - "m", - "gcc_s", - "gcc", - "c", - "gcc_s", - "gcc" - ] - }, - "path" : "/usr/bin/g++-9", - "version" : "9.5.0" - }, - "language" : "CXX", - "sourceFileExtensions" : - [ - "C", - "M", - "c++", - "cc", - "cpp", - "cxx", - "mm", - "mpp", - "CPP", - "ixx", - "cppm" - ] - } - ], - "version" : - { - "major" : 1, - "minor" : 0 - } -} diff --git a/src/my-online-judge-master/MYOJ/build/CMakeCache.txt b/src/my-online-judge-master/MYOJ/build/CMakeCache.txt deleted file mode 100644 index 6088bc6..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeCache.txt +++ /dev/null @@ -1,368 +0,0 @@ -# This is the CMakeCache file. -# For build in directory: /home/zzy1/2024/my-online-judge/MYOJ/build -# It was generated by CMake: /usr/bin/cmake -# You can edit this file to change values found and used by cmake. -# If you do not want to change any of the values, simply exit the editor. -# If you do want to change a value, simply edit, save, and exit the editor. -# The syntax for the file is as follows: -# KEY:TYPE=VALUE -# KEY is the name of a variable in the cache. -# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. -# VALUE is the current value for the KEY. - -######################## -# EXTERNAL cache entries -######################## - -//Path to a program. -CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line - -//Path to a program. -CMAKE_AR:FILEPATH=/usr/bin/ar - -//No help, variable specified on the command line. -CMAKE_BUILD_TYPE:STRING=Debug - -//Enable/Disable color output during build. -CMAKE_COLOR_MAKEFILE:BOOL=ON - -//No help, variable specified on the command line. -CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-9 - -//A wrapper around 'ar' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-9 - -//A wrapper around 'ranlib' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-9 - -//Flags used by the CXX compiler during all build types. -CMAKE_CXX_FLAGS:STRING= - -//Flags used by the CXX compiler during DEBUG builds. -CMAKE_CXX_FLAGS_DEBUG:STRING=-g - -//Flags used by the CXX compiler during MINSIZEREL builds. -CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG - -//Flags used by the CXX compiler during RELEASE builds. -CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG - -//Flags used by the CXX compiler during RELWITHDEBINFO builds. -CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG - -//No help, variable specified on the command line. -CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-9 - -//A wrapper around 'ar' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-9 - -//A wrapper around 'ranlib' adding the appropriate '--plugin' option -// for the GCC compiler -CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-9 - -//Flags used by the C compiler during all build types. -CMAKE_C_FLAGS:STRING= - -//Flags used by the C compiler during DEBUG builds. -CMAKE_C_FLAGS_DEBUG:STRING=-g - -//Flags used by the C compiler during MINSIZEREL builds. -CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG - -//Flags used by the C compiler during RELEASE builds. -CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG - -//Flags used by the C compiler during RELWITHDEBINFO builds. -CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG - -//Path to a program. -CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND - -//Flags used by the linker during all build types. -CMAKE_EXE_LINKER_FLAGS:STRING= - -//Flags used by the linker during DEBUG builds. -CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during MINSIZEREL builds. -CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during RELEASE builds. -CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during RELWITHDEBINFO builds. -CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//No help, variable specified on the command line. -CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE - -//Install path prefix, prepended onto install directories. -CMAKE_INSTALL_PREFIX:PATH=/usr/local - -//Path to a program. -CMAKE_LINKER:FILEPATH=/usr/bin/ld - -//Path to a program. -CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake - -//Flags used by the linker during the creation of modules during -// all build types. -CMAKE_MODULE_LINKER_FLAGS:STRING= - -//Flags used by the linker during the creation of modules during -// DEBUG builds. -CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during the creation of modules during -// MINSIZEREL builds. -CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during the creation of modules during -// RELEASE builds. -CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during the creation of modules during -// RELWITHDEBINFO builds. -CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//Path to a program. -CMAKE_NM:FILEPATH=/usr/bin/nm - -//Path to a program. -CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy - -//Path to a program. -CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump - -//Value Computed by CMake -CMAKE_PROJECT_DESCRIPTION:STATIC= - -//Value Computed by CMake -CMAKE_PROJECT_HOMEPAGE_URL:STATIC= - -//Value Computed by CMake -CMAKE_PROJECT_NAME:STATIC=MYOJ - -//Path to a program. -CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib - -//Path to a program. -CMAKE_READELF:FILEPATH=/usr/bin/readelf - -//Flags used by the linker during the creation of shared libraries -// during all build types. -CMAKE_SHARED_LINKER_FLAGS:STRING= - -//Flags used by the linker during the creation of shared libraries -// during DEBUG builds. -CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during the creation of shared libraries -// during MINSIZEREL builds. -CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during the creation of shared libraries -// during RELEASE builds. -CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during the creation of shared libraries -// during RELWITHDEBINFO builds. -CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//If set, runtime paths are not added when installing shared libraries, -// but are added when building. -CMAKE_SKIP_INSTALL_RPATH:BOOL=NO - -//If set, runtime paths are not added when using shared libraries. -CMAKE_SKIP_RPATH:BOOL=NO - -//Flags used by the linker during the creation of static libraries -// during all build types. -CMAKE_STATIC_LINKER_FLAGS:STRING= - -//Flags used by the linker during the creation of static libraries -// during DEBUG builds. -CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= - -//Flags used by the linker during the creation of static libraries -// during MINSIZEREL builds. -CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= - -//Flags used by the linker during the creation of static libraries -// during RELEASE builds. -CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= - -//Flags used by the linker during the creation of static libraries -// during RELWITHDEBINFO builds. -CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= - -//Path to a program. -CMAKE_STRIP:FILEPATH=/usr/bin/strip - -//If this value is on, makefiles will be generated without the -// .SILENT directive, and all commands will be echoed to the console -// during the make. This is useful for debugging only. With Visual -// Studio IDE projects all commands are done without /nologo. -CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE - -//Value Computed by CMake -MYOJ_BINARY_DIR:STATIC=/home/zzy1/2024/my-online-judge/MYOJ/build - -//Value Computed by CMake -MYOJ_IS_TOP_LEVEL:STATIC=ON - -//Value Computed by CMake -MYOJ_SOURCE_DIR:STATIC=/home/zzy1/2024/my-online-judge/MYOJ - - -######################## -# INTERNAL cache entries -######################## - -//ADVANCED property for variable: CMAKE_ADDR2LINE -CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_AR -CMAKE_AR-ADVANCED:INTERNAL=1 -//This is the directory where this CMakeCache.txt was created -CMAKE_CACHEFILE_DIR:INTERNAL=/home/zzy1/2024/my-online-judge/MYOJ/build -//Major version of cmake used to create the current loaded cache -CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 -//Minor version of cmake used to create the current loaded cache -CMAKE_CACHE_MINOR_VERSION:INTERNAL=22 -//Patch version of cmake used to create the current loaded cache -CMAKE_CACHE_PATCH_VERSION:INTERNAL=1 -//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE -CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 -//Path to CMake executable. -CMAKE_COMMAND:INTERNAL=/usr/bin/cmake -//Path to cpack program executable. -CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack -//Path to ctest program executable. -CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest -//ADVANCED property for variable: CMAKE_CXX_COMPILER -CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR -CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB -CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS -CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG -CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL -CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE -CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO -CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER -CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER_AR -CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB -CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS -CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG -CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL -CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE -CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO -CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_DLLTOOL -CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 -//Executable file format -CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS -CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG -CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL -CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE -CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS -CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 -//Name of external makefile project generator. -CMAKE_EXTRA_GENERATOR:INTERNAL= -//Name of generator. -CMAKE_GENERATOR:INTERNAL=Unix Makefiles -//Generator instance identifier. -CMAKE_GENERATOR_INSTANCE:INTERNAL= -//Name of generator platform. -CMAKE_GENERATOR_PLATFORM:INTERNAL= -//Name of generator toolset. -CMAKE_GENERATOR_TOOLSET:INTERNAL= -//Source directory with the top level CMakeLists.txt file for this -// project -CMAKE_HOME_DIRECTORY:INTERNAL=/home/zzy1/2024/my-online-judge/MYOJ -//Install .so files without execute permission. -CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 -//ADVANCED property for variable: CMAKE_LINKER -CMAKE_LINKER-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MAKE_PROGRAM -CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS -CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG -CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL -CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE -CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_NM -CMAKE_NM-ADVANCED:INTERNAL=1 -//number of local generators -CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 -//ADVANCED property for variable: CMAKE_OBJCOPY -CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_OBJDUMP -CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 -//Platform information initialized -CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_RANLIB -CMAKE_RANLIB-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_READELF -CMAKE_READELF-ADVANCED:INTERNAL=1 -//Path to CMake installation. -CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS -CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG -CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL -CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE -CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH -CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_SKIP_RPATH -CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS -CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG -CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL -CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE -CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO -CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 -//ADVANCED property for variable: CMAKE_STRIP -CMAKE_STRIP-ADVANCED:INTERNAL=1 -//uname command -CMAKE_UNAME:INTERNAL=/usr/bin/uname -//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE -CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCCompiler.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCCompiler.cmake deleted file mode 100644 index 67803bf..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCCompiler.cmake +++ /dev/null @@ -1,72 +0,0 @@ -set(CMAKE_C_COMPILER "/usr/bin/gcc-9") -set(CMAKE_C_COMPILER_ARG1 "") -set(CMAKE_C_COMPILER_ID "GNU") -set(CMAKE_C_COMPILER_VERSION "9.5.0") -set(CMAKE_C_COMPILER_VERSION_INTERNAL "") -set(CMAKE_C_COMPILER_WRAPPER "") -set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17") -set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON") -set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23") -set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") -set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") -set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") -set(CMAKE_C17_COMPILE_FEATURES "c_std_17") -set(CMAKE_C23_COMPILE_FEATURES "c_std_23") - -set(CMAKE_C_PLATFORM_ID "Linux") -set(CMAKE_C_SIMULATE_ID "") -set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") -set(CMAKE_C_SIMULATE_VERSION "") - - - - -set(CMAKE_AR "/usr/bin/ar") -set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-9") -set(CMAKE_RANLIB "/usr/bin/ranlib") -set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-9") -set(CMAKE_LINKER "/usr/bin/ld") -set(CMAKE_MT "") -set(CMAKE_COMPILER_IS_GNUCC 1) -set(CMAKE_C_COMPILER_LOADED 1) -set(CMAKE_C_COMPILER_WORKS TRUE) -set(CMAKE_C_ABI_COMPILED TRUE) - -set(CMAKE_C_COMPILER_ENV_VAR "CC") - -set(CMAKE_C_COMPILER_ID_RUN 1) -set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) -set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) -set(CMAKE_C_LINKER_PREFERENCE 10) - -# Save compiler ABI information. -set(CMAKE_C_SIZEOF_DATA_PTR "8") -set(CMAKE_C_COMPILER_ABI "ELF") -set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") -set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") - -if(CMAKE_C_SIZEOF_DATA_PTR) - set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") -endif() - -if(CMAKE_C_COMPILER_ABI) - set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") -endif() - -if(CMAKE_C_LIBRARY_ARCHITECTURE) - set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") -endif() - -set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") -if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) - set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") -endif() - - - - - -set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include") -set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") -set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") -set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake deleted file mode 100644 index 9bfbfeb..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake +++ /dev/null @@ -1,83 +0,0 @@ -set(CMAKE_CXX_COMPILER "/usr/bin/g++-9") -set(CMAKE_CXX_COMPILER_ARG1 "") -set(CMAKE_CXX_COMPILER_ID "GNU") -set(CMAKE_CXX_COMPILER_VERSION "9.5.0") -set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") -set(CMAKE_CXX_COMPILER_WRAPPER "") -set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") -set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON") -set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20") -set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") -set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") -set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") -set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") -set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20") -set(CMAKE_CXX23_COMPILE_FEATURES "") - -set(CMAKE_CXX_PLATFORM_ID "Linux") -set(CMAKE_CXX_SIMULATE_ID "") -set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "") -set(CMAKE_CXX_SIMULATE_VERSION "") - - - - -set(CMAKE_AR "/usr/bin/ar") -set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-9") -set(CMAKE_RANLIB "/usr/bin/ranlib") -set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-9") -set(CMAKE_LINKER "/usr/bin/ld") -set(CMAKE_MT "") -set(CMAKE_COMPILER_IS_GNUCXX 1) -set(CMAKE_CXX_COMPILER_LOADED 1) -set(CMAKE_CXX_COMPILER_WORKS TRUE) -set(CMAKE_CXX_ABI_COMPILED TRUE) - -set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") - -set(CMAKE_CXX_COMPILER_ID_RUN 1) -set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm) -set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) - -foreach (lang C OBJC OBJCXX) - if (CMAKE_${lang}_COMPILER_ID_RUN) - foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) - list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) - endforeach() - endif() -endforeach() - -set(CMAKE_CXX_LINKER_PREFERENCE 30) -set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) - -# Save compiler ABI information. -set(CMAKE_CXX_SIZEOF_DATA_PTR "8") -set(CMAKE_CXX_COMPILER_ABI "ELF") -set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN") -set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") - -if(CMAKE_CXX_SIZEOF_DATA_PTR) - set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") -endif() - -if(CMAKE_CXX_COMPILER_ABI) - set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") -endif() - -if(CMAKE_CXX_LIBRARY_ARCHITECTURE) - set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") -endif() - -set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") -if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) - set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") -endif() - - - - - -set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/9;/usr/include/x86_64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include") -set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") -set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") -set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_C.bin b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_C.bin deleted file mode 100644 index e3564cf..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_C.bin and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin deleted file mode 100644 index 5821884..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeSystem.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeSystem.cmake deleted file mode 100644 index d217f6f..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CMakeSystem.cmake +++ /dev/null @@ -1,15 +0,0 @@ -set(CMAKE_HOST_SYSTEM "Linux-5.15.0-102-generic") -set(CMAKE_HOST_SYSTEM_NAME "Linux") -set(CMAKE_HOST_SYSTEM_VERSION "5.15.0-102-generic") -set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") - - - -set(CMAKE_SYSTEM "Linux-5.15.0-102-generic") -set(CMAKE_SYSTEM_NAME "Linux") -set(CMAKE_SYSTEM_VERSION "5.15.0-102-generic") -set(CMAKE_SYSTEM_PROCESSOR "x86_64") - -set(CMAKE_CROSSCOMPILING "FALSE") - -set(CMAKE_SYSTEM_LOADED 1) diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c deleted file mode 100644 index 41b99d7..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/CMakeCCompilerId.c +++ /dev/null @@ -1,803 +0,0 @@ -#ifdef __cplusplus -# error "A C++ compiler has been selected for C." -#endif - -#if defined(__18CXX) -# define ID_VOID_MAIN -#endif -#if defined(__CLASSIC_C__) -/* cv-qualifiers did not exist in K&R C */ -# define const -# define volatile -#endif - -#if !defined(__has_include) -/* If the compiler does not have __has_include, pretend the answer is - always no. */ -# define __has_include(x) 0 -#endif - - -/* Version number components: V=Version, R=Revision, P=Patch - Version date components: YYYY=Year, MM=Month, DD=Day */ - -#if defined(__INTEL_COMPILER) || defined(__ICC) -# define COMPILER_ID "Intel" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# if defined(__GNUC__) -# define SIMULATE_ID "GNU" -# endif - /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later, - except that a few beta releases use the old format with V=2021. */ -# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111 -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) -# if defined(__INTEL_COMPILER_UPDATE) -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) -# else -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) -# endif -# else -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE) - /* The third version component from --version is an update index, - but no macro is provided for it. */ -# define COMPILER_VERSION_PATCH DEC(0) -# endif -# if defined(__INTEL_COMPILER_BUILD_DATE) - /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ -# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) -# endif -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# if defined(__GNUC__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) -# elif defined(__GNUG__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) -# endif -# if defined(__GNUC_MINOR__) -# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER) -# define COMPILER_ID "IntelLLVM" -#if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -#endif -#if defined(__GNUC__) -# define SIMULATE_ID "GNU" -#endif -/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and - * later. Look for 6 digit vs. 8 digit version number to decide encoding. - * VVVV is no smaller than the current year when a version is released. - */ -#if __INTEL_LLVM_COMPILER < 1000000L -# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10) -#else -# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000) -# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100) -#endif -#if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -#endif -#if defined(__GNUC__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) -#elif defined(__GNUG__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) -#endif -#if defined(__GNUC_MINOR__) -# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) -#endif -#if defined(__GNUC_PATCHLEVEL__) -# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -#endif - -#elif defined(__PATHCC__) -# define COMPILER_ID "PathScale" -# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) -# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) -# if defined(__PATHCC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) -# endif - -#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) -# define COMPILER_ID "Embarcadero" -# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) -# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) -# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) - -#elif defined(__BORLANDC__) -# define COMPILER_ID "Borland" - /* __BORLANDC__ = 0xVRR */ -# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) -# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) - -#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 -# define COMPILER_ID "Watcom" - /* __WATCOMC__ = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__WATCOMC__) -# define COMPILER_ID "OpenWatcom" - /* __WATCOMC__ = VVRP + 1100 */ -# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__SUNPRO_C) -# define COMPILER_ID "SunPro" -# if __SUNPRO_C >= 0x5100 - /* __SUNPRO_C = 0xVRRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) -# else - /* __SUNPRO_CC = 0xVRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) -# endif - -#elif defined(__HP_cc) -# define COMPILER_ID "HP" - /* __HP_cc = VVRRPP */ -# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) -# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) - -#elif defined(__DECC) -# define COMPILER_ID "Compaq" - /* __DECC_VER = VVRRTPPPP */ -# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) -# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) -# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) - -#elif defined(__IBMC__) && defined(__COMPILER_VER__) -# define COMPILER_ID "zOS" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__ibmxl__) && defined(__clang__) -# define COMPILER_ID "XLClang" -# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) -# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) -# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) -# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) - - -#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 -# define COMPILER_ID "XL" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 -# define COMPILER_ID "VisualAge" - /* __IBMC__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) - -#elif defined(__NVCOMPILER) -# define COMPILER_ID "NVHPC" -# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__) -# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__) -# if defined(__NVCOMPILER_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__) -# endif - -#elif defined(__PGI) -# define COMPILER_ID "PGI" -# define COMPILER_VERSION_MAJOR DEC(__PGIC__) -# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) -# if defined(__PGIC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) -# endif - -#elif defined(_CRAYC) -# define COMPILER_ID "Cray" -# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) -# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) - -#elif defined(__TI_COMPILER_VERSION__) -# define COMPILER_ID "TI" - /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ -# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) -# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) -# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) - -#elif defined(__CLANG_FUJITSU) -# define COMPILER_ID "FujitsuClang" -# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) -# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) -# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) -# define COMPILER_VERSION_INTERNAL_STR __clang_version__ - - -#elif defined(__FUJITSU) -# define COMPILER_ID "Fujitsu" -# if defined(__FCC_version__) -# define COMPILER_VERSION __FCC_version__ -# elif defined(__FCC_major__) -# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) -# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) -# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) -# endif -# if defined(__fcc_version) -# define COMPILER_VERSION_INTERNAL DEC(__fcc_version) -# elif defined(__FCC_VERSION) -# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION) -# endif - - -#elif defined(__ghs__) -# define COMPILER_ID "GHS" -/* __GHS_VERSION_NUMBER = VVVVRP */ -# ifdef __GHS_VERSION_NUMBER -# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) -# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) -# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) -# endif - -#elif defined(__TINYC__) -# define COMPILER_ID "TinyCC" - -#elif defined(__BCC__) -# define COMPILER_ID "Bruce" - -#elif defined(__SCO_VERSION__) -# define COMPILER_ID "SCO" - -#elif defined(__ARMCC_VERSION) && !defined(__clang__) -# define COMPILER_ID "ARMCC" -#if __ARMCC_VERSION >= 1000000 - /* __ARMCC_VERSION = VRRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#else - /* __ARMCC_VERSION = VRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#endif - - -#elif defined(__clang__) && defined(__apple_build_version__) -# define COMPILER_ID "AppleClang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) - -#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) -# define COMPILER_ID "ARMClang" - # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) -# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) - -#elif defined(__clang__) -# define COMPILER_ID "Clang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__GNUC__) -# define COMPILER_ID "GNU" -# define COMPILER_VERSION_MAJOR DEC(__GNUC__) -# if defined(__GNUC_MINOR__) -# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif defined(_MSC_VER) -# define COMPILER_ID "MSVC" - /* _MSC_VER = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) -# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) -# if defined(_MSC_FULL_VER) -# if _MSC_VER >= 1400 - /* _MSC_FULL_VER = VVRRPPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) -# else - /* _MSC_FULL_VER = VVRRPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) -# endif -# endif -# if defined(_MSC_BUILD) -# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) -# endif - -#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) -# define COMPILER_ID "ADSP" -#if defined(__VISUALDSPVERSION__) - /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ -# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) -# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) -#endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# define COMPILER_ID "IAR" -# if defined(__VER__) && defined(__ICCARM__) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) -# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) -# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__)) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) -# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) -# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# endif - -#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) -# define COMPILER_ID "SDCC" -# if defined(__SDCC_VERSION_MAJOR) -# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) -# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) -# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) -# else - /* SDCC = VRP */ -# define COMPILER_VERSION_MAJOR DEC(SDCC/100) -# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) -# define COMPILER_VERSION_PATCH DEC(SDCC % 10) -# endif - - -/* These compilers are either not known or too old to define an - identification macro. Try to identify the platform and guess that - it is the native compiler. */ -#elif defined(__hpux) || defined(__hpua) -# define COMPILER_ID "HP" - -#else /* unknown compiler */ -# define COMPILER_ID "" -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; -#ifdef SIMULATE_ID -char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; -#endif - -#ifdef __QNXNTO__ -char const* qnxnto = "INFO" ":" "qnxnto[]"; -#endif - -#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) -char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; -#endif - -#define STRINGIFY_HELPER(X) #X -#define STRINGIFY(X) STRINGIFY_HELPER(X) - -/* Identify known platforms by name. */ -#if defined(__linux) || defined(__linux__) || defined(linux) -# define PLATFORM_ID "Linux" - -#elif defined(__MSYS__) -# define PLATFORM_ID "MSYS" - -#elif defined(__CYGWIN__) -# define PLATFORM_ID "Cygwin" - -#elif defined(__MINGW32__) -# define PLATFORM_ID "MinGW" - -#elif defined(__APPLE__) -# define PLATFORM_ID "Darwin" - -#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -# define PLATFORM_ID "Windows" - -#elif defined(__FreeBSD__) || defined(__FreeBSD) -# define PLATFORM_ID "FreeBSD" - -#elif defined(__NetBSD__) || defined(__NetBSD) -# define PLATFORM_ID "NetBSD" - -#elif defined(__OpenBSD__) || defined(__OPENBSD) -# define PLATFORM_ID "OpenBSD" - -#elif defined(__sun) || defined(sun) -# define PLATFORM_ID "SunOS" - -#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) -# define PLATFORM_ID "AIX" - -#elif defined(__hpux) || defined(__hpux__) -# define PLATFORM_ID "HP-UX" - -#elif defined(__HAIKU__) -# define PLATFORM_ID "Haiku" - -#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) -# define PLATFORM_ID "BeOS" - -#elif defined(__QNX__) || defined(__QNXNTO__) -# define PLATFORM_ID "QNX" - -#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) -# define PLATFORM_ID "Tru64" - -#elif defined(__riscos) || defined(__riscos__) -# define PLATFORM_ID "RISCos" - -#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) -# define PLATFORM_ID "SINIX" - -#elif defined(__UNIX_SV__) -# define PLATFORM_ID "UNIX_SV" - -#elif defined(__bsdos__) -# define PLATFORM_ID "BSDOS" - -#elif defined(_MPRAS) || defined(MPRAS) -# define PLATFORM_ID "MP-RAS" - -#elif defined(__osf) || defined(__osf__) -# define PLATFORM_ID "OSF1" - -#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) -# define PLATFORM_ID "SCO_SV" - -#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) -# define PLATFORM_ID "ULTRIX" - -#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) -# define PLATFORM_ID "Xenix" - -#elif defined(__WATCOMC__) -# if defined(__LINUX__) -# define PLATFORM_ID "Linux" - -# elif defined(__DOS__) -# define PLATFORM_ID "DOS" - -# elif defined(__OS2__) -# define PLATFORM_ID "OS2" - -# elif defined(__WINDOWS__) -# define PLATFORM_ID "Windows3x" - -# elif defined(__VXWORKS__) -# define PLATFORM_ID "VxWorks" - -# else /* unknown platform */ -# define PLATFORM_ID -# endif - -#elif defined(__INTEGRITY) -# if defined(INT_178B) -# define PLATFORM_ID "Integrity178" - -# else /* regular Integrity */ -# define PLATFORM_ID "Integrity" -# endif - -#else /* unknown platform */ -# define PLATFORM_ID - -#endif - -/* For windows compilers MSVC and Intel we can determine - the architecture of the compiler being used. This is because - the compilers do not have flags that can change the architecture, - but rather depend on which compiler is being used -*/ -#if defined(_WIN32) && defined(_MSC_VER) -# if defined(_M_IA64) -# define ARCHITECTURE_ID "IA64" - -# elif defined(_M_ARM64EC) -# define ARCHITECTURE_ID "ARM64EC" - -# elif defined(_M_X64) || defined(_M_AMD64) -# define ARCHITECTURE_ID "x64" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# elif defined(_M_ARM64) -# define ARCHITECTURE_ID "ARM64" - -# elif defined(_M_ARM) -# if _M_ARM == 4 -# define ARCHITECTURE_ID "ARMV4I" -# elif _M_ARM == 5 -# define ARCHITECTURE_ID "ARMV5I" -# else -# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) -# endif - -# elif defined(_M_MIPS) -# define ARCHITECTURE_ID "MIPS" - -# elif defined(_M_SH) -# define ARCHITECTURE_ID "SHx" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__WATCOMC__) -# if defined(_M_I86) -# define ARCHITECTURE_ID "I86" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# if defined(__ICCARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__ICCRX__) -# define ARCHITECTURE_ID "RX" - -# elif defined(__ICCRH850__) -# define ARCHITECTURE_ID "RH850" - -# elif defined(__ICCRL78__) -# define ARCHITECTURE_ID "RL78" - -# elif defined(__ICCRISCV__) -# define ARCHITECTURE_ID "RISCV" - -# elif defined(__ICCAVR__) -# define ARCHITECTURE_ID "AVR" - -# elif defined(__ICC430__) -# define ARCHITECTURE_ID "MSP430" - -# elif defined(__ICCV850__) -# define ARCHITECTURE_ID "V850" - -# elif defined(__ICC8051__) -# define ARCHITECTURE_ID "8051" - -# elif defined(__ICCSTM8__) -# define ARCHITECTURE_ID "STM8" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__ghs__) -# if defined(__PPC64__) -# define ARCHITECTURE_ID "PPC64" - -# elif defined(__ppc__) -# define ARCHITECTURE_ID "PPC" - -# elif defined(__ARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__x86_64__) -# define ARCHITECTURE_ID "x64" - -# elif defined(__i386__) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__TI_COMPILER_VERSION__) -# if defined(__TI_ARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__MSP430__) -# define ARCHITECTURE_ID "MSP430" - -# elif defined(__TMS320C28XX__) -# define ARCHITECTURE_ID "TMS320C28x" - -# elif defined(__TMS320C6X__) || defined(_TMS320C6X) -# define ARCHITECTURE_ID "TMS320C6x" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#else -# define ARCHITECTURE_ID -#endif - -/* Convert integer to decimal digit literals. */ -#define DEC(n) \ - ('0' + (((n) / 10000000)%10)), \ - ('0' + (((n) / 1000000)%10)), \ - ('0' + (((n) / 100000)%10)), \ - ('0' + (((n) / 10000)%10)), \ - ('0' + (((n) / 1000)%10)), \ - ('0' + (((n) / 100)%10)), \ - ('0' + (((n) / 10)%10)), \ - ('0' + ((n) % 10)) - -/* Convert integer to hex digit literals. */ -#define HEX(n) \ - ('0' + ((n)>>28 & 0xF)), \ - ('0' + ((n)>>24 & 0xF)), \ - ('0' + ((n)>>20 & 0xF)), \ - ('0' + ((n)>>16 & 0xF)), \ - ('0' + ((n)>>12 & 0xF)), \ - ('0' + ((n)>>8 & 0xF)), \ - ('0' + ((n)>>4 & 0xF)), \ - ('0' + ((n) & 0xF)) - -/* Construct a string literal encoding the version number. */ -#ifdef COMPILER_VERSION -char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]"; - -/* Construct a string literal encoding the version number components. */ -#elif defined(COMPILER_VERSION_MAJOR) -char const info_version[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', - COMPILER_VERSION_MAJOR, -# ifdef COMPILER_VERSION_MINOR - '.', COMPILER_VERSION_MINOR, -# ifdef COMPILER_VERSION_PATCH - '.', COMPILER_VERSION_PATCH, -# ifdef COMPILER_VERSION_TWEAK - '.', COMPILER_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct a string literal encoding the internal version number. */ -#ifdef COMPILER_VERSION_INTERNAL -char const info_version_internal[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', - 'i','n','t','e','r','n','a','l','[', - COMPILER_VERSION_INTERNAL,']','\0'}; -#elif defined(COMPILER_VERSION_INTERNAL_STR) -char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]"; -#endif - -/* Construct a string literal encoding the version number components. */ -#ifdef SIMULATE_VERSION_MAJOR -char const info_simulate_version[] = { - 'I', 'N', 'F', 'O', ':', - 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', - SIMULATE_VERSION_MAJOR, -# ifdef SIMULATE_VERSION_MINOR - '.', SIMULATE_VERSION_MINOR, -# ifdef SIMULATE_VERSION_PATCH - '.', SIMULATE_VERSION_PATCH, -# ifdef SIMULATE_VERSION_TWEAK - '.', SIMULATE_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; -char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; - - - -#if !defined(__STDC__) && !defined(__clang__) -# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__) -# define C_VERSION "90" -# else -# define C_VERSION -# endif -#elif __STDC_VERSION__ > 201710L -# define C_VERSION "23" -#elif __STDC_VERSION__ >= 201710L -# define C_VERSION "17" -#elif __STDC_VERSION__ >= 201000L -# define C_VERSION "11" -#elif __STDC_VERSION__ >= 199901L -# define C_VERSION "99" -#else -# define C_VERSION "90" -#endif -const char* info_language_standard_default = - "INFO" ":" "standard_default[" C_VERSION "]"; - -const char* info_language_extensions_default = "INFO" ":" "extensions_default[" -/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */ -#if (defined(__clang__) || defined(__GNUC__) || \ - defined(__TI_COMPILER_VERSION__)) && \ - !defined(__STRICT_ANSI__) && !defined(_MSC_VER) - "ON" -#else - "OFF" -#endif -"]"; - -/*--------------------------------------------------------------------------*/ - -#ifdef ID_VOID_MAIN -void main() {} -#else -# if defined(__CLASSIC_C__) -int main(argc, argv) int argc; char *argv[]; -# else -int main(int argc, char* argv[]) -# endif -{ - int require = 0; - require += info_compiler[argc]; - require += info_platform[argc]; - require += info_arch[argc]; -#ifdef COMPILER_VERSION_MAJOR - require += info_version[argc]; -#endif -#ifdef COMPILER_VERSION_INTERNAL - require += info_version_internal[argc]; -#endif -#ifdef SIMULATE_ID - require += info_simulate[argc]; -#endif -#ifdef SIMULATE_VERSION_MAJOR - require += info_simulate_version[argc]; -#endif -#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) - require += info_cray[argc]; -#endif - require += info_language_standard_default[argc]; - require += info_language_extensions_default[argc]; - (void)argv; - return require; -} -#endif diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/a.out b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/a.out deleted file mode 100644 index 7426752..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/a.out and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp deleted file mode 100644 index 25c62a8..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp +++ /dev/null @@ -1,791 +0,0 @@ -/* This source file must have a .cpp extension so that all C++ compilers - recognize the extension without flags. Borland does not know .cxx for - example. */ -#ifndef __cplusplus -# error "A C compiler has been selected for C++." -#endif - -#if !defined(__has_include) -/* If the compiler does not have __has_include, pretend the answer is - always no. */ -# define __has_include(x) 0 -#endif - - -/* Version number components: V=Version, R=Revision, P=Patch - Version date components: YYYY=Year, MM=Month, DD=Day */ - -#if defined(__COMO__) -# define COMPILER_ID "Comeau" - /* __COMO_VERSION__ = VRR */ -# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) -# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) - -#elif defined(__INTEL_COMPILER) || defined(__ICC) -# define COMPILER_ID "Intel" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# if defined(__GNUC__) -# define SIMULATE_ID "GNU" -# endif - /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later, - except that a few beta releases use the old format with V=2021. */ -# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111 -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) -# if defined(__INTEL_COMPILER_UPDATE) -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) -# else -# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) -# endif -# else -# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER) -# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE) - /* The third version component from --version is an update index, - but no macro is provided for it. */ -# define COMPILER_VERSION_PATCH DEC(0) -# endif -# if defined(__INTEL_COMPILER_BUILD_DATE) - /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ -# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) -# endif -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# if defined(__GNUC__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) -# elif defined(__GNUG__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) -# endif -# if defined(__GNUC_MINOR__) -# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER) -# define COMPILER_ID "IntelLLVM" -#if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -#endif -#if defined(__GNUC__) -# define SIMULATE_ID "GNU" -#endif -/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and - * later. Look for 6 digit vs. 8 digit version number to decide encoding. - * VVVV is no smaller than the current year when a version is released. - */ -#if __INTEL_LLVM_COMPILER < 1000000L -# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100) -# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10) -#else -# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000) -# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100) -#endif -#if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -#endif -#if defined(__GNUC__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) -#elif defined(__GNUG__) -# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) -#endif -#if defined(__GNUC_MINOR__) -# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) -#endif -#if defined(__GNUC_PATCHLEVEL__) -# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -#endif - -#elif defined(__PATHCC__) -# define COMPILER_ID "PathScale" -# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) -# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) -# if defined(__PATHCC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) -# endif - -#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) -# define COMPILER_ID "Embarcadero" -# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) -# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) -# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) - -#elif defined(__BORLANDC__) -# define COMPILER_ID "Borland" - /* __BORLANDC__ = 0xVRR */ -# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) -# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) - -#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 -# define COMPILER_ID "Watcom" - /* __WATCOMC__ = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__WATCOMC__) -# define COMPILER_ID "OpenWatcom" - /* __WATCOMC__ = VVRP + 1100 */ -# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) -# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) -# if (__WATCOMC__ % 10) > 0 -# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) -# endif - -#elif defined(__SUNPRO_CC) -# define COMPILER_ID "SunPro" -# if __SUNPRO_CC >= 0x5100 - /* __SUNPRO_CC = 0xVRRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) -# else - /* __SUNPRO_CC = 0xVRP */ -# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) -# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) -# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) -# endif - -#elif defined(__HP_aCC) -# define COMPILER_ID "HP" - /* __HP_aCC = VVRRPP */ -# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) -# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) -# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) - -#elif defined(__DECCXX) -# define COMPILER_ID "Compaq" - /* __DECCXX_VER = VVRRTPPPP */ -# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) -# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) -# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) - -#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) -# define COMPILER_ID "zOS" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__ibmxl__) && defined(__clang__) -# define COMPILER_ID "XLClang" -# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) -# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) -# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) -# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) - - -#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 -# define COMPILER_ID "XL" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 -# define COMPILER_ID "VisualAge" - /* __IBMCPP__ = VRP */ -# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) -# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) -# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) - -#elif defined(__NVCOMPILER) -# define COMPILER_ID "NVHPC" -# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__) -# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__) -# if defined(__NVCOMPILER_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__) -# endif - -#elif defined(__PGI) -# define COMPILER_ID "PGI" -# define COMPILER_VERSION_MAJOR DEC(__PGIC__) -# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) -# if defined(__PGIC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) -# endif - -#elif defined(_CRAYC) -# define COMPILER_ID "Cray" -# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) -# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) - -#elif defined(__TI_COMPILER_VERSION__) -# define COMPILER_ID "TI" - /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ -# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) -# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) -# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) - -#elif defined(__CLANG_FUJITSU) -# define COMPILER_ID "FujitsuClang" -# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) -# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) -# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) -# define COMPILER_VERSION_INTERNAL_STR __clang_version__ - - -#elif defined(__FUJITSU) -# define COMPILER_ID "Fujitsu" -# if defined(__FCC_version__) -# define COMPILER_VERSION __FCC_version__ -# elif defined(__FCC_major__) -# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) -# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) -# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) -# endif -# if defined(__fcc_version) -# define COMPILER_VERSION_INTERNAL DEC(__fcc_version) -# elif defined(__FCC_VERSION) -# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION) -# endif - - -#elif defined(__ghs__) -# define COMPILER_ID "GHS" -/* __GHS_VERSION_NUMBER = VVVVRP */ -# ifdef __GHS_VERSION_NUMBER -# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) -# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) -# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) -# endif - -#elif defined(__SCO_VERSION__) -# define COMPILER_ID "SCO" - -#elif defined(__ARMCC_VERSION) && !defined(__clang__) -# define COMPILER_ID "ARMCC" -#if __ARMCC_VERSION >= 1000000 - /* __ARMCC_VERSION = VRRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#else - /* __ARMCC_VERSION = VRPPPP */ - # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) - # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) - # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) -#endif - - -#elif defined(__clang__) && defined(__apple_build_version__) -# define COMPILER_ID "AppleClang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif -# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) - -#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) -# define COMPILER_ID "ARMClang" - # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) - # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) - # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) -# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) - -#elif defined(__clang__) -# define COMPILER_ID "Clang" -# if defined(_MSC_VER) -# define SIMULATE_ID "MSVC" -# endif -# define COMPILER_VERSION_MAJOR DEC(__clang_major__) -# define COMPILER_VERSION_MINOR DEC(__clang_minor__) -# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) -# if defined(_MSC_VER) - /* _MSC_VER = VVRR */ -# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) -# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) -# endif - -#elif defined(__GNUC__) || defined(__GNUG__) -# define COMPILER_ID "GNU" -# if defined(__GNUC__) -# define COMPILER_VERSION_MAJOR DEC(__GNUC__) -# else -# define COMPILER_VERSION_MAJOR DEC(__GNUG__) -# endif -# if defined(__GNUC_MINOR__) -# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) -# endif -# if defined(__GNUC_PATCHLEVEL__) -# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) -# endif - -#elif defined(_MSC_VER) -# define COMPILER_ID "MSVC" - /* _MSC_VER = VVRR */ -# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) -# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) -# if defined(_MSC_FULL_VER) -# if _MSC_VER >= 1400 - /* _MSC_FULL_VER = VVRRPPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) -# else - /* _MSC_FULL_VER = VVRRPPPP */ -# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) -# endif -# endif -# if defined(_MSC_BUILD) -# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) -# endif - -#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) -# define COMPILER_ID "ADSP" -#if defined(__VISUALDSPVERSION__) - /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ -# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) -# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) -# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) -#endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# define COMPILER_ID "IAR" -# if defined(__VER__) && defined(__ICCARM__) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) -# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) -# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__)) -# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) -# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) -# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) -# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) -# endif - - -/* These compilers are either not known or too old to define an - identification macro. Try to identify the platform and guess that - it is the native compiler. */ -#elif defined(__hpux) || defined(__hpua) -# define COMPILER_ID "HP" - -#else /* unknown compiler */ -# define COMPILER_ID "" -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; -#ifdef SIMULATE_ID -char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; -#endif - -#ifdef __QNXNTO__ -char const* qnxnto = "INFO" ":" "qnxnto[]"; -#endif - -#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) -char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; -#endif - -#define STRINGIFY_HELPER(X) #X -#define STRINGIFY(X) STRINGIFY_HELPER(X) - -/* Identify known platforms by name. */ -#if defined(__linux) || defined(__linux__) || defined(linux) -# define PLATFORM_ID "Linux" - -#elif defined(__MSYS__) -# define PLATFORM_ID "MSYS" - -#elif defined(__CYGWIN__) -# define PLATFORM_ID "Cygwin" - -#elif defined(__MINGW32__) -# define PLATFORM_ID "MinGW" - -#elif defined(__APPLE__) -# define PLATFORM_ID "Darwin" - -#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -# define PLATFORM_ID "Windows" - -#elif defined(__FreeBSD__) || defined(__FreeBSD) -# define PLATFORM_ID "FreeBSD" - -#elif defined(__NetBSD__) || defined(__NetBSD) -# define PLATFORM_ID "NetBSD" - -#elif defined(__OpenBSD__) || defined(__OPENBSD) -# define PLATFORM_ID "OpenBSD" - -#elif defined(__sun) || defined(sun) -# define PLATFORM_ID "SunOS" - -#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) -# define PLATFORM_ID "AIX" - -#elif defined(__hpux) || defined(__hpux__) -# define PLATFORM_ID "HP-UX" - -#elif defined(__HAIKU__) -# define PLATFORM_ID "Haiku" - -#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) -# define PLATFORM_ID "BeOS" - -#elif defined(__QNX__) || defined(__QNXNTO__) -# define PLATFORM_ID "QNX" - -#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) -# define PLATFORM_ID "Tru64" - -#elif defined(__riscos) || defined(__riscos__) -# define PLATFORM_ID "RISCos" - -#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) -# define PLATFORM_ID "SINIX" - -#elif defined(__UNIX_SV__) -# define PLATFORM_ID "UNIX_SV" - -#elif defined(__bsdos__) -# define PLATFORM_ID "BSDOS" - -#elif defined(_MPRAS) || defined(MPRAS) -# define PLATFORM_ID "MP-RAS" - -#elif defined(__osf) || defined(__osf__) -# define PLATFORM_ID "OSF1" - -#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) -# define PLATFORM_ID "SCO_SV" - -#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) -# define PLATFORM_ID "ULTRIX" - -#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) -# define PLATFORM_ID "Xenix" - -#elif defined(__WATCOMC__) -# if defined(__LINUX__) -# define PLATFORM_ID "Linux" - -# elif defined(__DOS__) -# define PLATFORM_ID "DOS" - -# elif defined(__OS2__) -# define PLATFORM_ID "OS2" - -# elif defined(__WINDOWS__) -# define PLATFORM_ID "Windows3x" - -# elif defined(__VXWORKS__) -# define PLATFORM_ID "VxWorks" - -# else /* unknown platform */ -# define PLATFORM_ID -# endif - -#elif defined(__INTEGRITY) -# if defined(INT_178B) -# define PLATFORM_ID "Integrity178" - -# else /* regular Integrity */ -# define PLATFORM_ID "Integrity" -# endif - -#else /* unknown platform */ -# define PLATFORM_ID - -#endif - -/* For windows compilers MSVC and Intel we can determine - the architecture of the compiler being used. This is because - the compilers do not have flags that can change the architecture, - but rather depend on which compiler is being used -*/ -#if defined(_WIN32) && defined(_MSC_VER) -# if defined(_M_IA64) -# define ARCHITECTURE_ID "IA64" - -# elif defined(_M_ARM64EC) -# define ARCHITECTURE_ID "ARM64EC" - -# elif defined(_M_X64) || defined(_M_AMD64) -# define ARCHITECTURE_ID "x64" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# elif defined(_M_ARM64) -# define ARCHITECTURE_ID "ARM64" - -# elif defined(_M_ARM) -# if _M_ARM == 4 -# define ARCHITECTURE_ID "ARMV4I" -# elif _M_ARM == 5 -# define ARCHITECTURE_ID "ARMV5I" -# else -# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) -# endif - -# elif defined(_M_MIPS) -# define ARCHITECTURE_ID "MIPS" - -# elif defined(_M_SH) -# define ARCHITECTURE_ID "SHx" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__WATCOMC__) -# if defined(_M_I86) -# define ARCHITECTURE_ID "I86" - -# elif defined(_M_IX86) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) -# if defined(__ICCARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__ICCRX__) -# define ARCHITECTURE_ID "RX" - -# elif defined(__ICCRH850__) -# define ARCHITECTURE_ID "RH850" - -# elif defined(__ICCRL78__) -# define ARCHITECTURE_ID "RL78" - -# elif defined(__ICCRISCV__) -# define ARCHITECTURE_ID "RISCV" - -# elif defined(__ICCAVR__) -# define ARCHITECTURE_ID "AVR" - -# elif defined(__ICC430__) -# define ARCHITECTURE_ID "MSP430" - -# elif defined(__ICCV850__) -# define ARCHITECTURE_ID "V850" - -# elif defined(__ICC8051__) -# define ARCHITECTURE_ID "8051" - -# elif defined(__ICCSTM8__) -# define ARCHITECTURE_ID "STM8" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__ghs__) -# if defined(__PPC64__) -# define ARCHITECTURE_ID "PPC64" - -# elif defined(__ppc__) -# define ARCHITECTURE_ID "PPC" - -# elif defined(__ARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__x86_64__) -# define ARCHITECTURE_ID "x64" - -# elif defined(__i386__) -# define ARCHITECTURE_ID "X86" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#elif defined(__TI_COMPILER_VERSION__) -# if defined(__TI_ARM__) -# define ARCHITECTURE_ID "ARM" - -# elif defined(__MSP430__) -# define ARCHITECTURE_ID "MSP430" - -# elif defined(__TMS320C28XX__) -# define ARCHITECTURE_ID "TMS320C28x" - -# elif defined(__TMS320C6X__) || defined(_TMS320C6X) -# define ARCHITECTURE_ID "TMS320C6x" - -# else /* unknown architecture */ -# define ARCHITECTURE_ID "" -# endif - -#else -# define ARCHITECTURE_ID -#endif - -/* Convert integer to decimal digit literals. */ -#define DEC(n) \ - ('0' + (((n) / 10000000)%10)), \ - ('0' + (((n) / 1000000)%10)), \ - ('0' + (((n) / 100000)%10)), \ - ('0' + (((n) / 10000)%10)), \ - ('0' + (((n) / 1000)%10)), \ - ('0' + (((n) / 100)%10)), \ - ('0' + (((n) / 10)%10)), \ - ('0' + ((n) % 10)) - -/* Convert integer to hex digit literals. */ -#define HEX(n) \ - ('0' + ((n)>>28 & 0xF)), \ - ('0' + ((n)>>24 & 0xF)), \ - ('0' + ((n)>>20 & 0xF)), \ - ('0' + ((n)>>16 & 0xF)), \ - ('0' + ((n)>>12 & 0xF)), \ - ('0' + ((n)>>8 & 0xF)), \ - ('0' + ((n)>>4 & 0xF)), \ - ('0' + ((n) & 0xF)) - -/* Construct a string literal encoding the version number. */ -#ifdef COMPILER_VERSION -char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]"; - -/* Construct a string literal encoding the version number components. */ -#elif defined(COMPILER_VERSION_MAJOR) -char const info_version[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', - COMPILER_VERSION_MAJOR, -# ifdef COMPILER_VERSION_MINOR - '.', COMPILER_VERSION_MINOR, -# ifdef COMPILER_VERSION_PATCH - '.', COMPILER_VERSION_PATCH, -# ifdef COMPILER_VERSION_TWEAK - '.', COMPILER_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct a string literal encoding the internal version number. */ -#ifdef COMPILER_VERSION_INTERNAL -char const info_version_internal[] = { - 'I', 'N', 'F', 'O', ':', - 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', - 'i','n','t','e','r','n','a','l','[', - COMPILER_VERSION_INTERNAL,']','\0'}; -#elif defined(COMPILER_VERSION_INTERNAL_STR) -char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]"; -#endif - -/* Construct a string literal encoding the version number components. */ -#ifdef SIMULATE_VERSION_MAJOR -char const info_simulate_version[] = { - 'I', 'N', 'F', 'O', ':', - 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', - SIMULATE_VERSION_MAJOR, -# ifdef SIMULATE_VERSION_MINOR - '.', SIMULATE_VERSION_MINOR, -# ifdef SIMULATE_VERSION_PATCH - '.', SIMULATE_VERSION_PATCH, -# ifdef SIMULATE_VERSION_TWEAK - '.', SIMULATE_VERSION_TWEAK, -# endif -# endif -# endif - ']','\0'}; -#endif - -/* Construct the string literal in pieces to prevent the source from - getting matched. Store it in a pointer rather than an array - because some compilers will just produce instructions to fill the - array rather than assigning a pointer to a static array. */ -char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; -char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; - - - -#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L -# if defined(__INTEL_CXX11_MODE__) -# if defined(__cpp_aggregate_nsdmi) -# define CXX_STD 201402L -# else -# define CXX_STD 201103L -# endif -# else -# define CXX_STD 199711L -# endif -#elif defined(_MSC_VER) && defined(_MSVC_LANG) -# define CXX_STD _MSVC_LANG -#else -# define CXX_STD __cplusplus -#endif - -const char* info_language_standard_default = "INFO" ":" "standard_default[" -#if CXX_STD > 202002L - "23" -#elif CXX_STD > 201703L - "20" -#elif CXX_STD >= 201703L - "17" -#elif CXX_STD >= 201402L - "14" -#elif CXX_STD >= 201103L - "11" -#else - "98" -#endif -"]"; - -const char* info_language_extensions_default = "INFO" ":" "extensions_default[" -/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */ -#if (defined(__clang__) || defined(__GNUC__) || \ - defined(__TI_COMPILER_VERSION__)) && \ - !defined(__STRICT_ANSI__) && !defined(_MSC_VER) - "ON" -#else - "OFF" -#endif -"]"; - -/*--------------------------------------------------------------------------*/ - -int main(int argc, char* argv[]) -{ - int require = 0; - require += info_compiler[argc]; - require += info_platform[argc]; -#ifdef COMPILER_VERSION_MAJOR - require += info_version[argc]; -#endif -#ifdef COMPILER_VERSION_INTERNAL - require += info_version_internal[argc]; -#endif -#ifdef SIMULATE_ID - require += info_simulate[argc]; -#endif -#ifdef SIMULATE_VERSION_MAJOR - require += info_simulate_version[argc]; -#endif -#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) - require += info_cray[argc]; -#endif - require += info_language_standard_default[argc]; - require += info_language_extensions_default[argc]; - (void)argv; - return require; -} diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out b/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out deleted file mode 100644 index ccefb1c..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeDirectoryInformation.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeDirectoryInformation.cmake deleted file mode 100644 index f15aed8..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeDirectoryInformation.cmake +++ /dev/null @@ -1,16 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/zzy1/2024/my-online-judge/MYOJ") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/zzy1/2024/my-online-judge/MYOJ/build") - -# Force unix paths in dependencies. -set(CMAKE_FORCE_UNIX_PATHS 1) - - -# The C and CXX include file regular expressions for this directory. -set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") -set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") -set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) -set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeOutput.log b/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeOutput.log deleted file mode 100644 index d1c06a8..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/CMakeOutput.log +++ /dev/null @@ -1,441 +0,0 @@ -The system is: Linux - 5.15.0-102-generic - x86_64 -Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. -Compiler: /usr/bin/gcc-9 -Build flags: -Id flags: - -The output was: -0 - - -Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" - -The C compiler identification is GNU, found in "/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/3.22.1/CompilerIdC/a.out" - -Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. -Compiler: /usr/bin/g++-9 -Build flags: -Id flags: - -The output was: -0 - - -Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" - -The CXX compiler identification is GNU, found in "/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out" - -Detecting C compiler ABI info compiled with the following output: -Change Dir: /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp - -Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_87dbc/fast && /usr/bin/gmake -f CMakeFiles/cmTC_87dbc.dir/build.make CMakeFiles/cmTC_87dbc.dir/build -gmake[1]: Entering directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -/usr/bin/gcc-9 -v -o CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c -Using built-in specs. -COLLECT_GCC=/usr/bin/gcc-9 -OFFLOAD_TARGET_NAMES=nvptx-none:hsa -OFFLOAD_TARGET_DEFAULT=1 -Target: x86_64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex -Thread model: posix -gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' - /usr/lib/gcc/x86_64-linux-gnu/9/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/cc1VMYF9.s -GNU C17 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu) - compiled by GNU C version 9.5.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP - -GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 -ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" -ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed" -ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include" -#include "..." search starts here: -#include <...> search starts here: - /usr/lib/gcc/x86_64-linux-gnu/9/include - /usr/local/include - /usr/include/x86_64-linux-gnu - /usr/include -End of search list. -GNU C17 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu) - compiled by GNU C version 9.5.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP - -GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 -Compiler executable checksum: c06b418b6d49939739c4e6ad993cce11 -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' - as -v --64 -o CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o /tmp/cc1VMYF9.s -GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38 -COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' -Linking C executable cmTC_87dbc -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_87dbc.dir/link.txt --verbose=1 -/usr/bin/gcc-9 -v CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -o cmTC_87dbc -Using built-in specs. -COLLECT_GCC=/usr/bin/gcc-9 -COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -OFFLOAD_TARGET_NAMES=nvptx-none:hsa -OFFLOAD_TARGET_DEFAULT=1 -Target: x86_64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex -Thread model: posix -gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) -COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_87dbc' '-mtune=generic' '-march=x86-64' - /usr/lib/gcc/x86_64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccdiFlYn.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_87dbc /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_87dbc' '-mtune=generic' '-march=x86-64' -gmake[1]: Leaving directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp' - - - -Parsed C implicit include dir info from above output: rv=done - found start of include info - found start of implicit include info - add: [/usr/lib/gcc/x86_64-linux-gnu/9/include] - add: [/usr/local/include] - add: [/usr/include/x86_64-linux-gnu] - add: [/usr/include] - end of search list found - collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/9/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/9/include] - collapse include dir [/usr/local/include] ==> [/usr/local/include] - collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] - collapse include dir [/usr/include] ==> [/usr/include] - implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include] - - -Parsed C implicit link information from above output: - link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] - ignore line: [Change Dir: /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp] - ignore line: [] - ignore line: [Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_87dbc/fast && /usr/bin/gmake -f CMakeFiles/cmTC_87dbc.dir/build.make CMakeFiles/cmTC_87dbc.dir/build] - ignore line: [gmake[1]: Entering directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp'] - ignore line: [Building C object CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o] - ignore line: [/usr/bin/gcc-9 -v -o CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/gcc-9] - ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:hsa] - ignore line: [OFFLOAD_TARGET_DEFAULT=1] - ignore line: [Target: x86_64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] - ignore line: [Thread model: posix] - ignore line: [gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) ] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] - ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/9/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/share/cmake-3.22/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/cc1VMYF9.s] - ignore line: [GNU C17 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu)] - ignore line: [ compiled by GNU C version 9.5.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP] - ignore line: [] - ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] - ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] - ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed"] - ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include"] - ignore line: [#include "..." search starts here:] - ignore line: [#include <...> search starts here:] - ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/9/include] - ignore line: [ /usr/local/include] - ignore line: [ /usr/include/x86_64-linux-gnu] - ignore line: [ /usr/include] - ignore line: [End of search list.] - ignore line: [GNU C17 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu)] - ignore line: [ compiled by GNU C version 9.5.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP] - ignore line: [] - ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] - ignore line: [Compiler executable checksum: c06b418b6d49939739c4e6ad993cce11] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] - ignore line: [ as -v --64 -o CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o /tmp/cc1VMYF9.s] - ignore line: [GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38] - ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] - ignore line: [Linking C executable cmTC_87dbc] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_87dbc.dir/link.txt --verbose=1] - ignore line: [/usr/bin/gcc-9 -v CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -o cmTC_87dbc ] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/gcc-9] - ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper] - ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:hsa] - ignore line: [OFFLOAD_TARGET_DEFAULT=1] - ignore line: [Target: x86_64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] - ignore line: [Thread model: posix] - ignore line: [gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) ] - ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_87dbc' '-mtune=generic' '-march=x86-64'] - link line: [ /usr/lib/gcc/x86_64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccdiFlYn.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_87dbc /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/collect2] ==> ignore - arg [-plugin] ==> ignore - arg [/usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so] ==> ignore - arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper] ==> ignore - arg [-plugin-opt=-fresolution=/tmp/ccdiFlYn.res] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [--build-id] ==> ignore - arg [--eh-frame-hdr] ==> ignore - arg [-m] ==> ignore - arg [elf_x86_64] ==> ignore - arg [--hash-style=gnu] ==> ignore - arg [--as-needed] ==> ignore - arg [-dynamic-linker] ==> ignore - arg [/lib64/ld-linux-x86-64.so.2] ==> ignore - arg [-pie] ==> ignore - arg [-znow] ==> ignore - arg [-zrelro] ==> ignore - arg [-o] ==> ignore - arg [cmTC_87dbc] ==> ignore - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] - arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] - arg [-L/lib/../lib] ==> dir [/lib/../lib] - arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] - arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../..] - arg [CMakeFiles/cmTC_87dbc.dir/CMakeCCompilerABI.c.o] ==> ignore - arg [-lgcc] ==> lib [gcc] - arg [--push-state] ==> ignore - arg [--as-needed] ==> ignore - arg [-lgcc_s] ==> lib [gcc_s] - arg [--pop-state] ==> ignore - arg [-lc] ==> lib [c] - arg [-lgcc] ==> lib [gcc] - arg [--push-state] ==> ignore - arg [--as-needed] ==> ignore - arg [-lgcc_s] ==> lib [gcc_s] - arg [--pop-state] ==> ignore - arg [/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] ==> [/usr/lib/x86_64-linux-gnu/Scrt1.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] ==> [/usr/lib/x86_64-linux-gnu/crti.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] ==> [/usr/lib/x86_64-linux-gnu/crtn.o] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9] ==> [/usr/lib/gcc/x86_64-linux-gnu/9] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] ==> [/usr/lib] - collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] - collapse library dir [/lib/../lib] ==> [/lib] - collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] - collapse library dir [/usr/lib/../lib] ==> [/usr/lib] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../..] ==> [/usr/lib] - implicit libs: [gcc;gcc_s;c;gcc;gcc_s] - implicit objs: [/usr/lib/x86_64-linux-gnu/Scrt1.o;/usr/lib/x86_64-linux-gnu/crti.o;/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o;/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o;/usr/lib/x86_64-linux-gnu/crtn.o] - implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] - implicit fwks: [] - - -Detecting CXX compiler ABI info compiled with the following output: -Change Dir: /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp - -Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3be0a/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3be0a.dir/build.make CMakeFiles/cmTC_3be0a.dir/build -gmake[1]: Entering directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -/usr/bin/g++-9 -v -o CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -Using built-in specs. -COLLECT_GCC=/usr/bin/g++-9 -OFFLOAD_TARGET_NAMES=nvptx-none:hsa -OFFLOAD_TARGET_DEFAULT=1 -Target: x86_64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex -Thread model: posix -gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' - /usr/lib/gcc/x86_64-linux-gnu/9/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccpNL4RP.s -GNU C++14 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu) - compiled by GNU C version 9.5.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP - -GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 -ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/9" -ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" -ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed" -ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include" -#include "..." search starts here: -#include <...> search starts here: - /usr/include/c++/9 - /usr/include/x86_64-linux-gnu/c++/9 - /usr/include/c++/9/backward - /usr/lib/gcc/x86_64-linux-gnu/9/include - /usr/local/include - /usr/include/x86_64-linux-gnu - /usr/include -End of search list. -GNU C++14 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu) - compiled by GNU C version 9.5.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP - -GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 -Compiler executable checksum: 092909160e28bd24f51a09482980c4ba -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' - as -v --64 -o CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccpNL4RP.s -GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38 -COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' -Linking CXX executable cmTC_3be0a -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3be0a.dir/link.txt --verbose=1 -/usr/bin/g++-9 -v CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_3be0a -Using built-in specs. -COLLECT_GCC=/usr/bin/g++-9 -COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -OFFLOAD_TARGET_NAMES=nvptx-none:hsa -OFFLOAD_TARGET_DEFAULT=1 -Target: x86_64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex -Thread model: posix -gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) -COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/ -LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/ -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_3be0a' '-shared-libgcc' '-mtune=generic' '-march=x86-64' - /usr/lib/gcc/x86_64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccHAVvpy.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_3be0a /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o -COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_3be0a' '-shared-libgcc' '-mtune=generic' '-march=x86-64' -gmake[1]: Leaving directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp' - - - -Parsed CXX implicit include dir info from above output: rv=done - found start of include info - found start of implicit include info - add: [/usr/include/c++/9] - add: [/usr/include/x86_64-linux-gnu/c++/9] - add: [/usr/include/c++/9/backward] - add: [/usr/lib/gcc/x86_64-linux-gnu/9/include] - add: [/usr/local/include] - add: [/usr/include/x86_64-linux-gnu] - add: [/usr/include] - end of search list found - collapse include dir [/usr/include/c++/9] ==> [/usr/include/c++/9] - collapse include dir [/usr/include/x86_64-linux-gnu/c++/9] ==> [/usr/include/x86_64-linux-gnu/c++/9] - collapse include dir [/usr/include/c++/9/backward] ==> [/usr/include/c++/9/backward] - collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/9/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/9/include] - collapse include dir [/usr/local/include] ==> [/usr/local/include] - collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] - collapse include dir [/usr/include] ==> [/usr/include] - implicit include dirs: [/usr/include/c++/9;/usr/include/x86_64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include] - - -Parsed CXX implicit link information from above output: - link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] - ignore line: [Change Dir: /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp] - ignore line: [] - ignore line: [Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_3be0a/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3be0a.dir/build.make CMakeFiles/cmTC_3be0a.dir/build] - ignore line: [gmake[1]: Entering directory '/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/CMakeTmp'] - ignore line: [Building CXX object CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o] - ignore line: [/usr/bin/g++-9 -v -o CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/g++-9] - ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:hsa] - ignore line: [OFFLOAD_TARGET_DEFAULT=1] - ignore line: [Target: x86_64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] - ignore line: [Thread model: posix] - ignore line: [gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) ] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] - ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/9/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccpNL4RP.s] - ignore line: [GNU C++14 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu)] - ignore line: [ compiled by GNU C version 9.5.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP] - ignore line: [] - ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] - ignore line: [ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/9"] - ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] - ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed"] - ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include"] - ignore line: [#include "..." search starts here:] - ignore line: [#include <...> search starts here:] - ignore line: [ /usr/include/c++/9] - ignore line: [ /usr/include/x86_64-linux-gnu/c++/9] - ignore line: [ /usr/include/c++/9/backward] - ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/9/include] - ignore line: [ /usr/local/include] - ignore line: [ /usr/include/x86_64-linux-gnu] - ignore line: [ /usr/include] - ignore line: [End of search list.] - ignore line: [GNU C++14 (Ubuntu 9.5.0-1ubuntu1~22.04) version 9.5.0 (x86_64-linux-gnu)] - ignore line: [ compiled by GNU C version 9.5.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP] - ignore line: [] - ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] - ignore line: [Compiler executable checksum: 092909160e28bd24f51a09482980c4ba] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] - ignore line: [ as -v --64 -o CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccpNL4RP.s] - ignore line: [GNU assembler version 2.38 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38] - ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] - ignore line: [Linking CXX executable cmTC_3be0a] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3be0a.dir/link.txt --verbose=1] - ignore line: [/usr/bin/g++-9 -v CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_3be0a ] - ignore line: [Using built-in specs.] - ignore line: [COLLECT_GCC=/usr/bin/g++-9] - ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper] - ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:hsa] - ignore line: [OFFLOAD_TARGET_DEFAULT=1] - ignore line: [Target: x86_64-linux-gnu] - ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.5.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-5Q4PKF/gcc-9-9.5.0/debian/tmp-nvptx/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] - ignore line: [Thread model: posix] - ignore line: [gcc version 9.5.0 (Ubuntu 9.5.0-1ubuntu1~22.04) ] - ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/] - ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/] - ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_3be0a' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] - link line: [ /usr/lib/gcc/x86_64-linux-gnu/9/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccHAVvpy.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_3be0a /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/collect2] ==> ignore - arg [-plugin] ==> ignore - arg [/usr/lib/gcc/x86_64-linux-gnu/9/liblto_plugin.so] ==> ignore - arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper] ==> ignore - arg [-plugin-opt=-fresolution=/tmp/ccHAVvpy.res] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [-plugin-opt=-pass-through=-lc] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore - arg [-plugin-opt=-pass-through=-lgcc] ==> ignore - arg [--build-id] ==> ignore - arg [--eh-frame-hdr] ==> ignore - arg [-m] ==> ignore - arg [elf_x86_64] ==> ignore - arg [--hash-style=gnu] ==> ignore - arg [--as-needed] ==> ignore - arg [-dynamic-linker] ==> ignore - arg [/lib64/ld-linux-x86-64.so.2] ==> ignore - arg [-pie] ==> ignore - arg [-znow] ==> ignore - arg [-zrelro] ==> ignore - arg [-o] ==> ignore - arg [cmTC_3be0a] ==> ignore - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] - arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] - arg [-L/lib/../lib] ==> dir [/lib/../lib] - arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] - arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] - arg [-L/usr/lib/gcc/x86_64-linux-gnu/9/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../..] - arg [CMakeFiles/cmTC_3be0a.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore - arg [-lstdc++] ==> lib [stdc++] - arg [-lm] ==> lib [m] - arg [-lgcc_s] ==> lib [gcc_s] - arg [-lgcc] ==> lib [gcc] - arg [-lc] ==> lib [c] - arg [-lgcc_s] ==> lib [gcc_s] - arg [-lgcc] ==> lib [gcc] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o] - arg [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o] ==> [/usr/lib/x86_64-linux-gnu/Scrt1.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o] ==> [/usr/lib/x86_64-linux-gnu/crti.o] - collapse obj [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o] ==> [/usr/lib/x86_64-linux-gnu/crtn.o] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9] ==> [/usr/lib/gcc/x86_64-linux-gnu/9] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib] ==> [/usr/lib] - collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] - collapse library dir [/lib/../lib] ==> [/lib] - collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] - collapse library dir [/usr/lib/../lib] ==> [/usr/lib] - collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/9/../../..] ==> [/usr/lib] - implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] - implicit objs: [/usr/lib/x86_64-linux-gnu/Scrt1.o;/usr/lib/x86_64-linux-gnu/crti.o;/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o;/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o;/usr/lib/x86_64-linux-gnu/crtn.o] - implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] - implicit fwks: [] - - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile.cmake deleted file mode 100644 index 4775e20..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile.cmake +++ /dev/null @@ -1,49 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# The generator used is: -set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") - -# The top level Makefile was generated from the following files: -set(CMAKE_MAKEFILE_DEPENDS - "CMakeCache.txt" - "../CMakeLists.txt" - "CMakeFiles/3.22.1/CMakeCCompiler.cmake" - "CMakeFiles/3.22.1/CMakeCXXCompiler.cmake" - "CMakeFiles/3.22.1/CMakeSystem.cmake" - "/usr/share/cmake-3.22/Modules/CMakeCInformation.cmake" - "/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake" - "/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake" - "/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake" - "/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake" - "/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake" - "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake" - "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake" - "/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake" - "/usr/share/cmake-3.22/Modules/Compiler/GNU-C.cmake" - "/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake" - "/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake" - "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-C.cmake" - "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake" - "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake" - "/usr/share/cmake-3.22/Modules/Platform/Linux.cmake" - "/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake" - ) - -# The corresponding makefile is: -set(CMAKE_MAKEFILE_OUTPUTS - "Makefile" - "CMakeFiles/cmake.check_cache" - ) - -# Byproducts of CMake generate step: -set(CMAKE_MAKEFILE_PRODUCTS - "CMakeFiles/CMakeDirectoryInformation.cmake" - ) - -# Dependency information for all targets: -set(CMAKE_DEPEND_INFO_FILES - "CMakeFiles/OJ_server.dir/DependInfo.cmake" - "CMakeFiles/compile_server.dir/DependInfo.cmake" - "CMakeFiles/data_server.dir/DependInfo.cmake" - ) diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile2 b/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile2 deleted file mode 100644 index 3875333..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/Makefile2 +++ /dev/null @@ -1,168 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Default target executed when no arguments are given to make. -default_target: all -.PHONY : default_target - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/zzy1/2024/my-online-judge/MYOJ - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/zzy1/2024/my-online-judge/MYOJ/build - -#============================================================================= -# Directory level rules for the build root directory - -# The main recursive "all" target. -all: CMakeFiles/OJ_server.dir/all -all: CMakeFiles/compile_server.dir/all -all: CMakeFiles/data_server.dir/all -.PHONY : all - -# The main recursive "preinstall" target. -preinstall: -.PHONY : preinstall - -# The main recursive "clean" target. -clean: CMakeFiles/OJ_server.dir/clean -clean: CMakeFiles/compile_server.dir/clean -clean: CMakeFiles/data_server.dir/clean -.PHONY : clean - -#============================================================================= -# Target rules for target CMakeFiles/OJ_server.dir - -# All Build rule for target. -CMakeFiles/OJ_server.dir/all: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/depend - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/build - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=1,2 "Built target OJ_server" -.PHONY : CMakeFiles/OJ_server.dir/all - -# Build rule for subdir invocation for target. -CMakeFiles/OJ_server.dir/rule: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 2 - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/OJ_server.dir/all - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 0 -.PHONY : CMakeFiles/OJ_server.dir/rule - -# Convenience name for target. -OJ_server: CMakeFiles/OJ_server.dir/rule -.PHONY : OJ_server - -# clean rule for target. -CMakeFiles/OJ_server.dir/clean: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/clean -.PHONY : CMakeFiles/OJ_server.dir/clean - -#============================================================================= -# Target rules for target CMakeFiles/compile_server.dir - -# All Build rule for target. -CMakeFiles/compile_server.dir/all: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/depend - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/build - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=3,4 "Built target compile_server" -.PHONY : CMakeFiles/compile_server.dir/all - -# Build rule for subdir invocation for target. -CMakeFiles/compile_server.dir/rule: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 2 - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/compile_server.dir/all - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 0 -.PHONY : CMakeFiles/compile_server.dir/rule - -# Convenience name for target. -compile_server: CMakeFiles/compile_server.dir/rule -.PHONY : compile_server - -# clean rule for target. -CMakeFiles/compile_server.dir/clean: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/clean -.PHONY : CMakeFiles/compile_server.dir/clean - -#============================================================================= -# Target rules for target CMakeFiles/data_server.dir - -# All Build rule for target. -CMakeFiles/data_server.dir/all: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/depend - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/build - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=5,6 "Built target data_server" -.PHONY : CMakeFiles/data_server.dir/all - -# Build rule for subdir invocation for target. -CMakeFiles/data_server.dir/rule: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 2 - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/data_server.dir/all - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 0 -.PHONY : CMakeFiles/data_server.dir/rule - -# Convenience name for target. -data_server: CMakeFiles/data_server.dir/rule -.PHONY : data_server - -# clean rule for target. -CMakeFiles/data_server.dir/clean: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/clean -.PHONY : CMakeFiles/data_server.dir/clean - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/DependInfo.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/DependInfo.cmake deleted file mode 100644 index 8107cd3..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/DependInfo.cmake +++ /dev/null @@ -1,19 +0,0 @@ - -# Consider dependencies only in project. -set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) - -# The set of languages for which implicit dependencies are needed: -set(CMAKE_DEPENDS_LANGUAGES - ) - -# The set of dependency files which are needed: -set(CMAKE_DEPENDS_DEPENDENCY_FILES - "/home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc" "CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o" "gcc" "CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d" - ) - -# Targets to which this target links. -set(CMAKE_TARGET_LINKED_INFO_FILES - ) - -# Fortran module output directory. -set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o deleted file mode 100644 index a381b58..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d deleted file mode 100644 index 1f7c620..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d +++ /dev/null @@ -1,714 +0,0 @@ -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o: \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc \ - /usr/include/stdc-predef.h /usr/include/c++/9/fstream \ - /usr/include/c++/9/istream /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/features.h /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ - /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ - /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/cctype \ - /usr/include/ctype.h /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ - /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h /usr/include/c++/9/cerrno \ - /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ - /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/iostream \ - /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h /usr/include/unistd.h \ - /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ - /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/fcntl.h /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/linux/falloc.h /usr/include/c++/9/stdlib.h \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_Control.hpp \ - /usr/include/c++/9/atomic /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/mutex /usr/include/c++/9/tuple \ - /usr/include/c++/9/utility /usr/include/c++/9/bits/stl_relops.h \ - /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio /usr/include/c++/9/limits \ - /usr/include/c++/9/ctime /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h /usr/include/assert.h \ - /usr/include/jsoncpp/json/json.h /usr/include/jsoncpp/json/config.h \ - /usr/include/c++/9/cstddef /usr/include/c++/9/memory \ - /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/unique_ptr.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/backward/auto_ptr.h /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h /usr/include/c++/9/cstring \ - /usr/include/string.h /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h /usr/include/jsoncpp/json/writer.h \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_view.hpp \ - /usr/local/include/ctemplate/template.h \ - /usr/local/include/ctemplate/template_cache.h \ - /usr/include/c++/9/unordered_map /usr/include/c++/9/bits/hashtable.h \ - /usr/include/c++/9/bits/hashtable_policy.h \ - /usr/include/c++/9/bits/unordered_map.h \ - /usr/local/include/ctemplate/template_emitter.h \ - /usr/local/include/ctemplate/template_enums.h \ - /usr/local/include/ctemplate/template_string.h \ - /usr/local/include/ctemplate/per_expand_data.h \ - /usr/local/include/ctemplate/template_dictionary.h \ - /usr/include/c++/9/functional /usr/include/c++/9/bits/std_function.h \ - /usr/local/include/ctemplate/str_ref.h \ - /usr/local/include/ctemplate/template_dictionary_interface.h \ - /usr/local/include/ctemplate/template_modifiers.h \ - /usr/local/include/ctemplate/template_namelist.h \ - /usr/include/c++/9/unordered_set /usr/include/c++/9/bits/unordered_set.h \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/../comm/Comm_model_MySQL.hpp \ - /usr/include/mysql/mysql.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h \ - /usr/include/mysql/field_types.h /usr/include/mysql/my_list.h \ - /usr/include/mysql/mysql_com.h /usr/include/mysql/my_command.h \ - /usr/include/mysql/my_compress.h \ - /usr/include/mysql/udf_registration_types.h \ - /usr/include/mysql/client_plugin.h \ - /usr/include/mysql/plugin_auth_common.h \ - /usr/include/mysql/mysql_version.h /usr/include/mysql/mysql_time.h \ - /usr/include/mysql/errmsg.h \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/../comm/util.hpp \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/c++/9/list /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist /usr/include/c++/9/algorithm \ - /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/c++/9/iterator /usr/include/c++/9/bits/stream_iterator.h \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp /usr/include/c++/9/climits \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/c++/9/cassert \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/../comm/../comm/Log.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/../comm/httplib.h \ - /usr/include/arpa/inet.h /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/ifaddrs.h \ - /usr/include/netdb.h /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h /usr/include/c++/9/csignal \ - /usr/include/c++/9/condition_variable /usr/include/c++/9/random \ - /usr/include/c++/9/cmath /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc /usr/include/c++/9/thread diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/build.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/build.make deleted file mode 100644 index bd7733a..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/build.make +++ /dev/null @@ -1,110 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Delete rule output on recipe failure. -.DELETE_ON_ERROR: - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/zzy1/2024/my-online-judge/MYOJ - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/zzy1/2024/my-online-judge/MYOJ/build - -# Include any dependencies generated for this target. -include CMakeFiles/OJ_server.dir/depend.make -# Include any dependencies generated by the compiler for this target. -include CMakeFiles/OJ_server.dir/compiler_depend.make - -# Include the progress variables for this target. -include CMakeFiles/OJ_server.dir/progress.make - -# Include the compile flags for this target's objects. -include CMakeFiles/OJ_server.dir/flags.make - -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o: CMakeFiles/OJ_server.dir/flags.make -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o: ../OJ_server/OJ_server.cc -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o: CMakeFiles/OJ_server.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -MF CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d -o CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc - -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.i" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc > CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.i - -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.s" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc -o CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.s - -# Object files for target OJ_server -OJ_server_OBJECTS = \ -"CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o" - -# External object files for target OJ_server -OJ_server_EXTERNAL_OBJECTS = - -output/OJ_server: CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -output/OJ_server: CMakeFiles/OJ_server.dir/build.make -output/OJ_server: CMakeFiles/OJ_server.dir/link.txt - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable output/OJ_server" - $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/OJ_server.dir/link.txt --verbose=$(VERBOSE) - -# Rule to build all files generated by this target. -CMakeFiles/OJ_server.dir/build: output/OJ_server -.PHONY : CMakeFiles/OJ_server.dir/build - -CMakeFiles/OJ_server.dir/clean: - $(CMAKE_COMMAND) -P CMakeFiles/OJ_server.dir/cmake_clean.cmake -.PHONY : CMakeFiles/OJ_server.dir/clean - -CMakeFiles/OJ_server.dir/depend: - cd /home/zzy1/2024/my-online-judge/MYOJ/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/OJ_server.dir/DependInfo.cmake --color=$(COLOR) -.PHONY : CMakeFiles/OJ_server.dir/depend - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/cmake_clean.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/cmake_clean.cmake deleted file mode 100644 index d173f67..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/cmake_clean.cmake +++ /dev/null @@ -1,11 +0,0 @@ -file(REMOVE_RECURSE - "CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o" - "CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o.d" - "output/OJ_server" - "output/OJ_server.pdb" -) - -# Per-language clean rules from dependency scanning. -foreach(lang CXX) - include(CMakeFiles/OJ_server.dir/cmake_clean_${lang}.cmake OPTIONAL) -endforeach() diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.internal b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.internal deleted file mode 100644 index ff2f31e..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.internal +++ /dev/null @@ -1,830 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc - /usr/include/stdc-predef.h - /usr/include/c++/9/fstream - /usr/include/c++/9/istream - /usr/include/c++/9/ios - /usr/include/c++/9/iosfwd - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h - /usr/include/features.h - /usr/include/features-time64.h - /usr/include/x86_64-linux-gnu/bits/wordsize.h - /usr/include/x86_64-linux-gnu/bits/timesize.h - /usr/include/x86_64-linux-gnu/sys/cdefs.h - /usr/include/x86_64-linux-gnu/bits/long-double.h - /usr/include/x86_64-linux-gnu/gnu/stubs.h - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h - /usr/include/c++/9/bits/stringfwd.h - /usr/include/c++/9/bits/memoryfwd.h - /usr/include/c++/9/bits/postypes.h - /usr/include/c++/9/cwchar - /usr/include/wchar.h - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h - /usr/include/x86_64-linux-gnu/bits/floatn.h - /usr/include/x86_64-linux-gnu/bits/floatn-common.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h - /usr/include/x86_64-linux-gnu/bits/wchar.h - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h - /usr/include/x86_64-linux-gnu/bits/types/FILE.h - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h - /usr/include/c++/9/exception - /usr/include/c++/9/bits/exception.h - /usr/include/c++/9/bits/exception_ptr.h - /usr/include/c++/9/bits/exception_defines.h - /usr/include/c++/9/bits/cxxabi_init_exception.h - /usr/include/c++/9/typeinfo - /usr/include/c++/9/bits/hash_bytes.h - /usr/include/c++/9/new - /usr/include/c++/9/bits/move.h - /usr/include/c++/9/bits/concept_check.h - /usr/include/c++/9/type_traits - /usr/include/c++/9/bits/nested_exception.h - /usr/include/c++/9/bits/char_traits.h - /usr/include/c++/9/bits/stl_algobase.h - /usr/include/c++/9/bits/functexcept.h - /usr/include/c++/9/bits/cpp_type_traits.h - /usr/include/c++/9/ext/type_traits.h - /usr/include/c++/9/ext/numeric_traits.h - /usr/include/c++/9/bits/stl_pair.h - /usr/include/c++/9/bits/stl_iterator_base_types.h - /usr/include/c++/9/bits/stl_iterator_base_funcs.h - /usr/include/c++/9/debug/assertions.h - /usr/include/c++/9/bits/stl_iterator.h - /usr/include/c++/9/bits/ptr_traits.h - /usr/include/c++/9/debug/debug.h - /usr/include/c++/9/bits/predefined_ops.h - /usr/include/c++/9/cstdint - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h - /usr/include/stdint.h - /usr/include/x86_64-linux-gnu/bits/types.h - /usr/include/x86_64-linux-gnu/bits/typesizes.h - /usr/include/x86_64-linux-gnu/bits/time64.h - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h - /usr/include/c++/9/bits/localefwd.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h - /usr/include/c++/9/clocale - /usr/include/locale.h - /usr/include/x86_64-linux-gnu/bits/locale.h - /usr/include/c++/9/cctype - /usr/include/ctype.h - /usr/include/x86_64-linux-gnu/bits/endian.h - /usr/include/x86_64-linux-gnu/bits/endianness.h - /usr/include/c++/9/bits/ios_base.h - /usr/include/c++/9/ext/atomicity.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h - /usr/include/pthread.h - /usr/include/sched.h - /usr/include/x86_64-linux-gnu/bits/types/time_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h - /usr/include/x86_64-linux-gnu/bits/sched.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h - /usr/include/x86_64-linux-gnu/bits/cpu-set.h - /usr/include/time.h - /usr/include/x86_64-linux-gnu/bits/time.h - /usr/include/x86_64-linux-gnu/bits/timex.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h - /usr/include/x86_64-linux-gnu/bits/setjmp.h - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h - /usr/include/c++/9/bits/locale_classes.h - /usr/include/c++/9/string - /usr/include/c++/9/bits/allocator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h - /usr/include/c++/9/ext/new_allocator.h - /usr/include/c++/9/bits/ostream_insert.h - /usr/include/c++/9/bits/cxxabi_forced.h - /usr/include/c++/9/bits/stl_function.h - /usr/include/c++/9/backward/binders.h - /usr/include/c++/9/bits/range_access.h - /usr/include/c++/9/initializer_list - /usr/include/c++/9/bits/basic_string.h - /usr/include/c++/9/ext/alloc_traits.h - /usr/include/c++/9/bits/alloc_traits.h - /usr/include/c++/9/ext/string_conversions.h - /usr/include/c++/9/cstdlib - /usr/include/stdlib.h - /usr/include/x86_64-linux-gnu/bits/waitflags.h - /usr/include/x86_64-linux-gnu/bits/waitstatus.h - /usr/include/x86_64-linux-gnu/sys/types.h - /usr/include/endian.h - /usr/include/x86_64-linux-gnu/bits/byteswap.h - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h - /usr/include/x86_64-linux-gnu/sys/select.h - /usr/include/x86_64-linux-gnu/bits/select.h - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h - /usr/include/alloca.h - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h - /usr/include/c++/9/bits/std_abs.h - /usr/include/c++/9/cstdio - /usr/include/stdio.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h - /usr/include/c++/9/cerrno - /usr/include/errno.h - /usr/include/x86_64-linux-gnu/bits/errno.h - /usr/include/linux/errno.h - /usr/include/x86_64-linux-gnu/asm/errno.h - /usr/include/asm-generic/errno.h - /usr/include/asm-generic/errno-base.h - /usr/include/x86_64-linux-gnu/bits/types/error_t.h - /usr/include/c++/9/bits/functional_hash.h - /usr/include/c++/9/bits/basic_string.tcc - /usr/include/c++/9/bits/locale_classes.tcc - /usr/include/c++/9/system_error - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h - /usr/include/c++/9/stdexcept - /usr/include/c++/9/streambuf - /usr/include/c++/9/bits/streambuf.tcc - /usr/include/c++/9/bits/basic_ios.h - /usr/include/c++/9/bits/locale_facets.h - /usr/include/c++/9/cwctype - /usr/include/wctype.h - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h - /usr/include/c++/9/bits/streambuf_iterator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h - /usr/include/c++/9/bits/locale_facets.tcc - /usr/include/c++/9/bits/basic_ios.tcc - /usr/include/c++/9/ostream - /usr/include/c++/9/bits/ostream.tcc - /usr/include/c++/9/bits/istream.tcc - /usr/include/c++/9/bits/codecvt.h - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h - /usr/include/c++/9/bits/fstream.tcc - /usr/include/c++/9/iostream - /usr/include/signal.h - /usr/include/x86_64-linux-gnu/bits/signum-generic.h - /usr/include/x86_64-linux-gnu/bits/signum-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h - /usr/include/x86_64-linux-gnu/bits/sigaction.h - /usr/include/x86_64-linux-gnu/bits/sigcontext.h - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h - /usr/include/x86_64-linux-gnu/sys/ucontext.h - /usr/include/x86_64-linux-gnu/bits/sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigstksz.h - /usr/include/unistd.h - /usr/include/x86_64-linux-gnu/bits/posix_opt.h - /usr/include/x86_64-linux-gnu/bits/environments.h - /usr/include/x86_64-linux-gnu/bits/confname.h - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h - /usr/include/x86_64-linux-gnu/bits/getopt_core.h - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h - /usr/include/linux/close_range.h - /usr/include/x86_64-linux-gnu/bits/ss_flags.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigthread.h - /usr/include/x86_64-linux-gnu/bits/signal_ext.h - /usr/include/x86_64-linux-gnu/sys/stat.h - /usr/include/x86_64-linux-gnu/bits/stat.h - /usr/include/x86_64-linux-gnu/bits/struct_stat.h - /usr/include/x86_64-linux-gnu/bits/statx.h - /usr/include/linux/stat.h - /usr/include/linux/types.h - /usr/include/x86_64-linux-gnu/asm/types.h - /usr/include/asm-generic/types.h - /usr/include/asm-generic/int-ll64.h - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h - /usr/include/asm-generic/bitsperlong.h - /usr/include/linux/posix_types.h - /usr/include/linux/stddef.h - /usr/include/x86_64-linux-gnu/asm/posix_types.h - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h - /usr/include/asm-generic/posix_types.h - /usr/include/x86_64-linux-gnu/bits/statx-generic.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h - /usr/include/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h - /usr/include/linux/falloc.h - /usr/include/c++/9/stdlib.h - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_Control.hpp - /usr/include/c++/9/atomic - /usr/include/c++/9/bits/atomic_base.h - /usr/include/c++/9/bits/atomic_lockfree_defines.h - /usr/include/c++/9/mutex - /usr/include/c++/9/tuple - /usr/include/c++/9/utility - /usr/include/c++/9/bits/stl_relops.h - /usr/include/c++/9/array - /usr/include/c++/9/bits/uses_allocator.h - /usr/include/c++/9/bits/invoke.h - /usr/include/c++/9/chrono - /usr/include/c++/9/ratio - /usr/include/c++/9/limits - /usr/include/c++/9/ctime - /usr/include/c++/9/bits/parse_numbers.h - /usr/include/c++/9/bits/std_mutex.h - /usr/include/c++/9/bits/unique_lock.h - /usr/include/assert.h - /usr/include/jsoncpp/json/json.h - /usr/include/jsoncpp/json/config.h - /usr/include/c++/9/cstddef - /usr/include/c++/9/memory - /usr/include/c++/9/bits/stl_construct.h - /usr/include/c++/9/bits/stl_uninitialized.h - /usr/include/c++/9/bits/stl_tempbuf.h - /usr/include/c++/9/bits/stl_raw_storage_iter.h - /usr/include/c++/9/ext/concurrence.h - /usr/include/c++/9/bits/unique_ptr.h - /usr/include/c++/9/bits/shared_ptr.h - /usr/include/c++/9/bits/shared_ptr_base.h - /usr/include/c++/9/bits/allocated_ptr.h - /usr/include/c++/9/bits/refwrap.h - /usr/include/c++/9/ext/aligned_buffer.h - /usr/include/c++/9/bits/shared_ptr_atomic.h - /usr/include/c++/9/backward/auto_ptr.h - /usr/include/c++/9/sstream - /usr/include/c++/9/bits/sstream.tcc - /usr/include/jsoncpp/json/allocator.h - /usr/include/c++/9/cstring - /usr/include/string.h - /usr/include/strings.h - /usr/include/jsoncpp/json/version.h - /usr/include/jsoncpp/json/json_features.h - /usr/include/jsoncpp/json/forwards.h - /usr/include/jsoncpp/json/reader.h - /usr/include/jsoncpp/json/value.h - /usr/include/c++/9/map - /usr/include/c++/9/bits/stl_tree.h - /usr/include/c++/9/bits/stl_map.h - /usr/include/c++/9/bits/stl_multimap.h - /usr/include/c++/9/bits/erase_if.h - /usr/include/c++/9/vector - /usr/include/c++/9/bits/stl_vector.h - /usr/include/c++/9/bits/stl_bvector.h - /usr/include/c++/9/bits/vector.tcc - /usr/include/c++/9/deque - /usr/include/c++/9/bits/stl_deque.h - /usr/include/c++/9/bits/deque.tcc - /usr/include/c++/9/stack - /usr/include/c++/9/bits/stl_stack.h - /usr/include/jsoncpp/json/writer.h - /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_view.hpp - /usr/local/include/ctemplate/template.h - /usr/local/include/ctemplate/template_cache.h - /usr/include/c++/9/unordered_map - /usr/include/c++/9/bits/hashtable.h - /usr/include/c++/9/bits/hashtable_policy.h - /usr/include/c++/9/bits/unordered_map.h - /usr/local/include/ctemplate/template_emitter.h - /usr/local/include/ctemplate/template_enums.h - /usr/local/include/ctemplate/template_string.h - /usr/local/include/ctemplate/per_expand_data.h - /usr/local/include/ctemplate/template_dictionary.h - /usr/include/c++/9/functional - /usr/include/c++/9/bits/std_function.h - /usr/local/include/ctemplate/str_ref.h - /usr/local/include/ctemplate/template_dictionary_interface.h - /usr/local/include/ctemplate/template_modifiers.h - /usr/local/include/ctemplate/template_namelist.h - /usr/include/c++/9/unordered_set - /usr/include/c++/9/bits/unordered_set.h - /home/zzy1/2024/my-online-judge/MYOJ/comm/Comm_model_MySQL.hpp - /usr/include/mysql/mysql.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h - /usr/include/mysql/field_types.h - /usr/include/mysql/my_list.h - /usr/include/mysql/mysql_com.h - /usr/include/mysql/my_command.h - /usr/include/mysql/my_compress.h - /usr/include/mysql/udf_registration_types.h - /usr/include/mysql/client_plugin.h - /usr/include/mysql/plugin_auth_common.h - /usr/include/mysql/mysql_version.h - /usr/include/mysql/mysql_time.h - /usr/include/mysql/errmsg.h - /home/zzy1/2024/my-online-judge/MYOJ/comm/util.hpp - /usr/include/x86_64-linux-gnu/sys/time.h - /usr/include/x86_64-linux-gnu/sys/wait.h - /usr/include/boost/algorithm/string.hpp - /usr/include/boost/algorithm/string/std_containers_traits.hpp - /usr/include/boost/config.hpp - /usr/include/boost/config/user.hpp - /usr/include/boost/config/detail/select_compiler_config.hpp - /usr/include/boost/config/compiler/gcc.hpp - /usr/include/boost/config/detail/select_stdlib_config.hpp - /usr/include/c++/9/version - /usr/include/boost/config/stdlib/libstdcpp3.hpp - /usr/include/boost/config/detail/select_platform_config.hpp - /usr/include/boost/config/platform/linux.hpp - /usr/include/boost/config/detail/posix_features.hpp - /usr/include/boost/config/detail/suffix.hpp - /usr/include/boost/config/helper_macros.hpp - /usr/include/boost/algorithm/string/std/string_traits.hpp - /usr/include/boost/algorithm/string/yes_no_type.hpp - /usr/include/boost/algorithm/string/sequence_traits.hpp - /usr/include/boost/mpl/bool.hpp - /usr/include/boost/mpl/bool_fwd.hpp - /usr/include/boost/mpl/aux_/adl_barrier.hpp - /usr/include/boost/mpl/aux_/config/adl.hpp - /usr/include/boost/mpl/aux_/config/msvc.hpp - /usr/include/boost/mpl/aux_/config/intel.hpp - /usr/include/boost/mpl/aux_/config/gcc.hpp - /usr/include/boost/mpl/aux_/config/workaround.hpp - /usr/include/boost/detail/workaround.hpp - /usr/include/boost/config/workaround.hpp - /usr/include/boost/mpl/integral_c_tag.hpp - /usr/include/boost/mpl/aux_/config/static_constant.hpp - /usr/include/boost/algorithm/string/std/list_traits.hpp - /usr/include/c++/9/list - /usr/include/c++/9/bits/stl_list.h - /usr/include/c++/9/bits/list.tcc - /usr/include/boost/algorithm/string/std/slist_traits.hpp - /usr/include/boost/algorithm/string/config.hpp - /usr/include/c++/9/ext/slist - /usr/include/c++/9/algorithm - /usr/include/c++/9/bits/stl_algo.h - /usr/include/c++/9/bits/algorithmfwd.h - /usr/include/c++/9/bits/stl_heap.h - /usr/include/c++/9/bits/uniform_int_dist.h - /usr/include/boost/algorithm/string/trim.hpp - /usr/include/boost/range/begin.hpp - /usr/include/boost/range/config.hpp - /usr/include/boost/range/iterator.hpp - /usr/include/boost/range/range_fwd.hpp - /usr/include/boost/range/mutable_iterator.hpp - /usr/include/boost/range/detail/extract_optional_type.hpp - /usr/include/boost/preprocessor/cat.hpp - /usr/include/boost/preprocessor/config/config.hpp - /usr/include/boost/mpl/has_xxx.hpp - /usr/include/boost/mpl/aux_/na_spec.hpp - /usr/include/boost/mpl/lambda_fwd.hpp - /usr/include/boost/mpl/void_fwd.hpp - /usr/include/boost/mpl/aux_/na.hpp - /usr/include/boost/mpl/aux_/na_fwd.hpp - /usr/include/boost/mpl/aux_/config/ctps.hpp - /usr/include/boost/mpl/aux_/config/lambda.hpp - /usr/include/boost/mpl/aux_/config/ttp.hpp - /usr/include/boost/mpl/int.hpp - /usr/include/boost/mpl/int_fwd.hpp - /usr/include/boost/mpl/aux_/nttp_decl.hpp - /usr/include/boost/mpl/aux_/config/nttp.hpp - /usr/include/boost/mpl/aux_/integral_wrapper.hpp - /usr/include/boost/mpl/aux_/static_cast.hpp - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp - /usr/include/boost/mpl/aux_/arity.hpp - /usr/include/boost/mpl/aux_/config/dtp.hpp - /usr/include/boost/mpl/aux_/preprocessor/params.hpp - /usr/include/boost/mpl/aux_/config/preprocessor.hpp - /usr/include/boost/preprocessor/comma_if.hpp - /usr/include/boost/preprocessor/punctuation/comma_if.hpp - /usr/include/boost/preprocessor/control/if.hpp - /usr/include/boost/preprocessor/control/iif.hpp - /usr/include/boost/preprocessor/logical/bool.hpp - /usr/include/boost/preprocessor/facilities/empty.hpp - /usr/include/boost/preprocessor/punctuation/comma.hpp - /usr/include/boost/preprocessor/repeat.hpp - /usr/include/boost/preprocessor/repetition/repeat.hpp - /usr/include/boost/preprocessor/debug/error.hpp - /usr/include/boost/preprocessor/detail/auto_rec.hpp - /usr/include/boost/preprocessor/tuple/eat.hpp - /usr/include/boost/preprocessor/inc.hpp - /usr/include/boost/preprocessor/arithmetic/inc.hpp - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp - /usr/include/boost/mpl/limits/arity.hpp - /usr/include/boost/preprocessor/logical/and.hpp - /usr/include/boost/preprocessor/logical/bitand.hpp - /usr/include/boost/preprocessor/identity.hpp - /usr/include/boost/preprocessor/facilities/identity.hpp - /usr/include/boost/preprocessor/empty.hpp - /usr/include/boost/preprocessor/arithmetic/add.hpp - /usr/include/boost/preprocessor/arithmetic/dec.hpp - /usr/include/boost/preprocessor/control/while.hpp - /usr/include/boost/preprocessor/list/fold_left.hpp - /usr/include/boost/preprocessor/list/detail/fold_left.hpp - /usr/include/boost/preprocessor/control/expr_iif.hpp - /usr/include/boost/preprocessor/list/adt.hpp - /usr/include/boost/preprocessor/detail/is_binary.hpp - /usr/include/boost/preprocessor/detail/check.hpp - /usr/include/boost/preprocessor/logical/compl.hpp - /usr/include/boost/preprocessor/list/fold_right.hpp - /usr/include/boost/preprocessor/list/detail/fold_right.hpp - /usr/include/boost/preprocessor/list/reverse.hpp - /usr/include/boost/preprocessor/control/detail/while.hpp - /usr/include/boost/preprocessor/tuple/elem.hpp - /usr/include/boost/preprocessor/facilities/expand.hpp - /usr/include/boost/preprocessor/facilities/overload.hpp - /usr/include/boost/preprocessor/variadic/size.hpp - /usr/include/boost/preprocessor/tuple/rem.hpp - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp - /usr/include/boost/preprocessor/variadic/elem.hpp - /usr/include/boost/preprocessor/arithmetic/sub.hpp - /usr/include/boost/mpl/aux_/config/eti.hpp - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp - /usr/include/boost/mpl/aux_/type_wrapper.hpp - /usr/include/boost/mpl/aux_/yes_no.hpp - /usr/include/boost/mpl/aux_/config/arrays.hpp - /usr/include/boost/mpl/aux_/config/has_xxx.hpp - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp - /usr/include/boost/preprocessor/array/elem.hpp - /usr/include/boost/preprocessor/array/data.hpp - /usr/include/boost/preprocessor/array/size.hpp - /usr/include/boost/preprocessor/repetition/enum_params.hpp - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp - /usr/include/boost/type_traits/remove_reference.hpp - /usr/include/boost/iterator/iterator_traits.hpp - /usr/include/c++/9/iterator - /usr/include/c++/9/bits/stream_iterator.h - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp - /usr/include/boost/range/const_iterator.hpp - /usr/include/boost/type_traits/remove_const.hpp - /usr/include/boost/type_traits/is_const.hpp - /usr/include/boost/type_traits/integral_constant.hpp - /usr/include/boost/mpl/eval_if.hpp - /usr/include/boost/mpl/if.hpp - /usr/include/boost/mpl/aux_/value_wknd.hpp - /usr/include/boost/mpl/aux_/config/integral.hpp - /usr/include/boost/mpl/aux_/lambda_support.hpp - /usr/include/boost/range/end.hpp - /usr/include/boost/range/detail/implementation_help.hpp - /usr/include/boost/range/detail/common.hpp - /usr/include/boost/range/detail/sfinae.hpp - /usr/include/boost/type_traits/is_array.hpp - /usr/include/boost/type_traits/detail/yes_no_type.hpp - /usr/include/boost/type_traits/is_void.hpp - /usr/include/boost/type_traits/is_same.hpp - /usr/include/boost/range/as_literal.hpp - /usr/include/boost/range/iterator_range.hpp - /usr/include/boost/range/iterator_range_core.hpp - /usr/include/boost/assert.hpp - /usr/include/boost/iterator/iterator_facade.hpp - /usr/include/boost/iterator/interoperable.hpp - /usr/include/boost/mpl/or.hpp - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp - /usr/include/boost/mpl/aux_/include_preprocessed.hpp - /usr/include/boost/mpl/aux_/config/compiler.hpp - /usr/include/boost/preprocessor/stringize.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp - /usr/include/boost/type_traits/is_convertible.hpp - /usr/include/boost/type_traits/intrinsics.hpp - /usr/include/boost/type_traits/detail/config.hpp - /usr/include/boost/version.hpp - /usr/include/boost/type_traits/is_complete.hpp - /usr/include/boost/type_traits/declval.hpp - /usr/include/boost/type_traits/add_rvalue_reference.hpp - /usr/include/boost/type_traits/is_reference.hpp - /usr/include/boost/type_traits/is_lvalue_reference.hpp - /usr/include/boost/type_traits/is_rvalue_reference.hpp - /usr/include/boost/type_traits/is_function.hpp - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp - /usr/include/boost/static_assert.hpp - /usr/include/boost/type_traits/is_arithmetic.hpp - /usr/include/boost/type_traits/is_integral.hpp - /usr/include/boost/type_traits/is_floating_point.hpp - /usr/include/boost/type_traits/is_abstract.hpp - /usr/include/boost/type_traits/add_lvalue_reference.hpp - /usr/include/boost/type_traits/add_reference.hpp - /usr/include/boost/iterator/detail/config_def.hpp - /usr/include/boost/iterator/detail/config_undef.hpp - /usr/include/boost/iterator/iterator_categories.hpp - /usr/include/boost/mpl/identity.hpp - /usr/include/boost/mpl/placeholders.hpp - /usr/include/boost/mpl/arg.hpp - /usr/include/boost/mpl/arg_fwd.hpp - /usr/include/boost/mpl/aux_/na_assert.hpp - /usr/include/boost/mpl/assert.hpp - /usr/include/boost/mpl/not.hpp - /usr/include/boost/mpl/aux_/config/gpu.hpp - /usr/include/boost/mpl/aux_/config/pp_counter.hpp - /usr/include/boost/mpl/aux_/arity_spec.hpp - /usr/include/boost/mpl/aux_/arg_typedef.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp - /usr/include/boost/iterator/detail/facade_iterator_category.hpp - /usr/include/boost/core/use_default.hpp - /usr/include/boost/mpl/and.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp - /usr/include/boost/detail/indirect_traits.hpp - /usr/include/boost/type_traits/is_pointer.hpp - /usr/include/boost/type_traits/is_class.hpp - /usr/include/boost/type_traits/is_volatile.hpp - /usr/include/boost/type_traits/is_member_function_pointer.hpp - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp - /usr/include/boost/type_traits/is_member_pointer.hpp - /usr/include/boost/type_traits/remove_cv.hpp - /usr/include/boost/type_traits/remove_pointer.hpp - /usr/include/boost/detail/select_type.hpp - /usr/include/boost/iterator/detail/enable_if.hpp - /usr/include/boost/core/addressof.hpp - /usr/include/boost/type_traits/add_const.hpp - /usr/include/boost/type_traits/add_pointer.hpp - /usr/include/boost/type_traits/is_pod.hpp - /usr/include/boost/type_traits/is_scalar.hpp - /usr/include/boost/type_traits/is_enum.hpp - /usr/include/boost/mpl/always.hpp - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp - /usr/include/boost/mpl/apply.hpp - /usr/include/boost/mpl/apply_fwd.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp - /usr/include/boost/mpl/apply_wrap.hpp - /usr/include/boost/mpl/aux_/has_apply.hpp - /usr/include/boost/mpl/aux_/config/has_apply.hpp - /usr/include/boost/mpl/aux_/msvc_never_true.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp - /usr/include/boost/mpl/lambda.hpp - /usr/include/boost/mpl/bind.hpp - /usr/include/boost/mpl/bind_fwd.hpp - /usr/include/boost/mpl/aux_/config/bind.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp - /usr/include/boost/mpl/next.hpp - /usr/include/boost/mpl/next_prior.hpp - /usr/include/boost/mpl/aux_/common_name_wknd.hpp - /usr/include/boost/mpl/protect.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp - /usr/include/boost/mpl/aux_/full_lambda.hpp - /usr/include/boost/mpl/quote.hpp - /usr/include/boost/mpl/void.hpp - /usr/include/boost/mpl/aux_/has_type.hpp - /usr/include/boost/mpl/aux_/config/bcc.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp - /usr/include/boost/mpl/aux_/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp - /usr/include/boost/type_traits/is_base_and_derived.hpp - /usr/include/boost/range/functions.hpp - /usr/include/boost/range/size.hpp - /usr/include/boost/range/size_type.hpp - /usr/include/boost/range/difference_type.hpp - /usr/include/boost/range/has_range_iterator.hpp - /usr/include/boost/utility/enable_if.hpp - /usr/include/boost/core/enable_if.hpp - /usr/include/boost/range/concepts.hpp - /usr/include/boost/concept_check.hpp - /usr/include/boost/concept/assert.hpp - /usr/include/boost/concept/detail/general.hpp - /usr/include/boost/concept/detail/backward_compatibility.hpp - /usr/include/boost/concept/detail/has_constraints.hpp - /usr/include/boost/type_traits/conditional.hpp - /usr/include/boost/type_traits/conversion_traits.hpp - /usr/include/boost/concept/usage.hpp - /usr/include/boost/concept/detail/concept_def.hpp - /usr/include/boost/preprocessor/seq/for_each_i.hpp - /usr/include/boost/preprocessor/repetition/for.hpp - /usr/include/boost/preprocessor/repetition/detail/for.hpp - /usr/include/boost/preprocessor/seq/seq.hpp - /usr/include/boost/preprocessor/seq/elem.hpp - /usr/include/boost/preprocessor/seq/size.hpp - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp - /usr/include/boost/preprocessor/seq/enum.hpp - /usr/include/boost/concept/detail/concept_undef.hpp - /usr/include/boost/iterator/iterator_concepts.hpp - /usr/include/boost/limits.hpp - /usr/include/boost/range/value_type.hpp - /usr/include/boost/range/detail/misc_concept.hpp - /usr/include/boost/type_traits/make_unsigned.hpp - /usr/include/boost/type_traits/is_signed.hpp - /usr/include/c++/9/climits - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h - /usr/include/limits.h - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h - /usr/include/x86_64-linux-gnu/bits/local_lim.h - /usr/include/linux/limits.h - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h - /usr/include/x86_64-linux-gnu/bits/uio_lim.h - /usr/include/boost/type_traits/is_unsigned.hpp - /usr/include/boost/type_traits/add_volatile.hpp - /usr/include/boost/range/detail/has_member_size.hpp - /usr/include/boost/cstdint.hpp - /usr/include/boost/utility.hpp - /usr/include/boost/utility/base_from_member.hpp - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp - /usr/include/boost/utility/binary.hpp - /usr/include/boost/preprocessor/control/deduce_d.hpp - /usr/include/boost/preprocessor/seq/cat.hpp - /usr/include/boost/preprocessor/seq/fold_left.hpp - /usr/include/boost/preprocessor/seq/transform.hpp - /usr/include/boost/preprocessor/arithmetic/mod.hpp - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp - /usr/include/boost/preprocessor/comparison/less_equal.hpp - /usr/include/boost/preprocessor/logical/not.hpp - /usr/include/boost/utility/identity_type.hpp - /usr/include/boost/type_traits/function_traits.hpp - /usr/include/boost/core/checked_delete.hpp - /usr/include/boost/core/noncopyable.hpp - /usr/include/boost/range/distance.hpp - /usr/include/boost/iterator/distance.hpp - /usr/include/boost/range/empty.hpp - /usr/include/boost/range/rbegin.hpp - /usr/include/boost/range/reverse_iterator.hpp - /usr/include/boost/iterator/reverse_iterator.hpp - /usr/include/boost/iterator/iterator_adaptor.hpp - /usr/include/boost/range/rend.hpp - /usr/include/boost/range/algorithm/equal.hpp - /usr/include/boost/range/detail/safe_bool.hpp - /usr/include/boost/next_prior.hpp - /usr/include/boost/type_traits/has_plus.hpp - /usr/include/boost/type_traits/detail/has_binary_operator.hpp - /usr/include/boost/type_traits/make_void.hpp - /usr/include/boost/type_traits/has_plus_assign.hpp - /usr/include/boost/type_traits/has_minus.hpp - /usr/include/boost/type_traits/has_minus_assign.hpp - /usr/include/boost/iterator/advance.hpp - /usr/include/boost/range/iterator_range_io.hpp - /usr/include/boost/range/detail/str_types.hpp - /usr/include/boost/algorithm/string/detail/trim.hpp - /usr/include/boost/algorithm/string/classification.hpp - /usr/include/c++/9/locale - /usr/include/c++/9/bits/locale_facets_nonio.h - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h - /usr/include/libintl.h - /usr/include/c++/9/bits/locale_facets_nonio.tcc - /usr/include/c++/9/bits/locale_conv.h - /usr/include/boost/algorithm/string/detail/classification.hpp - /usr/include/boost/algorithm/string/predicate_facade.hpp - /usr/include/boost/algorithm/string/case_conv.hpp - /usr/include/boost/iterator/transform_iterator.hpp - /usr/include/boost/utility/result_of.hpp - /usr/include/boost/preprocessor/iteration/iterate.hpp - /usr/include/boost/preprocessor/slot/slot.hpp - /usr/include/boost/preprocessor/slot/detail/def.hpp - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp - /usr/include/boost/preprocessor/facilities/intercept.hpp - /usr/include/boost/type_traits/type_identity.hpp - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp - /usr/include/boost/preprocessor/slot/detail/shared.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp - /usr/include/boost/utility/detail/result_of_iterate.hpp - /usr/include/boost/algorithm/string/detail/case_conv.hpp - /usr/include/boost/algorithm/string/predicate.hpp - /usr/include/boost/algorithm/string/compare.hpp - /usr/include/boost/algorithm/string/find.hpp - /usr/include/boost/algorithm/string/finder.hpp - /usr/include/boost/algorithm/string/constants.hpp - /usr/include/boost/algorithm/string/detail/finder.hpp - /usr/include/boost/algorithm/string/detail/predicate.hpp - /usr/include/boost/algorithm/string/split.hpp - /usr/include/boost/algorithm/string/iter_find.hpp - /usr/include/boost/algorithm/string/concept.hpp - /usr/include/boost/algorithm/string/find_iterator.hpp - /usr/include/boost/algorithm/string/detail/find_iterator.hpp - /usr/include/boost/function.hpp - /usr/include/boost/preprocessor/iterate.hpp - /usr/include/boost/function/detail/prologue.hpp - /usr/include/c++/9/cassert - /usr/include/boost/config/no_tr1/functional.hpp - /usr/include/boost/throw_exception.hpp - /usr/include/boost/assert/source_location.hpp - /usr/include/boost/current_function.hpp - /usr/include/boost/exception/exception.hpp - /usr/include/boost/function/function_base.hpp - /usr/include/boost/integer.hpp - /usr/include/boost/integer_fwd.hpp - /usr/include/boost/integer_traits.hpp - /usr/include/boost/type_index.hpp - /usr/include/boost/type_index/stl_type_index.hpp - /usr/include/boost/type_index/type_index_facade.hpp - /usr/include/boost/container_hash/hash_fwd.hpp - /usr/include/boost/core/demangle.hpp - /usr/include/c++/9/cxxabi.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h - /usr/include/boost/type_traits/has_trivial_copy.hpp - /usr/include/boost/type_traits/is_copy_constructible.hpp - /usr/include/boost/type_traits/is_constructible.hpp - /usr/include/boost/type_traits/is_destructible.hpp - /usr/include/boost/type_traits/is_default_constructible.hpp - /usr/include/boost/type_traits/has_trivial_destructor.hpp - /usr/include/boost/type_traits/composite_traits.hpp - /usr/include/boost/type_traits/is_union.hpp - /usr/include/boost/ref.hpp - /usr/include/boost/core/ref.hpp - /usr/include/boost/type_traits/alignment_of.hpp - /usr/include/boost/type_traits/enable_if.hpp - /usr/include/boost/function_equal.hpp - /usr/include/boost/function/function_fwd.hpp - /usr/include/boost/mem_fn.hpp - /usr/include/boost/bind/mem_fn.hpp - /usr/include/boost/get_pointer.hpp - /usr/include/boost/config/no_tr1/memory.hpp - /usr/include/boost/bind/mem_fn_template.hpp - /usr/include/boost/bind/mem_fn_cc.hpp - /usr/include/boost/preprocessor/enum.hpp - /usr/include/boost/preprocessor/repetition/enum.hpp - /usr/include/boost/preprocessor/enum_params.hpp - /usr/include/boost/function/detail/function_iterate.hpp - /usr/include/boost/function/detail/maybe_include.hpp - /usr/include/boost/function/function_template.hpp - /usr/include/boost/core/no_exceptions_support.hpp - /usr/include/boost/algorithm/string/detail/util.hpp - /usr/include/boost/algorithm/string/join.hpp - /usr/include/boost/algorithm/string/detail/sequence.hpp - /usr/include/boost/mpl/logical.hpp - /usr/include/boost/algorithm/string/replace.hpp - /usr/include/boost/algorithm/string/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format_store.hpp - /usr/include/boost/algorithm/string/detail/replace_storage.hpp - /usr/include/boost/algorithm/string/detail/find_format_all.hpp - /usr/include/boost/algorithm/string/formatter.hpp - /usr/include/boost/algorithm/string/detail/formatter.hpp - /usr/include/boost/algorithm/string/erase.hpp - /home/zzy1/2024/my-online-judge/MYOJ/comm/Log.hpp - /home/zzy1/2024/my-online-judge/MYOJ/comm/httplib.h - /usr/include/arpa/inet.h - /usr/include/netinet/in.h - /usr/include/x86_64-linux-gnu/sys/socket.h - /usr/include/x86_64-linux-gnu/bits/socket.h - /usr/include/x86_64-linux-gnu/bits/socket_type.h - /usr/include/x86_64-linux-gnu/bits/sockaddr.h - /usr/include/x86_64-linux-gnu/asm/socket.h - /usr/include/asm-generic/socket.h - /usr/include/x86_64-linux-gnu/asm/sockios.h - /usr/include/asm-generic/sockios.h - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h - /usr/include/x86_64-linux-gnu/bits/in.h - /usr/include/ifaddrs.h - /usr/include/netdb.h - /usr/include/rpc/netdb.h - /usr/include/x86_64-linux-gnu/bits/netdb.h - /usr/include/resolv.h - /usr/include/x86_64-linux-gnu/sys/param.h - /usr/include/x86_64-linux-gnu/bits/param.h - /usr/include/linux/param.h - /usr/include/x86_64-linux-gnu/asm/param.h - /usr/include/asm-generic/param.h - /usr/include/arpa/nameser.h - /usr/include/arpa/nameser_compat.h - /usr/include/x86_64-linux-gnu/bits/types/res_state.h - /usr/include/netinet/tcp.h - /usr/include/c++/9/csignal - /usr/include/c++/9/condition_variable - /usr/include/c++/9/random - /usr/include/c++/9/cmath - /usr/include/math.h - /usr/include/x86_64-linux-gnu/bits/math-vector.h - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h - /usr/include/x86_64-linux-gnu/bits/fp-logb.h - /usr/include/x86_64-linux-gnu/bits/fp-fast.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h - /usr/include/x86_64-linux-gnu/bits/mathcalls.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h - /usr/include/x86_64-linux-gnu/bits/iscanonical.h - /usr/include/c++/9/bits/random.h - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h - /usr/include/c++/9/bits/random.tcc - /usr/include/c++/9/numeric - /usr/include/c++/9/bits/stl_numeric.h - /usr/include/c++/9/regex - /usr/include/c++/9/bitset - /usr/include/c++/9/bits/regex_constants.h - /usr/include/c++/9/bits/regex_error.h - /usr/include/c++/9/bits/regex_automaton.h - /usr/include/c++/9/bits/regex_automaton.tcc - /usr/include/c++/9/bits/regex_scanner.h - /usr/include/c++/9/bits/regex_scanner.tcc - /usr/include/c++/9/bits/regex_compiler.h - /usr/include/c++/9/bits/regex_compiler.tcc - /usr/include/c++/9/bits/regex.h - /usr/include/c++/9/bits/regex.tcc - /usr/include/c++/9/bits/regex_executor.h - /usr/include/c++/9/bits/regex_executor.tcc - /usr/include/c++/9/thread - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.make deleted file mode 100644 index 7634fab..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.make +++ /dev/null @@ -1,2479 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o: ../OJ_server/OJ_server.cc \ - /usr/include/stdc-predef.h \ - /usr/include/c++/9/fstream \ - /usr/include/c++/9/istream \ - /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/features.h \ - /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/include/c++/9/bits/stringfwd.h \ - /usr/include/c++/9/bits/memoryfwd.h \ - /usr/include/c++/9/bits/postypes.h \ - /usr/include/c++/9/cwchar \ - /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception \ - /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo \ - /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new \ - /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h \ - /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h \ - /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h \ - /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h \ - /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale \ - /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h \ - /usr/include/c++/9/cctype \ - /usr/include/ctype.h \ - /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h \ - /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h \ - /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h \ - /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h \ - /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h \ - /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h \ - /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h \ - /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h \ - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h \ - /usr/include/c++/9/cstdio \ - /usr/include/stdio.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ - /usr/include/c++/9/cerrno \ - /usr/include/errno.h \ - /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h \ - /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h \ - /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept \ - /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h \ - /usr/include/c++/9/cwctype \ - /usr/include/wctype.h \ - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc \ - /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc \ - /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc \ - /usr/include/c++/9/iostream \ - /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h \ - /usr/include/unistd.h \ - /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h \ - /usr/include/linux/stat.h \ - /usr/include/linux/types.h \ - /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h \ - /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h \ - /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/linux/falloc.h \ - /usr/include/c++/9/stdlib.h \ - ../OJ_server/OJ_Control.hpp \ - /usr/include/c++/9/atomic \ - /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/mutex \ - /usr/include/c++/9/tuple \ - /usr/include/c++/9/utility \ - /usr/include/c++/9/bits/stl_relops.h \ - /usr/include/c++/9/array \ - /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/invoke.h \ - /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio \ - /usr/include/c++/9/limits \ - /usr/include/c++/9/ctime \ - /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h \ - /usr/include/assert.h \ - /usr/include/jsoncpp/json/json.h \ - /usr/include/jsoncpp/json/config.h \ - /usr/include/c++/9/cstddef \ - /usr/include/c++/9/memory \ - /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/unique_ptr.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/backward/auto_ptr.h \ - /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h \ - /usr/include/c++/9/cstring \ - /usr/include/string.h \ - /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h \ - /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h \ - /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h \ - /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h \ - /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h \ - /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque \ - /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc \ - /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h \ - /usr/include/jsoncpp/json/writer.h \ - ../OJ_server/OJ_view.hpp \ - /usr/local/include/ctemplate/template.h \ - /usr/local/include/ctemplate/template_cache.h \ - /usr/include/c++/9/unordered_map \ - /usr/include/c++/9/bits/hashtable.h \ - /usr/include/c++/9/bits/hashtable_policy.h \ - /usr/include/c++/9/bits/unordered_map.h \ - /usr/local/include/ctemplate/template_emitter.h \ - /usr/local/include/ctemplate/template_enums.h \ - /usr/local/include/ctemplate/template_string.h \ - /usr/local/include/ctemplate/per_expand_data.h \ - /usr/local/include/ctemplate/template_dictionary.h \ - /usr/include/c++/9/functional \ - /usr/include/c++/9/bits/std_function.h \ - /usr/local/include/ctemplate/str_ref.h \ - /usr/local/include/ctemplate/template_dictionary_interface.h \ - /usr/local/include/ctemplate/template_modifiers.h \ - /usr/local/include/ctemplate/template_namelist.h \ - /usr/include/c++/9/unordered_set \ - /usr/include/c++/9/bits/unordered_set.h \ - ../comm/Comm_model_MySQL.hpp \ - /usr/include/mysql/mysql.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h \ - /usr/include/mysql/field_types.h \ - /usr/include/mysql/my_list.h \ - /usr/include/mysql/mysql_com.h \ - /usr/include/mysql/my_command.h \ - /usr/include/mysql/my_compress.h \ - /usr/include/mysql/udf_registration_types.h \ - /usr/include/mysql/client_plugin.h \ - /usr/include/mysql/plugin_auth_common.h \ - /usr/include/mysql/mysql_version.h \ - /usr/include/mysql/mysql_time.h \ - /usr/include/mysql/errmsg.h \ - ../comm/util.hpp \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp \ - /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp \ - /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/c++/9/list \ - /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist \ - /usr/include/c++/9/algorithm \ - /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp \ - /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp \ - /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp \ - /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/c++/9/iterator \ - /usr/include/c++/9/bits/stream_iterator.h \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp \ - /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp \ - /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp \ - /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp \ - /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp \ - /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp \ - /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp \ - /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp \ - /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp \ - /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp \ - /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp \ - /usr/include/c++/9/climits \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp \ - /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp \ - /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/c++/9/locale \ - /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h \ - /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/c++/9/cassert \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp \ - /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp \ - /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp \ - /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp \ - /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp \ - /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - ../comm/Log.hpp \ - ../comm/httplib.h \ - /usr/include/arpa/inet.h \ - /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h \ - /usr/include/ifaddrs.h \ - /usr/include/netdb.h \ - /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h \ - /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/include/x86_64-linux-gnu/bits/param.h \ - /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h \ - /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h \ - /usr/include/c++/9/csignal \ - /usr/include/c++/9/condition_variable \ - /usr/include/c++/9/random \ - /usr/include/c++/9/cmath \ - /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc \ - /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h \ - /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset \ - /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h \ - /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc \ - /usr/include/c++/9/thread - - -/usr/include/c++/9/thread: - -/usr/include/c++/9/bits/regex_executor.h: - -/usr/include/c++/9/bits/regex_compiler.h: - -/usr/include/c++/9/bits/regex_scanner.h: - -/usr/include/c++/9/bits/regex_automaton.tcc: - -/usr/include/c++/9/regex: - -/usr/include/c++/9/bits/random.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h: - -/usr/include/x86_64-linux-gnu/bits/fp-fast.h: - -/usr/include/c++/9/cmath: - -/usr/include/c++/9/random: - -/usr/include/c++/9/csignal: - -/usr/include/x86_64-linux-gnu/bits/types/res_state.h: - -/usr/include/x86_64-linux-gnu/asm/param.h: - -/usr/include/linux/param.h: - -/usr/include/x86_64-linux-gnu/bits/param.h: - -/usr/include/x86_64-linux-gnu/bits/netdb.h: - -/usr/include/rpc/netdb.h: - -/usr/include/ifaddrs.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: - -/usr/include/asm-generic/sockios.h: - -/usr/include/c++/9/bits/regex_scanner.tcc: - -/usr/include/x86_64-linux-gnu/asm/sockios.h: - -/usr/include/x86_64-linux-gnu/bits/sockaddr.h: - -/usr/include/x86_64-linux-gnu/bits/socket_type.h: - -../comm/Log.hpp: - -/usr/include/boost/algorithm/string/detail/find_format_all.hpp: - -/usr/include/boost/algorithm/string/detail/replace_storage.hpp: - -/usr/include/boost/algorithm/string/find_format.hpp: - -/usr/include/boost/algorithm/string/replace.hpp: - -/usr/include/boost/mpl/logical.hpp: - -/usr/include/boost/algorithm/string/detail/util.hpp: - -/usr/include/boost/core/no_exceptions_support.hpp: - -/usr/include/boost/function/function_template.hpp: - -/usr/include/boost/function/detail/function_iterate.hpp: - -/usr/include/boost/preprocessor/repetition/enum.hpp: - -/usr/include/boost/bind/mem_fn_template.hpp: - -/usr/include/boost/config/no_tr1/memory.hpp: - -/usr/include/boost/get_pointer.hpp: - -/usr/include/boost/function_equal.hpp: - -/usr/include/boost/core/ref.hpp: - -/usr/include/boost/ref.hpp: - -/usr/include/boost/type_traits/is_union.hpp: - -/usr/include/boost/type_traits/composite_traits.hpp: - -/usr/include/boost/type_traits/has_trivial_destructor.hpp: - -/usr/include/boost/type_traits/is_default_constructible.hpp: - -/usr/include/boost/type_traits/is_destructible.hpp: - -/usr/include/boost/type_traits/is_copy_constructible.hpp: - -/usr/include/boost/type_traits/has_trivial_copy.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h: - -/usr/include/c++/9/cxxabi.h: - -/usr/include/boost/core/demangle.hpp: - -/usr/include/boost/type_index/stl_type_index.hpp: - -/usr/include/boost/type_index.hpp: - -/usr/include/boost/integer.hpp: - -/usr/include/boost/function/function_base.hpp: - -/usr/include/boost/current_function.hpp: - -/usr/include/boost/assert/source_location.hpp: - -/usr/include/x86_64-linux-gnu/bits/flt-eval-method.h: - -/usr/include/boost/preprocessor/iterate.hpp: - -/usr/include/boost/function.hpp: - -/usr/include/boost/algorithm/string/detail/find_iterator.hpp: - -/usr/include/boost/algorithm/string/find_iterator.hpp: - -/usr/include/boost/algorithm/string/concept.hpp: - -/usr/include/boost/algorithm/string/iter_find.hpp: - -/usr/include/boost/algorithm/string/split.hpp: - -/usr/include/boost/algorithm/string/detail/finder.hpp: - -/usr/include/boost/algorithm/string/finder.hpp: - -/usr/include/boost/algorithm/string/find.hpp: - -/usr/include/boost/algorithm/string/compare.hpp: - -/usr/include/boost/algorithm/string/predicate.hpp: - -/usr/include/boost/algorithm/string/detail/case_conv.hpp: - -/usr/include/c++/9/bits/regex.tcc: - -/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp: - -/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp: - -/usr/include/boost/type_traits/type_identity.hpp: - -/usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp: - -/usr/include/boost/preprocessor/iteration/iterate.hpp: - -/usr/include/boost/algorithm/string/detail/classification.hpp: - -/usr/include/c++/9/bits/locale_conv.h: - -/usr/include/c++/9/bits/locale_facets_nonio.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: - -/usr/include/c++/9/bits/locale_facets_nonio.h: - -/usr/include/c++/9/locale: - -/usr/include/boost/algorithm/string/classification.hpp: - -/usr/include/boost/algorithm/string/detail/trim.hpp: - -/usr/include/boost/type_traits/has_minus_assign.hpp: - -/usr/include/boost/type_traits/has_minus.hpp: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h: - -/usr/include/boost/preprocessor/slot/slot.hpp: - -/usr/include/boost/type_traits/has_plus_assign.hpp: - -/usr/include/boost/type_traits/make_void.hpp: - -/usr/include/boost/type_traits/detail/has_binary_operator.hpp: - -/usr/include/boost/type_traits/has_plus.hpp: - -/usr/include/boost/range/detail/safe_bool.hpp: - -/usr/include/boost/range/algorithm/equal.hpp: - -/usr/include/boost/iterator/iterator_adaptor.hpp: - -/usr/include/boost/range/reverse_iterator.hpp: - -/usr/include/boost/range/rbegin.hpp: - -/usr/include/boost/iterator/distance.hpp: - -/usr/include/boost/range/distance.hpp: - -/usr/include/boost/core/noncopyable.hpp: - -/usr/include/boost/core/checked_delete.hpp: - -/usr/include/boost/iterator/transform_iterator.hpp: - -/usr/include/boost/iterator/advance.hpp: - -/usr/include/boost/utility/identity_type.hpp: - -/usr/include/boost/preprocessor/logical/not.hpp: - -/usr/include/boost/preprocessor/comparison/less_equal.hpp: - -/usr/include/boost/preprocessor/arithmetic/mod.hpp: - -/usr/include/boost/preprocessor/seq/transform.hpp: - -/usr/include/boost/preprocessor/seq/fold_left.hpp: - -/usr/include/c++/9/numeric: - -/usr/include/boost/preprocessor/seq/cat.hpp: - -/usr/include/boost/preprocessor/control/deduce_d.hpp: - -/usr/include/boost/algorithm/string/detail/find_format_store.hpp: - -/usr/include/boost/utility/binary.hpp: - -/usr/include/arpa/nameser.h: - -/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp: - -/usr/include/boost/preprocessor/repetition/enum_binary_params.hpp: - -/usr/include/boost/utility/base_from_member.hpp: - -/usr/include/boost/utility.hpp: - -/usr/include/boost/cstdint.hpp: - -/usr/include/boost/range/detail/has_member_size.hpp: - -/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: - -/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h: - -/usr/include/boost/type_traits/is_signed.hpp: - -/usr/include/boost/type_traits/make_unsigned.hpp: - -/usr/include/boost/range/value_type.hpp: - -/usr/include/boost/concept/detail/concept_undef.hpp: - -/usr/include/boost/preprocessor/seq/detail/is_empty.hpp: - -/usr/include/boost/preprocessor/seq/elem.hpp: - -/usr/include/boost/preprocessor/repetition/detail/for.hpp: - -/usr/include/boost/preprocessor/seq/for_each_i.hpp: - -/usr/include/c++/9/condition_variable: - -/usr/include/boost/concept/detail/concept_def.hpp: - -/usr/include/boost/type_traits/conversion_traits.hpp: - -/usr/include/boost/concept/detail/has_constraints.hpp: - -/usr/include/boost/concept/detail/backward_compatibility.hpp: - -/usr/include/boost/concept/detail/general.hpp: - -/usr/include/boost/concept_check.hpp: - -/usr/include/boost/range/concepts.hpp: - -/usr/include/boost/core/enable_if.hpp: - -/usr/include/boost/range/has_range_iterator.hpp: - -/usr/include/boost/range/size_type.hpp: - -/usr/include/boost/type_traits/is_base_and_derived.hpp: - -/usr/include/boost/mpl/aux_/config/bcc.hpp: - -/usr/include/boost/mpl/void.hpp: - -/usr/include/boost/mpl/aux_/full_lambda.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp: - -/usr/include/boost/mpl/aux_/common_name_wknd.hpp: - -/usr/include/boost/mpl/aux_/config/bind.hpp: - -/usr/include/boost/mpl/bind_fwd.hpp: - -/usr/include/boost/mpl/bind.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp: - -/usr/include/boost/mpl/aux_/msvc_never_true.hpp: - -/usr/include/limits.h: - -/usr/include/boost/mpl/aux_/config/has_apply.hpp: - -/usr/include/boost/mpl/aux_/has_apply.hpp: - -/usr/include/boost/mpl/apply_wrap.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/default_params.hpp: - -/usr/include/linux/limits.h: - -/usr/include/boost/mpl/always.hpp: - -/usr/include/x86_64-linux-gnu/sys/socket.h: - -/usr/include/boost/type_traits/is_enum.hpp: - -/usr/include/x86_64-linux-gnu/bits/uio_lim.h: - -/usr/include/boost/type_traits/is_pod.hpp: - -/usr/include/boost/type_traits/add_pointer.hpp: - -/usr/include/boost/utility/enable_if.hpp: - -/usr/include/boost/type_traits/add_const.hpp: - -/usr/include/boost/core/addressof.hpp: - -/usr/include/boost/type_traits/remove_cv.hpp: - -/usr/include/c++/9/bits/ptr_traits.h: - -/usr/include/jsoncpp/json/json.h: - -/usr/include/assert.h: - -/usr/include/boost/mpl/placeholders.hpp: - -/usr/include/c++/9/bits/stl_relops.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: - -/usr/include/c++/9/tuple: - -/usr/include/c++/9/chrono: - -/usr/include/boost/type_traits/alignment_of.hpp: - -/usr/include/c++/9/algorithm: - -/usr/include/c++/9/mutex: - -/usr/include/boost/type_traits/is_floating_point.hpp: - -/usr/include/c++/9/bits/atomic_lockfree_defines.h: - -/usr/include/c++/9/typeinfo: - -/usr/include/c++/9/sstream: - -/usr/include/boost/type_traits/is_arithmetic.hpp: - -/usr/include/boost/function/detail/prologue.hpp: - -/usr/include/c++/9/bits/list.tcc: - -/usr/include/c++/9/bits/algorithmfwd.h: - -/usr/include/boost/range/size.hpp: - -/usr/include/c++/9/memory: - -/usr/include/c++/9/cerrno: - -/usr/include/c++/9/bits/regex_automaton.h: - -/usr/include/x86_64-linux-gnu/asm/posix_types.h: - -/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: - -/usr/include/netinet/tcp.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: - -/usr/include/linux/stddef.h: - -/usr/include/asm-generic/bitsperlong.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: - -/usr/include/asm-generic/int-ll64.h: - -/usr/include/boost/preprocessor/debug/error.hpp: - -/usr/include/linux/types.h: - -/usr/include/boost/preprocessor/control/while.hpp: - -/usr/include/boost/mpl/protect.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigthread.h: - -/usr/include/c++/9/bits/parse_numbers.h: - -/usr/include/boost/throw_exception.hpp: - -/usr/include/c++/9/iostream: - -/usr/include/boost/config/stdlib/libstdcpp3.hpp: - -/usr/include/boost/type_traits/is_void.hpp: - -/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: - -/usr/include/boost/algorithm/string/join.hpp: - -/usr/include/c++/9/bits/stl_tempbuf.h: - -/usr/include/x86_64-linux-gnu/bits/posix_opt.h: - -/usr/include/x86_64-linux-gnu/bits/sigstksz.h: - -/usr/include/c++/9/bits/ostream.tcc: - -/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: - -/usr/include/c++/9/array: - -/usr/include/boost/bind/mem_fn.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: - -/usr/include/boost/type_traits/is_reference.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: - -/usr/include/c++/9/bits/regex_error.h: - -/usr/include/x86_64-linux-gnu/bits/confname.h: - -/usr/include/c++/9/cassert: - -/usr/include/c++/9/utility: - -/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: - -/usr/include/c++/9/bits/exception_ptr.h: - -/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: - -/usr/include/boost/algorithm/string/case_conv.hpp: - -/usr/include/x86_64-linux-gnu/bits/ss_flags.h: - -/usr/include/boost/utility/detail/result_of_iterate.hpp: - -/usr/include/x86_64-linux-gnu/bits/signum-arch.h: - -/usr/include/x86_64-linux-gnu/bits/errno.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: - -/usr/include/boost/concept/usage.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: - -/usr/include/c++/9/bits/codecvt.h: - -/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp: - -/usr/include/features.h: - -/usr/include/c++/9/ostream: - -/usr/include/c++/9/bits/streambuf_iterator.h: - -/usr/include/jsoncpp/json/writer.h: - -/usr/include/boost/mpl/aux_/arity_spec.hpp: - -/usr/include/arpa/inet.h: - -/usr/include/x86_64-linux-gnu/bits/sigaction.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: - -/usr/include/boost/preprocessor/enum_params.hpp: - -/usr/include/boost/preprocessor/seq/enum.hpp: - -/usr/include/boost/preprocessor/facilities/expand.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: - -/usr/include/jsoncpp/json/forwards.h: - -/usr/include/boost/mpl/next_prior.hpp: - -/usr/include/c++/9/streambuf: - -/usr/include/x86_64-linux-gnu/bits/sched.h: - -/usr/include/c++/9/climits: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp: - -/usr/include/x86_64-linux-gnu/bits/statx.h: - -/usr/include/boost/exception/exception.hpp: - -/usr/include/unistd.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: - -/usr/include/c++/9/system_error: - -/usr/include/boost/algorithm/string/detail/formatter.hpp: - -/usr/include/boost/range/rend.hpp: - -/usr/include/boost/mpl/quote.hpp: - -/usr/include/boost/preprocessor/identity.hpp: - -/usr/include/c++/9/bits/locale_classes.tcc: - -/usr/include/boost/type_traits/is_unsigned.hpp: - -/usr/include/c++/9/bits/basic_string.tcc: - -/usr/include/boost/mpl/aux_/static_cast.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/error_t.h: - -/usr/include/asm-generic/errno.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: - -/usr/include/mysql/mysql_version.h: - -/usr/include/c++/9/bits/uses_allocator.h: - -/usr/include/boost/bind/mem_fn_cc.hpp: - -/usr/include/wctype.h: - -/usr/include/netdb.h: - -/usr/include/sched.h: - -/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: - -/usr/include/stdio.h: - -/usr/include/boost/mpl/int_fwd.hpp: - -/usr/include/c++/9/ratio: - -../OJ_server/OJ_Control.hpp: - -/usr/include/x86_64-linux-gnu/bits/time.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: - -/usr/include/c++/9/bits/fstream.tcc: - -/usr/include/x86_64-linux-gnu/bits/byteswap.h: - -/usr/include/x86_64-linux-gnu/bits/in.h: - -/usr/include/boost/config/detail/select_stdlib_config.hpp: - -/usr/include/endian.h: - -/usr/include/stdint.h: - -/usr/include/asm-generic/socket.h: - -/usr/include/x86_64-linux-gnu/sys/types.h: - -/usr/include/arpa/nameser_compat.h: - -/usr/include/c++/9/bits/locale_facets.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: - -/usr/include/boost/iterator/detail/enable_if.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h: - -/usr/include/c++/9/type_traits: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp: - -/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: - -/usr/include/x86_64-linux-gnu/bits/timex.h: - -/usr/include/boost/function/detail/maybe_include.hpp: - -/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: - -/usr/include/boost/mpl/aux_/na_assert.hpp: - -/usr/include/x86_64-linux-gnu/bits/timesize.h: - -/usr/include/c++/9/bits/atomic_base.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: - -/usr/include/x86_64-linux-gnu/asm/types.h: - -/usr/include/c++/9/bits/allocator.h: - -/usr/include/c++/9/bits/streambuf.tcc: - -/usr/include/c++/9/backward/binders.h: - -/usr/include/boost/preprocessor/facilities/intercept.hpp: - -/usr/include/c++/9/stdexcept: - -/usr/include/c++/9/cstdio: - -/usr/include/c++/9/bits/cxxabi_init_exception.h: - -/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: - -/usr/include/resolv.h: - -/usr/include/fcntl.h: - -../comm/util.hpp: - -/usr/include/boost/algorithm/string/formatter.hpp: - -/usr/include/boost/type_traits/add_rvalue_reference.hpp: - -/usr/include/boost/static_assert.hpp: - -/usr/include/mysql/udf_registration_types.h: - -/usr/include/boost/preprocessor/variadic/elem.hpp: - -/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: - -/usr/include/boost/range/end.hpp: - -/usr/include/c++/9/exception: - -/usr/include/boost/config/user.hpp: - -/usr/include/c++/9/bits/localefwd.h: - -../OJ_server/OJ_view.hpp: - -/usr/include/jsoncpp/json/config.h: - -/usr/include/ctype.h: - -/usr/include/c++/9/bits/exception.h: - -/usr/include/boost/mpl/aux_/config/ctps.hpp: - -/usr/include/x86_64-linux-gnu/bits/math-vector.h: - -/usr/include/c++/9/bits/unique_lock.h: - -/usr/include/x86_64-linux-gnu/bits/fp-logb.h: - -/usr/include/c++/9/bits/stl_function.h: - -/usr/include/c++/9/deque: - -/usr/include/boost/algorithm/string/erase.hpp: - -/usr/include/c++/9/bits/basic_string.h: - -/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: - -../comm/httplib.h: - -/usr/include/c++/9/ctime: - -/usr/include/linux/stat.h: - -/usr/include/boost/mpl/aux_/config/eti.hpp: - -/usr/include/c++/9/bits/stl_pair.h: - -/usr/include/c++/9/bits/char_traits.h: - -/usr/include/boost/type_traits/conditional.hpp: - -/usr/include/linux/falloc.h: - -/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: - -/usr/include/boost/iterator/iterator_concepts.hpp: - -/usr/include/boost/mpl/aux_/arity.hpp: - -/usr/include/x86_64-linux-gnu/sys/cdefs.h: - -/usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp: - -/usr/include/boost/mpl/aux_/template_arity.hpp: - -/usr/include/boost/mpl/identity.hpp: - -/usr/include/x86_64-linux-gnu/bits/fcntl.h: - -/usr/include/x86_64-linux-gnu/asm/errno.h: - -/usr/include/boost/type_traits/add_volatile.hpp: - -/usr/include/c++/9/bits/istream.tcc: - -/usr/include/boost/next_prior.hpp: - -/usr/include/boost/type_traits/add_lvalue_reference.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: - -/usr/include/boost/type_traits/is_pointer.hpp: - -/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: - -/usr/include/c++/9/bits/memoryfwd.h: - -/usr/include/x86_64-linux-gnu/bits/cpu-set.h: - -/usr/include/boost/mpl/not.hpp: - -/usr/include/asm-generic/errno-base.h: - -/usr/include/x86_64-linux-gnu/sys/wait.h: - -/usr/include/boost/config/no_tr1/functional.hpp: - -/usr/include/c++/9/bits/std_abs.h: - -/usr/include/x86_64-linux-gnu/bits/signum-generic.h: - -/usr/include/c++/9/ext/type_traits.h: - -/usr/include/c++/9/version: - -/usr/include/boost/mpl/aux_/preprocessor/params.hpp: - -/usr/include/boost/type_traits/is_function.hpp: - -/usr/include/c++/9/bits/nested_exception.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp: - -/usr/include/linux/errno.h: - -/usr/include/mysql/errmsg.h: - -/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h: - -/usr/include/boost/concept/assert.hpp: - -/usr/include/boost/type_traits/detail/config.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: - -/usr/include/c++/9/bits/ios_base.h: - -/usr/include/x86_64-linux-gnu/bits/floatn-common.h: - -/usr/include/c++/9/bits/stl_iterator.h: - -/usr/include/math.h: - -/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: - -/usr/include/c++/9/bits/regex_executor.tcc: - -/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: - -/usr/include/x86_64-linux-gnu/asm/socket.h: - -/usr/include/x86_64-linux-gnu/bits/wchar.h: - -/usr/include/asm-generic/posix_types.h: - -/usr/include/c++/9/backward/auto_ptr.h: - -/usr/include/boost/iterator/detail/config_undef.hpp: - -/usr/include/c++/9/bits/invoke.h: - -/usr/include/linux/posix_types.h: - -/usr/include/c++/9/functional: - -/usr/include/c++/9/bits/random.h: - -/usr/include/x86_64-linux-gnu/bits/select.h: - -/usr/include/boost/preprocessor/detail/is_binary.hpp: - -/usr/include/boost/algorithm/string/detail/sequence.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: - -/usr/include/x86_64-linux-gnu/sys/stat.h: - -/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: - -/usr/include/x86_64-linux-gnu/bits/local_lim.h: - -/usr/include/boost/mpl/aux_/lambda_arity_param.hpp: - -/usr/local/include/ctemplate/template_modifiers.h: - -/usr/include/c++/9/bits/concept_check.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: - -/usr/include/boost/preprocessor/repetition/for.hpp: - -/usr/include/c++/9/bits/basic_ios.h: - -/usr/include/x86_64-linux-gnu/sys/ucontext.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: - -/usr/include/c++/9/bits/stl_numeric.h: - -/usr/include/boost/mpl/aux_/value_wknd.hpp: - -/usr/include/boost/mpl/aux_/config/use_preprocessed.hpp: - -/usr/include/boost/mpl/aux_/adl_barrier.hpp: - -/usr/include/c++/9/ext/new_allocator.h: - -/usr/include/c++/9/bits/stl_construct.h: - -/usr/include/c++/9/bits/std_mutex.h: - -/usr/include/boost/type_traits/is_array.hpp: - -/usr/include/x86_64-linux-gnu/bits/wordsize.h: - -/usr/include/boost/preprocessor/detail/check.hpp: - -/usr/include/c++/9/bits/std_function.h: - -/usr/include/c++/9/fstream: - -/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: - -/usr/include/boost/preprocessor/arithmetic/inc.hpp: - -/usr/include/x86_64-linux-gnu/bits/socket.h: - -/usr/include/x86_64-linux-gnu/bits/long-double.h: - -/usr/include/boost/range/detail/misc_concept.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: - -/usr/include/stdc-predef.h: - -/usr/include/c++/9/bits/stl_iterator_base_types.h: - -/usr/include/boost/preprocessor/enum.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: - -/usr/include/c++/9/new: - -/usr/include/boost/mpl/aux_/yes_no.hpp: - -/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: - -/usr/include/c++/9/bits/regex.h: - -/usr/include/boost/mpl/apply_fwd.hpp: - -/usr/include/c++/9/bits/stringfwd.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: - -/usr/include/boost/mpl/arg_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: - -/usr/include/boost/limits.hpp: - -/usr/include/c++/9/cstdlib: - -/usr/include/boost/range/detail/common.hpp: - -/usr/include/boost/mpl/aux_/nested_type_wknd.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: - -/usr/include/c++/9/ios: - -/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: - -/usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp: - -/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: - -/usr/include/features-time64.h: - -/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: - -/usr/include/c++/9/iosfwd: - -/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: - -/usr/include/pthread.h: - -/usr/include/boost/preprocessor/punctuation/comma.hpp: - -/usr/include/boost/mpl/integral_c_tag.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: - -/usr/include/x86_64-linux-gnu/bits/struct_stat.h: - -/usr/include/signal.h: - -/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: - -/usr/include/boost/utility/result_of.hpp: - -/usr/include/x86_64-linux-gnu/bits/getopt_core.h: - -/usr/include/boost/range/config.hpp: - -/usr/include/boost/mpl/aux_/config/nttp.hpp: - -/usr/include/c++/9/bits/hashtable.h: - -/usr/include/boost/mem_fn.hpp: - -/usr/include/boost/mpl/limits/arity.hpp: - -/usr/local/include/ctemplate/str_ref.h: - -/usr/include/c++/9/bits/predefined_ops.h: - -/usr/include/c++/9/cctype: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: - -../OJ_server/OJ_server.cc: - -/usr/include/x86_64-linux-gnu/gnu/stubs.h: - -/usr/include/x86_64-linux-gnu/bits/mathcalls.h: - -/usr/include/x86_64-linux-gnu/bits/endian.h: - -/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: - -/usr/include/boost/iterator/detail/config_def.hpp: - -/usr/include/x86_64-linux-gnu/sys/param.h: - -/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h: - -/usr/include/x86_64-linux-gnu/bits/typesizes.h: - -/usr/include/boost/algorithm/string/detail/find_format.hpp: - -/usr/include/c++/9/cstdint: - -/usr/include/x86_64-linux-gnu/bits/stat.h: - -/usr/include/x86_64-linux-gnu/bits/waitstatus.h: - -/usr/include/c++/9/bits/stl_tree.h: - -/usr/include/c++/9/bits/stl_vector.h: - -/usr/include/boost/algorithm/string.hpp: - -/usr/include/x86_64-linux-gnu/bits/time64.h: - -/usr/include/boost/range/mutable_iterator.hpp: - -/usr/include/c++/9/limits: - -/usr/include/c++/9/bits/basic_ios.tcc: - -/usr/include/c++/9/bits/cxxabi_forced.h: - -/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: - -/usr/include/c++/9/unordered_set: - -/usr/include/x86_64-linux-gnu/bits/signal_ext.h: - -/usr/include/x86_64-linux-gnu/bits/types.h: - -/usr/include/c++/9/bits/refwrap.h: - -/usr/include/boost/algorithm/string/predicate_facade.hpp: - -/usr/include/c++/9/unordered_map: - -/usr/include/asm-generic/param.h: - -/usr/include/boost/type_traits/detail/is_function_cxx_11.hpp: - -/usr/include/c++/9/cwctype: - -/usr/include/boost/type_traits/is_rvalue_reference.hpp: - -/usr/include/boost/mpl/bool_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/endianness.h: - -/usr/include/c++/9/bits/range_access.h: - -/usr/include/c++/9/cwchar: - -/usr/include/c++/9/ext/atomicity.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: - -/usr/local/include/ctemplate/template_string.h: - -/usr/include/boost/range/iterator_range_core.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/FILE.h: - -/usr/include/x86_64-linux-gnu/bits/types/time_t.h: - -/usr/include/c++/9/bits/stl_iterator_base_funcs.h: - -/usr/include/boost/iterator/reverse_iterator.hpp: - -/usr/include/c++/9/bits/shared_ptr_atomic.h: - -/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: - -/usr/include/linux/close_range.h: - -/usr/include/c++/9/bits/hash_bytes.h: - -/usr/include/c++/9/ext/slist: - -/usr/include/boost/range/iterator_range_io.hpp: - -/usr/include/locale.h: - -/usr/include/boost/function/function_fwd.hpp: - -/usr/include/boost/preprocessor/slot/detail/def.hpp: - -/usr/include/x86_64-linux-gnu/bits/setjmp.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: - -/usr/include/c++/9/ext/string_conversions.h: - -/usr/include/c++/9/bits/stl_raw_storage_iter.h: - -/usr/include/x86_64-linux-gnu/bits/floatn.h: - -/usr/include/boost/integer_fwd.hpp: - -/usr/include/boost/type_traits/is_volatile.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigcontext.h: - -/usr/include/strings.h: - -/usr/include/c++/9/bits/locale_facets.tcc: - -../comm/Comm_model_MySQL.hpp: - -/usr/include/libintl.h: - -/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: - -/usr/include/boost/type_traits/is_member_pointer.hpp: - -/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: - -/usr/include/boost/type_index/type_index_facade.hpp: - -/usr/include/c++/9/stdlib.h: - -/usr/include/boost/mpl/lambda.hpp: - -/usr/include/c++/9/bits/locale_classes.h: - -/usr/include/c++/9/debug/assertions.h: - -/usr/include/boost/preprocessor/empty.hpp: - -/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: - -/usr/include/x86_64-linux-gnu/bits/locale.h: - -/usr/include/c++/9/string: - -/usr/include/alloca.h: - -/usr/include/boost/range/detail/str_types.hpp: - -/usr/include/c++/9/bits/ostream_insert.h: - -/usr/include/errno.h: - -/usr/include/boost/preprocessor/tuple/elem.hpp: - -/usr/include/c++/9/bits/postypes.h: - -/usr/include/boost/mpl/aux_/config/msvc.hpp: - -/usr/include/boost/mpl/aux_/config/preprocessor.hpp: - -/usr/include/x86_64-linux-gnu/bits/environments.h: - -/usr/include/boost/type_traits/remove_pointer.hpp: - -/usr/include/stdlib.h: - -/usr/include/boost/preprocessor/arithmetic/dec.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: - -/usr/include/c++/9/bits/stl_bvector.h: - -/usr/include/c++/9/bits/stl_deque.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: - -/usr/include/boost/preprocessor/cat.hpp: - -/usr/include/c++/9/bits/stl_heap.h: - -/usr/include/boost/mpl/aux_/config/has_xxx.hpp: - -/usr/include/x86_64-linux-gnu/bits/waitflags.h: - -/usr/include/mysql/my_list.h: - -/usr/include/c++/9/bits/stl_uninitialized.h: - -/usr/include/c++/9/ext/concurrence.h: - -/usr/include/c++/9/bits/unique_ptr.h: - -/usr/include/c++/9/bits/stl_list.h: - -/usr/include/c++/9/bits/allocated_ptr.h: - -/usr/include/boost/algorithm/string/config.hpp: - -/usr/include/c++/9/ext/aligned_buffer.h: - -/usr/include/boost/integer_traits.hpp: - -/usr/include/x86_64-linux-gnu/sys/time.h: - -/usr/include/c++/9/bits/sstream.tcc: - -/usr/include/jsoncpp/json/allocator.h: - -/usr/include/asm-generic/types.h: - -/usr/include/c++/9/cstring: - -/usr/include/string.h: - -/usr/include/jsoncpp/json/version.h: - -/usr/include/jsoncpp/json/reader.h: - -/usr/include/boost/preprocessor/seq/seq.hpp: - -/usr/include/jsoncpp/json/value.h: - -/usr/include/boost/mpl/aux_/config/workaround.hpp: - -/usr/include/c++/9/map: - -/usr/include/c++/9/bits/stl_multimap.h: - -/usr/include/c++/9/vector: - -/usr/include/boost/type_traits/function_traits.hpp: - -/usr/include/c++/9/bits/vector.tcc: - -/usr/include/c++/9/bits/deque.tcc: - -/usr/include/c++/9/stack: - -/usr/include/mysql/my_command.h: - -/usr/include/boost/range/detail/implementation_help.hpp: - -/usr/local/include/ctemplate/template.h: - -/usr/include/x86_64-linux-gnu/sys/select.h: - -/usr/local/include/ctemplate/template_cache.h: - -/usr/include/c++/9/bits/hashtable_policy.h: - -/usr/include/c++/9/ext/numeric_traits.h: - -/usr/include/c++/9/bits/unordered_map.h: - -/usr/local/include/ctemplate/template_emitter.h: - -/usr/include/boost/range/difference_type.hpp: - -/usr/local/include/ctemplate/template_enums.h: - -/usr/local/include/ctemplate/template_dictionary.h: - -/usr/local/include/ctemplate/template_dictionary_interface.h: - -/usr/include/x86_64-linux-gnu/bits/iscanonical.h: - -/usr/include/boost/algorithm/string/trim.hpp: - -/usr/local/include/ctemplate/template_namelist.h: - -/usr/include/c++/9/ext/alloc_traits.h: - -/usr/include/boost/preprocessor/logical/compl.hpp: - -/usr/include/mysql/mysql.h: - -/usr/include/boost/config/workaround.hpp: - -/usr/include/boost/mpl/aux_/config/gpu.hpp: - -/usr/include/boost/range/range_fwd.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h: - -/usr/include/mysql/field_types.h: - -/usr/include/mysql/mysql_com.h: - -/usr/include/boost/type_traits/add_reference.hpp: - -/usr/include/boost/type_traits/integral_constant.hpp: - -/usr/include/boost/algorithm/string/constants.hpp: - -/usr/include/mysql/my_compress.h: - -/usr/include/x86_64-linux-gnu/bits/statx-generic.h: - -/usr/include/wchar.h: - -/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: - -/usr/include/c++/9/atomic: - -/usr/include/mysql/client_plugin.h: - -/usr/include/mysql/plugin_auth_common.h: - -/usr/include/boost/mpl/aux_/config/compiler.hpp: - -/usr/include/c++/9/bits/alloc_traits.h: - -/usr/include/mysql/mysql_time.h: - -/usr/include/c++/9/bits/stl_stack.h: - -/usr/include/boost/type_traits/declval.hpp: - -/usr/include/boost/algorithm/string/std_containers_traits.hpp: - -/usr/include/boost/mpl/apply.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: - -/usr/include/boost/config/detail/select_compiler_config.hpp: - -/usr/include/c++/9/debug/debug.h: - -/usr/include/boost/config/detail/select_platform_config.hpp: - -/usr/include/boost/config/platform/linux.hpp: - -/usr/include/boost/type_traits/is_class.hpp: - -/usr/include/boost/config/detail/suffix.hpp: - -/usr/include/boost/algorithm/string/sequence_traits.hpp: - -/usr/include/boost/type_traits/is_integral.hpp: - -/usr/include/boost/config/helper_macros.hpp: - -/usr/include/boost/type_traits/is_constructible.hpp: - -/usr/include/boost/algorithm/string/std/string_traits.hpp: - -/usr/include/boost/algorithm/string/yes_no_type.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: - -/usr/include/boost/mpl/bool.hpp: - -/usr/include/c++/9/bits/unordered_set.h: - -/usr/include/boost/mpl/aux_/config/adl.hpp: - -/usr/include/boost/mpl/aux_/config/gcc.hpp: - -/usr/include/boost/mpl/aux_/config/ttp.hpp: - -/usr/include/boost/detail/workaround.hpp: - -/usr/include/c++/9/bits/regex_compiler.tcc: - -/usr/include/boost/mpl/aux_/config/static_constant.hpp: - -/usr/include/boost/mpl/lambda_fwd.hpp: - -/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp: - -/usr/include/time.h: - -/usr/include/boost/algorithm/string/std/list_traits.hpp: - -/usr/include/c++/9/istream: - -/usr/include/c++/9/list: - -/usr/include/c++/9/bits/functexcept.h: - -/usr/include/boost/algorithm/string/std/slist_traits.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp: - -/usr/include/c++/9/bits/shared_ptr_base.h: - -/usr/include/c++/9/bits/stl_algo.h: - -/usr/include/c++/9/bits/uniform_int_dist.h: - -/usr/include/c++/9/cstddef: - -/usr/include/boost/range/begin.hpp: - -/usr/include/c++/9/initializer_list: - -/usr/include/boost/preprocessor/config/config.hpp: - -/usr/include/boost/mpl/has_xxx.hpp: - -/usr/include/c++/9/bits/erase_if.h: - -/usr/include/boost/mpl/aux_/na_spec.hpp: - -/usr/include/boost/preprocessor/list/fold_left.hpp: - -/usr/include/boost/mpl/void_fwd.hpp: - -/usr/include/boost/mpl/aux_/na.hpp: - -/usr/include/c++/9/bits/regex_constants.h: - -/usr/include/boost/mpl/aux_/na_fwd.hpp: - -/usr/include/boost/mpl/int.hpp: - -/usr/include/boost/mpl/aux_/nttp_decl.hpp: - -/usr/include/boost/type_traits/is_scalar.hpp: - -/usr/include/boost/mpl/aux_/integral_wrapper.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigstack.h: - -/usr/include/boost/type_traits/is_convertible.hpp: - -/usr/include/boost/preprocessor/list/detail/fold_right.hpp: - -/usr/include/boost/mpl/aux_/template_arity_fwd.hpp: - -/usr/include/boost/preprocessor/seq/size.hpp: - -/usr/include/boost/mpl/aux_/config/dtp.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp: - -/usr/include/boost/mpl/aux_/arg_typedef.hpp: - -/usr/include/boost/preprocessor/comma_if.hpp: - -/usr/include/boost/preprocessor/punctuation/comma_if.hpp: - -/usr/include/boost/preprocessor/control/if.hpp: - -/usr/include/boost/preprocessor/control/iif.hpp: - -/usr/include/boost/preprocessor/logical/bool.hpp: - -/usr/include/boost/preprocessor/facilities/empty.hpp: - -/usr/include/boost/preprocessor/repeat.hpp: - -/usr/include/boost/preprocessor/array/data.hpp: - -/usr/include/boost/type_traits/remove_reference.hpp: - -/usr/include/boost/preprocessor/repetition/repeat.hpp: - -/usr/include/boost/type_traits/is_complete.hpp: - -/usr/include/boost/preprocessor/detail/auto_rec.hpp: - -/usr/include/boost/preprocessor/tuple/eat.hpp: - -/usr/include/boost/preprocessor/inc.hpp: - -/usr/include/boost/mpl/aux_/config/intel.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/enum.hpp: - -/usr/include/boost/range/detail/sfinae.hpp: - -/usr/include/boost/range/detail/extract_optional_type.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp: - -/usr/include/boost/preprocessor/logical/and.hpp: - -/usr/include/boost/preprocessor/facilities/identity.hpp: - -/usr/include/boost/config/detail/posix_features.hpp: - -/usr/include/boost/preprocessor/arithmetic/add.hpp: - -/usr/include/boost/preprocessor/list/detail/fold_left.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: - -/usr/include/boost/preprocessor/control/expr_iif.hpp: - -/usr/include/boost/mpl/aux_/type_wrapper.hpp: - -/usr/include/boost/preprocessor/list/adt.hpp: - -/usr/include/netinet/in.h: - -/usr/include/boost/type_traits/is_const.hpp: - -/usr/include/boost/preprocessor/list/reverse.hpp: - -/usr/include/boost/preprocessor/control/detail/while.hpp: - -/usr/include/boost/preprocessor/facilities/overload.hpp: - -/usr/include/boost/preprocessor/variadic/size.hpp: - -/usr/include/boost/preprocessor/tuple/rem.hpp: - -/usr/include/jsoncpp/json/json_features.h: - -/usr/include/boost/preprocessor/arithmetic/sub.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: - -/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: - -/usr/include/boost/assert.hpp: - -/usr/include/boost/mpl/aux_/config/arrays.hpp: - -/usr/include/boost/mpl/aux_/config/msvc_typename.hpp: - -/usr/include/boost/preprocessor/array/elem.hpp: - -/usr/include/c++/9/bits/move.h: - -/usr/include/boost/preprocessor/array/size.hpp: - -/usr/include/boost/preprocessor/repetition/enum_params.hpp: - -/usr/include/boost/algorithm/string/detail/predicate.hpp: - -/usr/include/boost/iterator/iterator_traits.hpp: - -/usr/include/c++/9/iterator: - -/usr/include/c++/9/bitset: - -/usr/include/c++/9/bits/stream_iterator.h: - -/usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp: - -/usr/include/boost/preprocessor/slot/detail/shared.hpp: - -/usr/include/boost/range/const_iterator.hpp: - -/usr/include/boost/mpl/aux_/has_type.hpp: - -/usr/include/c++/9/bits/cpp_type_traits.h: - -/usr/include/boost/type_traits/remove_const.hpp: - -/usr/include/c++/9/clocale: - -/usr/include/boost/mpl/if.hpp: - -/usr/include/boost/container_hash/hash_fwd.hpp: - -/usr/include/boost/range/empty.hpp: - -/usr/include/boost/mpl/eval_if.hpp: - -/usr/include/c++/9/bits/stl_map.h: - -/usr/local/include/ctemplate/per_expand_data.h: - -/usr/include/boost/mpl/aux_/config/integral.hpp: - -/usr/include/boost/detail/select_type.hpp: - -/usr/include/boost/mpl/aux_/lambda_support.hpp: - -/usr/include/boost/type_traits/detail/yes_no_type.hpp: - -/usr/include/boost/mpl/aux_/config/lambda.hpp: - -/usr/include/boost/type_traits/is_same.hpp: - -/usr/include/boost/range/as_literal.hpp: - -/usr/include/boost/preprocessor/logical/bitand.hpp: - -/usr/include/boost/type_traits/is_member_function_pointer.hpp: - -/usr/include/boost/range/functions.hpp: - -/usr/include/boost/range/iterator_range.hpp: - -/usr/include/boost/iterator/iterator_facade.hpp: - -/usr/include/boost/type_traits/enable_if.hpp: - -/usr/include/boost/config/compiler/gcc.hpp: - -/usr/include/boost/iterator/interoperable.hpp: - -/usr/include/c++/9/bits/stl_algobase.h: - -/usr/include/boost/mpl/or.hpp: - -/usr/include/boost/mpl/aux_/include_preprocessed.hpp: - -/usr/include/boost/mpl/next.hpp: - -/usr/include/c++/9/bits/functional_hash.h: - -/usr/include/boost/preprocessor/stringize.hpp: - -/usr/include/boost/type_traits/intrinsics.hpp: - -/usr/include/boost/version.hpp: - -/usr/include/boost/type_traits/is_lvalue_reference.hpp: - -/usr/include/boost/type_traits/is_abstract.hpp: - -/usr/include/boost/iterator/iterator_categories.hpp: - -/usr/include/boost/mpl/arg.hpp: - -/usr/include/boost/range/iterator.hpp: - -/usr/include/boost/preprocessor/list/fold_right.hpp: - -/usr/include/boost/mpl/assert.hpp: - -/usr/include/boost/mpl/aux_/config/pp_counter.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp: - -/usr/include/c++/9/bits/exception_defines.h: - -/usr/include/boost/iterator/detail/facade_iterator_category.hpp: - -/usr/include/boost/config.hpp: - -/usr/include/boost/core/use_default.hpp: - -/usr/include/boost/mpl/aux_/config/overload_resolution.hpp: - -/usr/include/boost/mpl/and.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp: - -/usr/include/boost/detail/indirect_traits.hpp: - -/usr/include/c++/9/bits/shared_ptr.h: - -/usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp: diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.ts b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.ts deleted file mode 100644 index 10c8857..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/compiler_depend.ts +++ /dev/null @@ -1,2 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Timestamp file for compiler generated dependencies management for OJ_server. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/depend.make deleted file mode 100644 index 5f7c1b4..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/depend.make +++ /dev/null @@ -1,2 +0,0 @@ -# Empty dependencies file for OJ_server. -# This may be replaced when dependencies are built. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/flags.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/flags.make deleted file mode 100644 index ec0b684..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/flags.make +++ /dev/null @@ -1,10 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# compile CXX with /usr/bin/g++-9 -CXX_DEFINES = - -CXX_INCLUDES = - -CXX_FLAGS = -g -std=gnu++11 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/link.txt b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/link.txt deleted file mode 100644 index 414d9cb..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/link.txt +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/g++-9 -g CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -o output/OJ_server -ljsoncpp -lctemplate -lmysqlclient diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/progress.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/progress.make deleted file mode 100644 index abadeb0..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/OJ_server.dir/progress.make +++ /dev/null @@ -1,3 +0,0 @@ -CMAKE_PROGRESS_1 = 1 -CMAKE_PROGRESS_2 = 2 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/TargetDirectories.txt b/src/my-online-judge-master/MYOJ/build/CMakeFiles/TargetDirectories.txt deleted file mode 100644 index ef1151e..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/TargetDirectories.txt +++ /dev/null @@ -1,5 +0,0 @@ -/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/OJ_server.dir -/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/compile_server.dir -/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/data_server.dir -/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/edit_cache.dir -/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/rebuild_cache.dir diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/cmake.check_cache b/src/my-online-judge-master/MYOJ/build/CMakeFiles/cmake.check_cache deleted file mode 100644 index 3dccd73..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/cmake.check_cache +++ /dev/null @@ -1 +0,0 @@ -# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/DependInfo.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/DependInfo.cmake deleted file mode 100644 index b90178a..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/DependInfo.cmake +++ /dev/null @@ -1,19 +0,0 @@ - -# Consider dependencies only in project. -set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) - -# The set of languages for which implicit dependencies are needed: -set(CMAKE_DEPENDS_LANGUAGES - ) - -# The set of dependency files which are needed: -set(CMAKE_DEPENDS_DEPENDENCY_FILES - "/home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc" "CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o" "gcc" "CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d" - ) - -# Targets to which this target links. -set(CMAKE_TARGET_LINKED_INFO_FILES - ) - -# Fortran module output directory. -set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/build.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/build.make deleted file mode 100644 index d12b765..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/build.make +++ /dev/null @@ -1,110 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Delete rule output on recipe failure. -.DELETE_ON_ERROR: - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/zzy1/2024/my-online-judge/MYOJ - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/zzy1/2024/my-online-judge/MYOJ/build - -# Include any dependencies generated for this target. -include CMakeFiles/compile_server.dir/depend.make -# Include any dependencies generated by the compiler for this target. -include CMakeFiles/compile_server.dir/compiler_depend.make - -# Include the progress variables for this target. -include CMakeFiles/compile_server.dir/progress.make - -# Include the compile flags for this target's objects. -include CMakeFiles/compile_server.dir/flags.make - -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o: CMakeFiles/compile_server.dir/flags.make -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o: ../compile_server/compile_server.cc -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o: CMakeFiles/compile_server.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -MF CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d -o CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc - -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/compile_server.dir/compile_server/compile_server.cc.i" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc > CMakeFiles/compile_server.dir/compile_server/compile_server.cc.i - -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/compile_server.dir/compile_server/compile_server.cc.s" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc -o CMakeFiles/compile_server.dir/compile_server/compile_server.cc.s - -# Object files for target compile_server -compile_server_OBJECTS = \ -"CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o" - -# External object files for target compile_server -compile_server_EXTERNAL_OBJECTS = - -output/compile_server: CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -output/compile_server: CMakeFiles/compile_server.dir/build.make -output/compile_server: CMakeFiles/compile_server.dir/link.txt - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable output/compile_server" - $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/compile_server.dir/link.txt --verbose=$(VERBOSE) - -# Rule to build all files generated by this target. -CMakeFiles/compile_server.dir/build: output/compile_server -.PHONY : CMakeFiles/compile_server.dir/build - -CMakeFiles/compile_server.dir/clean: - $(CMAKE_COMMAND) -P CMakeFiles/compile_server.dir/cmake_clean.cmake -.PHONY : CMakeFiles/compile_server.dir/clean - -CMakeFiles/compile_server.dir/depend: - cd /home/zzy1/2024/my-online-judge/MYOJ/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/compile_server.dir/DependInfo.cmake --color=$(COLOR) -.PHONY : CMakeFiles/compile_server.dir/depend - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/cmake_clean.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/cmake_clean.cmake deleted file mode 100644 index 8919cf3..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/cmake_clean.cmake +++ /dev/null @@ -1,11 +0,0 @@ -file(REMOVE_RECURSE - "CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o" - "CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d" - "output/compile_server" - "output/compile_server.pdb" -) - -# Per-language clean rules from dependency scanning. -foreach(lang CXX) - include(CMakeFiles/compile_server.dir/cmake_clean_${lang}.cmake OPTIONAL) -endforeach() diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o deleted file mode 100644 index 49a9f2c..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d deleted file mode 100644 index 1bc0f7c..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o.d +++ /dev/null @@ -1,691 +0,0 @@ -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o: \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc \ - /usr/include/stdc-predef.h \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_run.hpp \ - /usr/include/x86_64-linux-gnu/sys/resource.h /usr/include/features.h \ - /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/bits/resource.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_rusage.h \ - /usr/include/jsoncpp/json/json.h /usr/include/jsoncpp/json/config.h \ - /usr/include/c++/9/cstddef \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/istream /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd /usr/include/c++/9/bits/stringfwd.h \ - /usr/include/c++/9/bits/memoryfwd.h /usr/include/c++/9/bits/postypes.h \ - /usr/include/c++/9/cwchar /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/cctype \ - /usr/include/ctype.h /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ - /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h /usr/include/c++/9/cerrno \ - /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ - /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/memory /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ - /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ - /usr/include/c++/9/array /usr/include/c++/9/bits/invoke.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/backward/auto_ptr.h /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h /usr/include/c++/9/cstring \ - /usr/include/string.h /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h /usr/include/jsoncpp/json/writer.h \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/./comm/util.hpp \ - /usr/include/c++/9/iostream /usr/include/c++/9/fstream \ - /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/atomic \ - /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ - /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/c++/9/list /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist /usr/include/c++/9/algorithm \ - /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h /usr/include/c++/9/limits \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/c++/9/iterator /usr/include/c++/9/bits/stream_iterator.h \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp /usr/include/assert.h \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp /usr/include/c++/9/climits \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/c++/9/ctime \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/c++/9/functional /usr/include/c++/9/bits/std_function.h \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/c++/9/cassert \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/./comm/../comm/Log.hpp \ - /usr/include/fcntl.h /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/linux/falloc.h \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/Runner.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/./comm/httplib.h \ - /usr/include/arpa/inet.h /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/ifaddrs.h \ - /usr/include/netdb.h /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h /usr/include/c++/9/csignal \ - /usr/include/c++/9/condition_variable /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h /usr/include/c++/9/mutex \ - /usr/include/c++/9/random /usr/include/c++/9/cmath /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc /usr/include/c++/9/thread diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.internal b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.internal deleted file mode 100644 index 86ad155..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.internal +++ /dev/null @@ -1,802 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc - /usr/include/stdc-predef.h - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_run.hpp - /usr/include/x86_64-linux-gnu/sys/resource.h - /usr/include/features.h - /usr/include/features-time64.h - /usr/include/x86_64-linux-gnu/bits/wordsize.h - /usr/include/x86_64-linux-gnu/bits/timesize.h - /usr/include/x86_64-linux-gnu/sys/cdefs.h - /usr/include/x86_64-linux-gnu/bits/long-double.h - /usr/include/x86_64-linux-gnu/gnu/stubs.h - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h - /usr/include/x86_64-linux-gnu/bits/resource.h - /usr/include/x86_64-linux-gnu/bits/types.h - /usr/include/x86_64-linux-gnu/bits/typesizes.h - /usr/include/x86_64-linux-gnu/bits/time64.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h - /usr/include/x86_64-linux-gnu/bits/types/struct_rusage.h - /usr/include/jsoncpp/json/json.h - /usr/include/jsoncpp/json/config.h - /usr/include/c++/9/cstddef - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h - /usr/include/c++/9/cstdint - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h - /usr/include/stdint.h - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h - /usr/include/x86_64-linux-gnu/bits/wchar.h - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h - /usr/include/c++/9/istream - /usr/include/c++/9/ios - /usr/include/c++/9/iosfwd - /usr/include/c++/9/bits/stringfwd.h - /usr/include/c++/9/bits/memoryfwd.h - /usr/include/c++/9/bits/postypes.h - /usr/include/c++/9/cwchar - /usr/include/wchar.h - /usr/include/x86_64-linux-gnu/bits/floatn.h - /usr/include/x86_64-linux-gnu/bits/floatn-common.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h - /usr/include/x86_64-linux-gnu/bits/types/FILE.h - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h - /usr/include/c++/9/exception - /usr/include/c++/9/bits/exception.h - /usr/include/c++/9/bits/exception_ptr.h - /usr/include/c++/9/bits/exception_defines.h - /usr/include/c++/9/bits/cxxabi_init_exception.h - /usr/include/c++/9/typeinfo - /usr/include/c++/9/bits/hash_bytes.h - /usr/include/c++/9/new - /usr/include/c++/9/bits/move.h - /usr/include/c++/9/bits/concept_check.h - /usr/include/c++/9/type_traits - /usr/include/c++/9/bits/nested_exception.h - /usr/include/c++/9/bits/char_traits.h - /usr/include/c++/9/bits/stl_algobase.h - /usr/include/c++/9/bits/functexcept.h - /usr/include/c++/9/bits/cpp_type_traits.h - /usr/include/c++/9/ext/type_traits.h - /usr/include/c++/9/ext/numeric_traits.h - /usr/include/c++/9/bits/stl_pair.h - /usr/include/c++/9/bits/stl_iterator_base_types.h - /usr/include/c++/9/bits/stl_iterator_base_funcs.h - /usr/include/c++/9/debug/assertions.h - /usr/include/c++/9/bits/stl_iterator.h - /usr/include/c++/9/bits/ptr_traits.h - /usr/include/c++/9/debug/debug.h - /usr/include/c++/9/bits/predefined_ops.h - /usr/include/c++/9/bits/localefwd.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h - /usr/include/c++/9/clocale - /usr/include/locale.h - /usr/include/x86_64-linux-gnu/bits/locale.h - /usr/include/c++/9/cctype - /usr/include/ctype.h - /usr/include/x86_64-linux-gnu/bits/endian.h - /usr/include/x86_64-linux-gnu/bits/endianness.h - /usr/include/c++/9/bits/ios_base.h - /usr/include/c++/9/ext/atomicity.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h - /usr/include/pthread.h - /usr/include/sched.h - /usr/include/x86_64-linux-gnu/bits/types/time_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h - /usr/include/x86_64-linux-gnu/bits/sched.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h - /usr/include/x86_64-linux-gnu/bits/cpu-set.h - /usr/include/time.h - /usr/include/x86_64-linux-gnu/bits/time.h - /usr/include/x86_64-linux-gnu/bits/timex.h - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h - /usr/include/x86_64-linux-gnu/bits/setjmp.h - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h - /usr/include/c++/9/bits/locale_classes.h - /usr/include/c++/9/string - /usr/include/c++/9/bits/allocator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h - /usr/include/c++/9/ext/new_allocator.h - /usr/include/c++/9/bits/ostream_insert.h - /usr/include/c++/9/bits/cxxabi_forced.h - /usr/include/c++/9/bits/stl_function.h - /usr/include/c++/9/backward/binders.h - /usr/include/c++/9/bits/range_access.h - /usr/include/c++/9/initializer_list - /usr/include/c++/9/bits/basic_string.h - /usr/include/c++/9/ext/alloc_traits.h - /usr/include/c++/9/bits/alloc_traits.h - /usr/include/c++/9/ext/string_conversions.h - /usr/include/c++/9/cstdlib - /usr/include/stdlib.h - /usr/include/x86_64-linux-gnu/bits/waitflags.h - /usr/include/x86_64-linux-gnu/bits/waitstatus.h - /usr/include/x86_64-linux-gnu/sys/types.h - /usr/include/endian.h - /usr/include/x86_64-linux-gnu/bits/byteswap.h - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h - /usr/include/x86_64-linux-gnu/sys/select.h - /usr/include/x86_64-linux-gnu/bits/select.h - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h - /usr/include/alloca.h - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h - /usr/include/c++/9/bits/std_abs.h - /usr/include/c++/9/cstdio - /usr/include/stdio.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h - /usr/include/c++/9/cerrno - /usr/include/errno.h - /usr/include/x86_64-linux-gnu/bits/errno.h - /usr/include/linux/errno.h - /usr/include/x86_64-linux-gnu/asm/errno.h - /usr/include/asm-generic/errno.h - /usr/include/asm-generic/errno-base.h - /usr/include/x86_64-linux-gnu/bits/types/error_t.h - /usr/include/c++/9/bits/functional_hash.h - /usr/include/c++/9/bits/basic_string.tcc - /usr/include/c++/9/bits/locale_classes.tcc - /usr/include/c++/9/system_error - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h - /usr/include/c++/9/stdexcept - /usr/include/c++/9/streambuf - /usr/include/c++/9/bits/streambuf.tcc - /usr/include/c++/9/bits/basic_ios.h - /usr/include/c++/9/bits/locale_facets.h - /usr/include/c++/9/cwctype - /usr/include/wctype.h - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h - /usr/include/c++/9/bits/streambuf_iterator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h - /usr/include/c++/9/bits/locale_facets.tcc - /usr/include/c++/9/bits/basic_ios.tcc - /usr/include/c++/9/ostream - /usr/include/c++/9/bits/ostream.tcc - /usr/include/c++/9/bits/istream.tcc - /usr/include/c++/9/memory - /usr/include/c++/9/bits/stl_construct.h - /usr/include/c++/9/bits/stl_uninitialized.h - /usr/include/c++/9/bits/stl_tempbuf.h - /usr/include/c++/9/bits/stl_raw_storage_iter.h - /usr/include/c++/9/ext/concurrence.h - /usr/include/c++/9/bits/uses_allocator.h - /usr/include/c++/9/bits/unique_ptr.h - /usr/include/c++/9/utility - /usr/include/c++/9/bits/stl_relops.h - /usr/include/c++/9/tuple - /usr/include/c++/9/array - /usr/include/c++/9/bits/invoke.h - /usr/include/c++/9/bits/shared_ptr.h - /usr/include/c++/9/bits/shared_ptr_base.h - /usr/include/c++/9/bits/allocated_ptr.h - /usr/include/c++/9/bits/refwrap.h - /usr/include/c++/9/ext/aligned_buffer.h - /usr/include/c++/9/bits/shared_ptr_atomic.h - /usr/include/c++/9/bits/atomic_base.h - /usr/include/c++/9/bits/atomic_lockfree_defines.h - /usr/include/c++/9/backward/auto_ptr.h - /usr/include/c++/9/sstream - /usr/include/c++/9/bits/sstream.tcc - /usr/include/jsoncpp/json/allocator.h - /usr/include/c++/9/cstring - /usr/include/string.h - /usr/include/strings.h - /usr/include/jsoncpp/json/version.h - /usr/include/jsoncpp/json/json_features.h - /usr/include/jsoncpp/json/forwards.h - /usr/include/jsoncpp/json/reader.h - /usr/include/jsoncpp/json/value.h - /usr/include/c++/9/map - /usr/include/c++/9/bits/stl_tree.h - /usr/include/c++/9/bits/stl_map.h - /usr/include/c++/9/bits/stl_multimap.h - /usr/include/c++/9/bits/erase_if.h - /usr/include/c++/9/vector - /usr/include/c++/9/bits/stl_vector.h - /usr/include/c++/9/bits/stl_bvector.h - /usr/include/c++/9/bits/vector.tcc - /usr/include/c++/9/deque - /usr/include/c++/9/bits/stl_deque.h - /usr/include/c++/9/bits/deque.tcc - /usr/include/c++/9/stack - /usr/include/c++/9/bits/stl_stack.h - /usr/include/jsoncpp/json/writer.h - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/comm/util.hpp - /usr/include/c++/9/iostream - /usr/include/c++/9/fstream - /usr/include/c++/9/bits/codecvt.h - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h - /usr/include/c++/9/bits/fstream.tcc - /usr/include/c++/9/atomic - /usr/include/unistd.h - /usr/include/x86_64-linux-gnu/bits/posix_opt.h - /usr/include/x86_64-linux-gnu/bits/environments.h - /usr/include/x86_64-linux-gnu/bits/confname.h - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h - /usr/include/x86_64-linux-gnu/bits/getopt_core.h - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h - /usr/include/linux/close_range.h - /usr/include/x86_64-linux-gnu/sys/stat.h - /usr/include/x86_64-linux-gnu/bits/stat.h - /usr/include/x86_64-linux-gnu/bits/struct_stat.h - /usr/include/x86_64-linux-gnu/bits/statx.h - /usr/include/linux/stat.h - /usr/include/linux/types.h - /usr/include/x86_64-linux-gnu/asm/types.h - /usr/include/asm-generic/types.h - /usr/include/asm-generic/int-ll64.h - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h - /usr/include/asm-generic/bitsperlong.h - /usr/include/linux/posix_types.h - /usr/include/linux/stddef.h - /usr/include/x86_64-linux-gnu/asm/posix_types.h - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h - /usr/include/asm-generic/posix_types.h - /usr/include/x86_64-linux-gnu/bits/statx-generic.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h - /usr/include/x86_64-linux-gnu/sys/time.h - /usr/include/x86_64-linux-gnu/sys/wait.h - /usr/include/signal.h - /usr/include/x86_64-linux-gnu/bits/signum-generic.h - /usr/include/x86_64-linux-gnu/bits/signum-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h - /usr/include/x86_64-linux-gnu/bits/sigaction.h - /usr/include/x86_64-linux-gnu/bits/sigcontext.h - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h - /usr/include/x86_64-linux-gnu/sys/ucontext.h - /usr/include/x86_64-linux-gnu/bits/sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigstksz.h - /usr/include/x86_64-linux-gnu/bits/ss_flags.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigthread.h - /usr/include/x86_64-linux-gnu/bits/signal_ext.h - /usr/include/boost/algorithm/string.hpp - /usr/include/boost/algorithm/string/std_containers_traits.hpp - /usr/include/boost/config.hpp - /usr/include/boost/config/user.hpp - /usr/include/boost/config/detail/select_compiler_config.hpp - /usr/include/boost/config/compiler/gcc.hpp - /usr/include/boost/config/detail/select_stdlib_config.hpp - /usr/include/c++/9/version - /usr/include/boost/config/stdlib/libstdcpp3.hpp - /usr/include/boost/config/detail/select_platform_config.hpp - /usr/include/boost/config/platform/linux.hpp - /usr/include/boost/config/detail/posix_features.hpp - /usr/include/boost/config/detail/suffix.hpp - /usr/include/boost/config/helper_macros.hpp - /usr/include/boost/algorithm/string/std/string_traits.hpp - /usr/include/boost/algorithm/string/yes_no_type.hpp - /usr/include/boost/algorithm/string/sequence_traits.hpp - /usr/include/boost/mpl/bool.hpp - /usr/include/boost/mpl/bool_fwd.hpp - /usr/include/boost/mpl/aux_/adl_barrier.hpp - /usr/include/boost/mpl/aux_/config/adl.hpp - /usr/include/boost/mpl/aux_/config/msvc.hpp - /usr/include/boost/mpl/aux_/config/intel.hpp - /usr/include/boost/mpl/aux_/config/gcc.hpp - /usr/include/boost/mpl/aux_/config/workaround.hpp - /usr/include/boost/detail/workaround.hpp - /usr/include/boost/config/workaround.hpp - /usr/include/boost/mpl/integral_c_tag.hpp - /usr/include/boost/mpl/aux_/config/static_constant.hpp - /usr/include/boost/algorithm/string/std/list_traits.hpp - /usr/include/c++/9/list - /usr/include/c++/9/bits/stl_list.h - /usr/include/c++/9/bits/list.tcc - /usr/include/boost/algorithm/string/std/slist_traits.hpp - /usr/include/boost/algorithm/string/config.hpp - /usr/include/c++/9/ext/slist - /usr/include/c++/9/algorithm - /usr/include/c++/9/bits/stl_algo.h - /usr/include/c++/9/bits/algorithmfwd.h - /usr/include/c++/9/bits/stl_heap.h - /usr/include/c++/9/bits/uniform_int_dist.h - /usr/include/c++/9/limits - /usr/include/boost/algorithm/string/trim.hpp - /usr/include/boost/range/begin.hpp - /usr/include/boost/range/config.hpp - /usr/include/boost/range/iterator.hpp - /usr/include/boost/range/range_fwd.hpp - /usr/include/boost/range/mutable_iterator.hpp - /usr/include/boost/range/detail/extract_optional_type.hpp - /usr/include/boost/preprocessor/cat.hpp - /usr/include/boost/preprocessor/config/config.hpp - /usr/include/boost/mpl/has_xxx.hpp - /usr/include/boost/mpl/aux_/na_spec.hpp - /usr/include/boost/mpl/lambda_fwd.hpp - /usr/include/boost/mpl/void_fwd.hpp - /usr/include/boost/mpl/aux_/na.hpp - /usr/include/boost/mpl/aux_/na_fwd.hpp - /usr/include/boost/mpl/aux_/config/ctps.hpp - /usr/include/boost/mpl/aux_/config/lambda.hpp - /usr/include/boost/mpl/aux_/config/ttp.hpp - /usr/include/boost/mpl/int.hpp - /usr/include/boost/mpl/int_fwd.hpp - /usr/include/boost/mpl/aux_/nttp_decl.hpp - /usr/include/boost/mpl/aux_/config/nttp.hpp - /usr/include/boost/mpl/aux_/integral_wrapper.hpp - /usr/include/boost/mpl/aux_/static_cast.hpp - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp - /usr/include/boost/mpl/aux_/arity.hpp - /usr/include/boost/mpl/aux_/config/dtp.hpp - /usr/include/boost/mpl/aux_/preprocessor/params.hpp - /usr/include/boost/mpl/aux_/config/preprocessor.hpp - /usr/include/boost/preprocessor/comma_if.hpp - /usr/include/boost/preprocessor/punctuation/comma_if.hpp - /usr/include/boost/preprocessor/control/if.hpp - /usr/include/boost/preprocessor/control/iif.hpp - /usr/include/boost/preprocessor/logical/bool.hpp - /usr/include/boost/preprocessor/facilities/empty.hpp - /usr/include/boost/preprocessor/punctuation/comma.hpp - /usr/include/boost/preprocessor/repeat.hpp - /usr/include/boost/preprocessor/repetition/repeat.hpp - /usr/include/boost/preprocessor/debug/error.hpp - /usr/include/boost/preprocessor/detail/auto_rec.hpp - /usr/include/boost/preprocessor/tuple/eat.hpp - /usr/include/boost/preprocessor/inc.hpp - /usr/include/boost/preprocessor/arithmetic/inc.hpp - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp - /usr/include/boost/mpl/limits/arity.hpp - /usr/include/boost/preprocessor/logical/and.hpp - /usr/include/boost/preprocessor/logical/bitand.hpp - /usr/include/boost/preprocessor/identity.hpp - /usr/include/boost/preprocessor/facilities/identity.hpp - /usr/include/boost/preprocessor/empty.hpp - /usr/include/boost/preprocessor/arithmetic/add.hpp - /usr/include/boost/preprocessor/arithmetic/dec.hpp - /usr/include/boost/preprocessor/control/while.hpp - /usr/include/boost/preprocessor/list/fold_left.hpp - /usr/include/boost/preprocessor/list/detail/fold_left.hpp - /usr/include/boost/preprocessor/control/expr_iif.hpp - /usr/include/boost/preprocessor/list/adt.hpp - /usr/include/boost/preprocessor/detail/is_binary.hpp - /usr/include/boost/preprocessor/detail/check.hpp - /usr/include/boost/preprocessor/logical/compl.hpp - /usr/include/boost/preprocessor/list/fold_right.hpp - /usr/include/boost/preprocessor/list/detail/fold_right.hpp - /usr/include/boost/preprocessor/list/reverse.hpp - /usr/include/boost/preprocessor/control/detail/while.hpp - /usr/include/boost/preprocessor/tuple/elem.hpp - /usr/include/boost/preprocessor/facilities/expand.hpp - /usr/include/boost/preprocessor/facilities/overload.hpp - /usr/include/boost/preprocessor/variadic/size.hpp - /usr/include/boost/preprocessor/tuple/rem.hpp - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp - /usr/include/boost/preprocessor/variadic/elem.hpp - /usr/include/boost/preprocessor/arithmetic/sub.hpp - /usr/include/boost/mpl/aux_/config/eti.hpp - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp - /usr/include/boost/mpl/aux_/type_wrapper.hpp - /usr/include/boost/mpl/aux_/yes_no.hpp - /usr/include/boost/mpl/aux_/config/arrays.hpp - /usr/include/boost/mpl/aux_/config/has_xxx.hpp - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp - /usr/include/boost/preprocessor/array/elem.hpp - /usr/include/boost/preprocessor/array/data.hpp - /usr/include/boost/preprocessor/array/size.hpp - /usr/include/boost/preprocessor/repetition/enum_params.hpp - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp - /usr/include/boost/type_traits/remove_reference.hpp - /usr/include/boost/iterator/iterator_traits.hpp - /usr/include/c++/9/iterator - /usr/include/c++/9/bits/stream_iterator.h - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp - /usr/include/boost/range/const_iterator.hpp - /usr/include/boost/type_traits/remove_const.hpp - /usr/include/boost/type_traits/is_const.hpp - /usr/include/boost/type_traits/integral_constant.hpp - /usr/include/boost/mpl/eval_if.hpp - /usr/include/boost/mpl/if.hpp - /usr/include/boost/mpl/aux_/value_wknd.hpp - /usr/include/boost/mpl/aux_/config/integral.hpp - /usr/include/boost/mpl/aux_/lambda_support.hpp - /usr/include/boost/range/end.hpp - /usr/include/boost/range/detail/implementation_help.hpp - /usr/include/boost/range/detail/common.hpp - /usr/include/boost/range/detail/sfinae.hpp - /usr/include/boost/type_traits/is_array.hpp - /usr/include/boost/type_traits/detail/yes_no_type.hpp - /usr/include/boost/type_traits/is_void.hpp - /usr/include/boost/type_traits/is_same.hpp - /usr/include/boost/range/as_literal.hpp - /usr/include/boost/range/iterator_range.hpp - /usr/include/boost/range/iterator_range_core.hpp - /usr/include/boost/assert.hpp - /usr/include/assert.h - /usr/include/boost/iterator/iterator_facade.hpp - /usr/include/boost/iterator/interoperable.hpp - /usr/include/boost/mpl/or.hpp - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp - /usr/include/boost/mpl/aux_/include_preprocessed.hpp - /usr/include/boost/mpl/aux_/config/compiler.hpp - /usr/include/boost/preprocessor/stringize.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp - /usr/include/boost/type_traits/is_convertible.hpp - /usr/include/boost/type_traits/intrinsics.hpp - /usr/include/boost/type_traits/detail/config.hpp - /usr/include/boost/version.hpp - /usr/include/boost/type_traits/is_complete.hpp - /usr/include/boost/type_traits/declval.hpp - /usr/include/boost/type_traits/add_rvalue_reference.hpp - /usr/include/boost/type_traits/is_reference.hpp - /usr/include/boost/type_traits/is_lvalue_reference.hpp - /usr/include/boost/type_traits/is_rvalue_reference.hpp - /usr/include/boost/type_traits/is_function.hpp - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp - /usr/include/boost/static_assert.hpp - /usr/include/boost/type_traits/is_arithmetic.hpp - /usr/include/boost/type_traits/is_integral.hpp - /usr/include/boost/type_traits/is_floating_point.hpp - /usr/include/boost/type_traits/is_abstract.hpp - /usr/include/boost/type_traits/add_lvalue_reference.hpp - /usr/include/boost/type_traits/add_reference.hpp - /usr/include/boost/iterator/detail/config_def.hpp - /usr/include/boost/iterator/detail/config_undef.hpp - /usr/include/boost/iterator/iterator_categories.hpp - /usr/include/boost/mpl/identity.hpp - /usr/include/boost/mpl/placeholders.hpp - /usr/include/boost/mpl/arg.hpp - /usr/include/boost/mpl/arg_fwd.hpp - /usr/include/boost/mpl/aux_/na_assert.hpp - /usr/include/boost/mpl/assert.hpp - /usr/include/boost/mpl/not.hpp - /usr/include/boost/mpl/aux_/config/gpu.hpp - /usr/include/boost/mpl/aux_/config/pp_counter.hpp - /usr/include/boost/mpl/aux_/arity_spec.hpp - /usr/include/boost/mpl/aux_/arg_typedef.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp - /usr/include/boost/iterator/detail/facade_iterator_category.hpp - /usr/include/boost/core/use_default.hpp - /usr/include/boost/mpl/and.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp - /usr/include/boost/detail/indirect_traits.hpp - /usr/include/boost/type_traits/is_pointer.hpp - /usr/include/boost/type_traits/is_class.hpp - /usr/include/boost/type_traits/is_volatile.hpp - /usr/include/boost/type_traits/is_member_function_pointer.hpp - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp - /usr/include/boost/type_traits/is_member_pointer.hpp - /usr/include/boost/type_traits/remove_cv.hpp - /usr/include/boost/type_traits/remove_pointer.hpp - /usr/include/boost/detail/select_type.hpp - /usr/include/boost/iterator/detail/enable_if.hpp - /usr/include/boost/core/addressof.hpp - /usr/include/boost/type_traits/add_const.hpp - /usr/include/boost/type_traits/add_pointer.hpp - /usr/include/boost/type_traits/is_pod.hpp - /usr/include/boost/type_traits/is_scalar.hpp - /usr/include/boost/type_traits/is_enum.hpp - /usr/include/boost/mpl/always.hpp - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp - /usr/include/boost/mpl/apply.hpp - /usr/include/boost/mpl/apply_fwd.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp - /usr/include/boost/mpl/apply_wrap.hpp - /usr/include/boost/mpl/aux_/has_apply.hpp - /usr/include/boost/mpl/aux_/config/has_apply.hpp - /usr/include/boost/mpl/aux_/msvc_never_true.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp - /usr/include/boost/mpl/lambda.hpp - /usr/include/boost/mpl/bind.hpp - /usr/include/boost/mpl/bind_fwd.hpp - /usr/include/boost/mpl/aux_/config/bind.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp - /usr/include/boost/mpl/next.hpp - /usr/include/boost/mpl/next_prior.hpp - /usr/include/boost/mpl/aux_/common_name_wknd.hpp - /usr/include/boost/mpl/protect.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp - /usr/include/boost/mpl/aux_/full_lambda.hpp - /usr/include/boost/mpl/quote.hpp - /usr/include/boost/mpl/void.hpp - /usr/include/boost/mpl/aux_/has_type.hpp - /usr/include/boost/mpl/aux_/config/bcc.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp - /usr/include/boost/mpl/aux_/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp - /usr/include/boost/type_traits/is_base_and_derived.hpp - /usr/include/boost/range/functions.hpp - /usr/include/boost/range/size.hpp - /usr/include/boost/range/size_type.hpp - /usr/include/boost/range/difference_type.hpp - /usr/include/boost/range/has_range_iterator.hpp - /usr/include/boost/utility/enable_if.hpp - /usr/include/boost/core/enable_if.hpp - /usr/include/boost/range/concepts.hpp - /usr/include/boost/concept_check.hpp - /usr/include/boost/concept/assert.hpp - /usr/include/boost/concept/detail/general.hpp - /usr/include/boost/concept/detail/backward_compatibility.hpp - /usr/include/boost/concept/detail/has_constraints.hpp - /usr/include/boost/type_traits/conditional.hpp - /usr/include/boost/type_traits/conversion_traits.hpp - /usr/include/boost/concept/usage.hpp - /usr/include/boost/concept/detail/concept_def.hpp - /usr/include/boost/preprocessor/seq/for_each_i.hpp - /usr/include/boost/preprocessor/repetition/for.hpp - /usr/include/boost/preprocessor/repetition/detail/for.hpp - /usr/include/boost/preprocessor/seq/seq.hpp - /usr/include/boost/preprocessor/seq/elem.hpp - /usr/include/boost/preprocessor/seq/size.hpp - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp - /usr/include/boost/preprocessor/seq/enum.hpp - /usr/include/boost/concept/detail/concept_undef.hpp - /usr/include/boost/iterator/iterator_concepts.hpp - /usr/include/boost/limits.hpp - /usr/include/boost/range/value_type.hpp - /usr/include/boost/range/detail/misc_concept.hpp - /usr/include/boost/type_traits/make_unsigned.hpp - /usr/include/boost/type_traits/is_signed.hpp - /usr/include/c++/9/climits - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h - /usr/include/limits.h - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h - /usr/include/x86_64-linux-gnu/bits/local_lim.h - /usr/include/linux/limits.h - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h - /usr/include/x86_64-linux-gnu/bits/uio_lim.h - /usr/include/boost/type_traits/is_unsigned.hpp - /usr/include/boost/type_traits/add_volatile.hpp - /usr/include/boost/range/detail/has_member_size.hpp - /usr/include/boost/cstdint.hpp - /usr/include/boost/utility.hpp - /usr/include/boost/utility/base_from_member.hpp - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp - /usr/include/boost/utility/binary.hpp - /usr/include/boost/preprocessor/control/deduce_d.hpp - /usr/include/boost/preprocessor/seq/cat.hpp - /usr/include/boost/preprocessor/seq/fold_left.hpp - /usr/include/boost/preprocessor/seq/transform.hpp - /usr/include/boost/preprocessor/arithmetic/mod.hpp - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp - /usr/include/boost/preprocessor/comparison/less_equal.hpp - /usr/include/boost/preprocessor/logical/not.hpp - /usr/include/boost/utility/identity_type.hpp - /usr/include/boost/type_traits/function_traits.hpp - /usr/include/boost/core/checked_delete.hpp - /usr/include/boost/core/noncopyable.hpp - /usr/include/boost/range/distance.hpp - /usr/include/boost/iterator/distance.hpp - /usr/include/boost/range/empty.hpp - /usr/include/boost/range/rbegin.hpp - /usr/include/boost/range/reverse_iterator.hpp - /usr/include/boost/iterator/reverse_iterator.hpp - /usr/include/boost/iterator/iterator_adaptor.hpp - /usr/include/boost/range/rend.hpp - /usr/include/boost/range/algorithm/equal.hpp - /usr/include/boost/range/detail/safe_bool.hpp - /usr/include/boost/next_prior.hpp - /usr/include/boost/type_traits/has_plus.hpp - /usr/include/boost/type_traits/detail/has_binary_operator.hpp - /usr/include/boost/type_traits/make_void.hpp - /usr/include/boost/type_traits/has_plus_assign.hpp - /usr/include/boost/type_traits/has_minus.hpp - /usr/include/boost/type_traits/has_minus_assign.hpp - /usr/include/boost/iterator/advance.hpp - /usr/include/boost/range/iterator_range_io.hpp - /usr/include/boost/range/detail/str_types.hpp - /usr/include/boost/algorithm/string/detail/trim.hpp - /usr/include/boost/algorithm/string/classification.hpp - /usr/include/c++/9/locale - /usr/include/c++/9/bits/locale_facets_nonio.h - /usr/include/c++/9/ctime - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h - /usr/include/libintl.h - /usr/include/c++/9/bits/locale_facets_nonio.tcc - /usr/include/c++/9/bits/locale_conv.h - /usr/include/boost/algorithm/string/detail/classification.hpp - /usr/include/c++/9/functional - /usr/include/c++/9/bits/std_function.h - /usr/include/boost/algorithm/string/predicate_facade.hpp - /usr/include/boost/algorithm/string/case_conv.hpp - /usr/include/boost/iterator/transform_iterator.hpp - /usr/include/boost/utility/result_of.hpp - /usr/include/boost/preprocessor/iteration/iterate.hpp - /usr/include/boost/preprocessor/slot/slot.hpp - /usr/include/boost/preprocessor/slot/detail/def.hpp - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp - /usr/include/boost/preprocessor/facilities/intercept.hpp - /usr/include/boost/type_traits/type_identity.hpp - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp - /usr/include/boost/preprocessor/slot/detail/shared.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp - /usr/include/boost/utility/detail/result_of_iterate.hpp - /usr/include/boost/algorithm/string/detail/case_conv.hpp - /usr/include/boost/algorithm/string/predicate.hpp - /usr/include/boost/algorithm/string/compare.hpp - /usr/include/boost/algorithm/string/find.hpp - /usr/include/boost/algorithm/string/finder.hpp - /usr/include/boost/algorithm/string/constants.hpp - /usr/include/boost/algorithm/string/detail/finder.hpp - /usr/include/boost/algorithm/string/detail/predicate.hpp - /usr/include/boost/algorithm/string/split.hpp - /usr/include/boost/algorithm/string/iter_find.hpp - /usr/include/boost/algorithm/string/concept.hpp - /usr/include/boost/algorithm/string/find_iterator.hpp - /usr/include/boost/algorithm/string/detail/find_iterator.hpp - /usr/include/boost/function.hpp - /usr/include/boost/preprocessor/iterate.hpp - /usr/include/boost/function/detail/prologue.hpp - /usr/include/c++/9/cassert - /usr/include/boost/config/no_tr1/functional.hpp - /usr/include/boost/throw_exception.hpp - /usr/include/boost/assert/source_location.hpp - /usr/include/boost/current_function.hpp - /usr/include/boost/exception/exception.hpp - /usr/include/boost/function/function_base.hpp - /usr/include/boost/integer.hpp - /usr/include/boost/integer_fwd.hpp - /usr/include/boost/integer_traits.hpp - /usr/include/boost/type_index.hpp - /usr/include/boost/type_index/stl_type_index.hpp - /usr/include/boost/type_index/type_index_facade.hpp - /usr/include/boost/container_hash/hash_fwd.hpp - /usr/include/boost/core/demangle.hpp - /usr/include/c++/9/cxxabi.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h - /usr/include/boost/type_traits/has_trivial_copy.hpp - /usr/include/boost/type_traits/is_copy_constructible.hpp - /usr/include/boost/type_traits/is_constructible.hpp - /usr/include/boost/type_traits/is_destructible.hpp - /usr/include/boost/type_traits/is_default_constructible.hpp - /usr/include/boost/type_traits/has_trivial_destructor.hpp - /usr/include/boost/type_traits/composite_traits.hpp - /usr/include/boost/type_traits/is_union.hpp - /usr/include/boost/ref.hpp - /usr/include/boost/core/ref.hpp - /usr/include/boost/type_traits/alignment_of.hpp - /usr/include/boost/type_traits/enable_if.hpp - /usr/include/boost/function_equal.hpp - /usr/include/boost/function/function_fwd.hpp - /usr/include/boost/mem_fn.hpp - /usr/include/boost/bind/mem_fn.hpp - /usr/include/boost/get_pointer.hpp - /usr/include/boost/config/no_tr1/memory.hpp - /usr/include/boost/bind/mem_fn_template.hpp - /usr/include/boost/bind/mem_fn_cc.hpp - /usr/include/boost/preprocessor/enum.hpp - /usr/include/boost/preprocessor/repetition/enum.hpp - /usr/include/boost/preprocessor/enum_params.hpp - /usr/include/boost/function/detail/function_iterate.hpp - /usr/include/boost/function/detail/maybe_include.hpp - /usr/include/boost/function/function_template.hpp - /usr/include/boost/core/no_exceptions_support.hpp - /usr/include/boost/algorithm/string/detail/util.hpp - /usr/include/boost/algorithm/string/join.hpp - /usr/include/boost/algorithm/string/detail/sequence.hpp - /usr/include/boost/mpl/logical.hpp - /usr/include/boost/algorithm/string/replace.hpp - /usr/include/boost/algorithm/string/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format_store.hpp - /usr/include/boost/algorithm/string/detail/replace_storage.hpp - /usr/include/boost/algorithm/string/detail/find_format_all.hpp - /usr/include/boost/algorithm/string/formatter.hpp - /usr/include/boost/algorithm/string/detail/formatter.hpp - /usr/include/boost/algorithm/string/erase.hpp - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/comm/Log.hpp - /usr/include/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h - /usr/include/linux/falloc.h - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile.hpp - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/Runner.hpp - /home/zzy1/2024/my-online-judge/MYOJ/compile_server/comm/httplib.h - /usr/include/arpa/inet.h - /usr/include/netinet/in.h - /usr/include/x86_64-linux-gnu/sys/socket.h - /usr/include/x86_64-linux-gnu/bits/socket.h - /usr/include/x86_64-linux-gnu/bits/socket_type.h - /usr/include/x86_64-linux-gnu/bits/sockaddr.h - /usr/include/x86_64-linux-gnu/asm/socket.h - /usr/include/asm-generic/socket.h - /usr/include/x86_64-linux-gnu/asm/sockios.h - /usr/include/asm-generic/sockios.h - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h - /usr/include/x86_64-linux-gnu/bits/in.h - /usr/include/ifaddrs.h - /usr/include/netdb.h - /usr/include/rpc/netdb.h - /usr/include/x86_64-linux-gnu/bits/netdb.h - /usr/include/resolv.h - /usr/include/x86_64-linux-gnu/sys/param.h - /usr/include/x86_64-linux-gnu/bits/param.h - /usr/include/linux/param.h - /usr/include/x86_64-linux-gnu/asm/param.h - /usr/include/asm-generic/param.h - /usr/include/arpa/nameser.h - /usr/include/arpa/nameser_compat.h - /usr/include/x86_64-linux-gnu/bits/types/res_state.h - /usr/include/netinet/tcp.h - /usr/include/c++/9/csignal - /usr/include/c++/9/condition_variable - /usr/include/c++/9/chrono - /usr/include/c++/9/ratio - /usr/include/c++/9/bits/parse_numbers.h - /usr/include/c++/9/bits/std_mutex.h - /usr/include/c++/9/bits/unique_lock.h - /usr/include/c++/9/mutex - /usr/include/c++/9/random - /usr/include/c++/9/cmath - /usr/include/math.h - /usr/include/x86_64-linux-gnu/bits/math-vector.h - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h - /usr/include/x86_64-linux-gnu/bits/fp-logb.h - /usr/include/x86_64-linux-gnu/bits/fp-fast.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h - /usr/include/x86_64-linux-gnu/bits/mathcalls.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h - /usr/include/x86_64-linux-gnu/bits/iscanonical.h - /usr/include/c++/9/bits/random.h - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h - /usr/include/c++/9/bits/random.tcc - /usr/include/c++/9/numeric - /usr/include/c++/9/bits/stl_numeric.h - /usr/include/c++/9/regex - /usr/include/c++/9/bitset - /usr/include/c++/9/bits/regex_constants.h - /usr/include/c++/9/bits/regex_error.h - /usr/include/c++/9/bits/regex_automaton.h - /usr/include/c++/9/bits/regex_automaton.tcc - /usr/include/c++/9/bits/regex_scanner.h - /usr/include/c++/9/bits/regex_scanner.tcc - /usr/include/c++/9/bits/regex_compiler.h - /usr/include/c++/9/bits/regex_compiler.tcc - /usr/include/c++/9/bits/regex.h - /usr/include/c++/9/bits/regex.tcc - /usr/include/c++/9/bits/regex_executor.h - /usr/include/c++/9/bits/regex_executor.tcc - /usr/include/c++/9/thread - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.make deleted file mode 100644 index 8eed6ba..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.make +++ /dev/null @@ -1,2395 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o: ../compile_server/compile_server.cc \ - /usr/include/stdc-predef.h \ - ../compile_server/compile_run.hpp \ - /usr/include/x86_64-linux-gnu/sys/resource.h \ - /usr/include/features.h \ - /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/bits/resource.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_rusage.h \ - /usr/include/jsoncpp/json/json.h \ - /usr/include/jsoncpp/json/config.h \ - /usr/include/c++/9/cstddef \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h \ - /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/istream \ - /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd \ - /usr/include/c++/9/bits/stringfwd.h \ - /usr/include/c++/9/bits/memoryfwd.h \ - /usr/include/c++/9/bits/postypes.h \ - /usr/include/c++/9/cwchar \ - /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception \ - /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo \ - /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new \ - /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h \ - /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h \ - /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale \ - /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h \ - /usr/include/c++/9/cctype \ - /usr/include/ctype.h \ - /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h \ - /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h \ - /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h \ - /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h \ - /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h \ - /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h \ - /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h \ - /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h \ - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h \ - /usr/include/c++/9/cstdio \ - /usr/include/stdio.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ - /usr/include/c++/9/cerrno \ - /usr/include/errno.h \ - /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h \ - /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h \ - /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept \ - /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h \ - /usr/include/c++/9/cwctype \ - /usr/include/wctype.h \ - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc \ - /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc \ - /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/memory \ - /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/unique_ptr.h \ - /usr/include/c++/9/utility \ - /usr/include/c++/9/bits/stl_relops.h \ - /usr/include/c++/9/tuple \ - /usr/include/c++/9/array \ - /usr/include/c++/9/bits/invoke.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/backward/auto_ptr.h \ - /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h \ - /usr/include/c++/9/cstring \ - /usr/include/string.h \ - /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h \ - /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h \ - /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h \ - /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h \ - /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h \ - /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque \ - /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc \ - /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h \ - /usr/include/jsoncpp/json/writer.h \ - ../compile_server/comm/util.hpp \ - /usr/include/c++/9/iostream \ - /usr/include/c++/9/fstream \ - /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc \ - /usr/include/c++/9/atomic \ - /usr/include/unistd.h \ - /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h \ - /usr/include/linux/stat.h \ - /usr/include/linux/types.h \ - /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h \ - /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h \ - /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h \ - /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp \ - /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp \ - /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/c++/9/list \ - /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist \ - /usr/include/c++/9/algorithm \ - /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h \ - /usr/include/c++/9/limits \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp \ - /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp \ - /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp \ - /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/c++/9/iterator \ - /usr/include/c++/9/bits/stream_iterator.h \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp \ - /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp \ - /usr/include/assert.h \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp \ - /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp \ - /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp \ - /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp \ - /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp \ - /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp \ - /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp \ - /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp \ - /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp \ - /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp \ - /usr/include/c++/9/climits \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp \ - /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp \ - /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/c++/9/locale \ - /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/c++/9/ctime \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h \ - /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/c++/9/functional \ - /usr/include/c++/9/bits/std_function.h \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/c++/9/cassert \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp \ - /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp \ - /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp \ - /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp \ - /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp \ - /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - ../compile_server/comm/Log.hpp \ - /usr/include/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/linux/falloc.h \ - ../compile_server/compile.hpp \ - ../compile_server/Runner.hpp \ - ../compile_server/comm/httplib.h \ - /usr/include/arpa/inet.h \ - /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h \ - /usr/include/ifaddrs.h \ - /usr/include/netdb.h \ - /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h \ - /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/include/x86_64-linux-gnu/bits/param.h \ - /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h \ - /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h \ - /usr/include/c++/9/csignal \ - /usr/include/c++/9/condition_variable \ - /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio \ - /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h \ - /usr/include/c++/9/mutex \ - /usr/include/c++/9/random \ - /usr/include/c++/9/cmath \ - /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc \ - /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h \ - /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset \ - /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h \ - /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc \ - /usr/include/c++/9/thread - - -/usr/include/c++/9/thread: - -/usr/include/c++/9/bits/regex_executor.h: - -/usr/include/c++/9/bits/regex_compiler.h: - -/usr/include/c++/9/bits/regex_scanner.h: - -/usr/include/c++/9/bits/regex_automaton.tcc: - -/usr/include/c++/9/regex: - -/usr/include/c++/9/bits/random.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h: - -/usr/include/x86_64-linux-gnu/bits/fp-fast.h: - -/usr/include/c++/9/cmath: - -/usr/include/c++/9/random: - -/usr/include/c++/9/mutex: - -/usr/include/x86_64-linux-gnu/bits/math-vector.h: - -/usr/include/c++/9/bits/unique_lock.h: - -/usr/include/c++/9/bits/parse_numbers.h: - -/usr/include/c++/9/ratio: - -/usr/include/c++/9/chrono: - -/usr/include/c++/9/csignal: - -/usr/include/x86_64-linux-gnu/bits/types/res_state.h: - -/usr/include/x86_64-linux-gnu/asm/param.h: - -/usr/include/linux/param.h: - -/usr/include/x86_64-linux-gnu/bits/param.h: - -/usr/include/x86_64-linux-gnu/bits/netdb.h: - -/usr/include/rpc/netdb.h: - -/usr/include/ifaddrs.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: - -/usr/include/asm-generic/sockios.h: - -/usr/include/c++/9/bits/regex_scanner.tcc: - -/usr/include/x86_64-linux-gnu/asm/sockios.h: - -/usr/include/x86_64-linux-gnu/bits/sockaddr.h: - -/usr/include/x86_64-linux-gnu/bits/socket_type.h: - -../compile_server/Runner.hpp: - -/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: - -/usr/include/resolv.h: - -/usr/include/fcntl.h: - -/usr/include/boost/algorithm/string/detail/find_format_all.hpp: - -/usr/include/boost/algorithm/string/detail/replace_storage.hpp: - -/usr/include/boost/algorithm/string/find_format.hpp: - -/usr/include/boost/algorithm/string/replace.hpp: - -/usr/include/boost/mpl/logical.hpp: - -/usr/include/boost/algorithm/string/detail/util.hpp: - -/usr/include/boost/core/no_exceptions_support.hpp: - -/usr/include/boost/function/function_template.hpp: - -/usr/include/boost/function/detail/function_iterate.hpp: - -/usr/include/boost/preprocessor/repetition/enum.hpp: - -/usr/include/boost/bind/mem_fn_template.hpp: - -/usr/include/boost/config/no_tr1/memory.hpp: - -/usr/include/boost/get_pointer.hpp: - -/usr/include/boost/function_equal.hpp: - -/usr/include/boost/core/ref.hpp: - -/usr/include/boost/ref.hpp: - -/usr/include/boost/type_traits/is_union.hpp: - -/usr/include/boost/type_traits/composite_traits.hpp: - -/usr/include/boost/type_traits/has_trivial_destructor.hpp: - -/usr/include/boost/type_traits/is_default_constructible.hpp: - -/usr/include/boost/type_traits/is_destructible.hpp: - -/usr/include/boost/type_traits/is_copy_constructible.hpp: - -/usr/include/boost/type_traits/has_trivial_copy.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h: - -/usr/include/c++/9/cxxabi.h: - -/usr/include/boost/core/demangle.hpp: - -/usr/include/boost/type_index/type_index_facade.hpp: - -/usr/include/boost/type_index/stl_type_index.hpp: - -/usr/include/boost/type_index.hpp: - -/usr/include/boost/integer.hpp: - -/usr/include/boost/function/function_base.hpp: - -/usr/include/boost/current_function.hpp: - -/usr/include/boost/assert/source_location.hpp: - -/usr/include/x86_64-linux-gnu/bits/flt-eval-method.h: - -/usr/include/boost/preprocessor/iterate.hpp: - -/usr/include/boost/function.hpp: - -/usr/include/boost/algorithm/string/detail/find_iterator.hpp: - -/usr/include/boost/algorithm/string/find_iterator.hpp: - -/usr/include/boost/algorithm/string/concept.hpp: - -/usr/include/boost/algorithm/string/iter_find.hpp: - -/usr/include/boost/algorithm/string/split.hpp: - -/usr/include/boost/algorithm/string/detail/finder.hpp: - -/usr/include/boost/algorithm/string/constants.hpp: - -/usr/include/boost/algorithm/string/find.hpp: - -/usr/include/boost/algorithm/string/compare.hpp: - -/usr/include/boost/algorithm/string/predicate.hpp: - -/usr/include/boost/algorithm/string/detail/case_conv.hpp: - -/usr/include/c++/9/bits/regex.tcc: - -/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp: - -/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp: - -/usr/include/boost/type_traits/type_identity.hpp: - -/usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp: - -/usr/include/boost/preprocessor/iteration/iterate.hpp: - -/usr/include/boost/algorithm/string/predicate_facade.hpp: - -/usr/include/boost/algorithm/string/detail/classification.hpp: - -/usr/include/c++/9/bits/locale_conv.h: - -/usr/include/c++/9/bits/locale_facets_nonio.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: - -/usr/include/c++/9/ctime: - -/usr/include/c++/9/bits/locale_facets_nonio.h: - -/usr/include/c++/9/locale: - -/usr/include/boost/algorithm/string/classification.hpp: - -/usr/include/boost/algorithm/string/detail/trim.hpp: - -/usr/include/boost/type_traits/has_minus_assign.hpp: - -/usr/include/boost/type_traits/has_minus.hpp: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h: - -/usr/include/boost/preprocessor/slot/slot.hpp: - -/usr/include/boost/type_traits/has_plus_assign.hpp: - -/usr/include/boost/type_traits/make_void.hpp: - -/usr/include/boost/type_traits/detail/has_binary_operator.hpp: - -/usr/include/boost/type_traits/has_plus.hpp: - -/usr/include/boost/range/detail/safe_bool.hpp: - -/usr/include/boost/range/algorithm/equal.hpp: - -/usr/include/boost/iterator/iterator_adaptor.hpp: - -/usr/include/boost/range/reverse_iterator.hpp: - -/usr/include/boost/range/rbegin.hpp: - -/usr/include/boost/iterator/distance.hpp: - -/usr/include/boost/range/distance.hpp: - -/usr/include/boost/core/noncopyable.hpp: - -/usr/include/boost/core/checked_delete.hpp: - -/usr/include/boost/iterator/transform_iterator.hpp: - -/usr/include/boost/iterator/advance.hpp: - -/usr/include/boost/utility/identity_type.hpp: - -/usr/include/boost/preprocessor/logical/not.hpp: - -/usr/include/boost/preprocessor/comparison/less_equal.hpp: - -/usr/include/boost/preprocessor/arithmetic/mod.hpp: - -/usr/include/boost/preprocessor/seq/transform.hpp: - -/usr/include/boost/preprocessor/seq/fold_left.hpp: - -/usr/include/c++/9/numeric: - -/usr/include/boost/preprocessor/seq/cat.hpp: - -/usr/include/boost/preprocessor/control/deduce_d.hpp: - -/usr/include/boost/algorithm/string/detail/find_format_store.hpp: - -/usr/include/boost/utility/binary.hpp: - -/usr/include/arpa/nameser.h: - -/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp: - -/usr/include/boost/preprocessor/repetition/enum_binary_params.hpp: - -/usr/include/boost/utility/base_from_member.hpp: - -/usr/include/boost/utility.hpp: - -/usr/include/boost/cstdint.hpp: - -/usr/include/boost/range/detail/has_member_size.hpp: - -/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: - -/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h: - -/usr/include/boost/type_traits/is_signed.hpp: - -/usr/include/boost/type_traits/make_unsigned.hpp: - -/usr/include/boost/range/value_type.hpp: - -/usr/include/boost/concept/detail/concept_undef.hpp: - -/usr/include/boost/preprocessor/seq/detail/is_empty.hpp: - -/usr/include/boost/preprocessor/seq/elem.hpp: - -/usr/include/boost/preprocessor/repetition/detail/for.hpp: - -/usr/include/boost/preprocessor/seq/for_each_i.hpp: - -/usr/include/c++/9/condition_variable: - -/usr/include/boost/concept/detail/concept_def.hpp: - -/usr/include/boost/type_traits/conversion_traits.hpp: - -/usr/include/boost/concept/detail/has_constraints.hpp: - -/usr/include/boost/concept/detail/backward_compatibility.hpp: - -/usr/include/boost/concept/detail/general.hpp: - -/usr/include/boost/concept_check.hpp: - -/usr/include/boost/range/concepts.hpp: - -/usr/include/boost/core/enable_if.hpp: - -/usr/include/boost/range/has_range_iterator.hpp: - -/usr/include/boost/range/difference_type.hpp: - -/usr/include/linux/stddef.h: - -/usr/include/asm-generic/int-ll64.h: - -/usr/include/boost/preprocessor/debug/error.hpp: - -/usr/include/linux/types.h: - -/usr/include/c++/9/bits/ostream.tcc: - -/usr/include/x86_64-linux-gnu/bits/sigstksz.h: - -/usr/include/x86_64-linux-gnu/sys/socket.h: - -/usr/include/boost/type_traits/is_enum.hpp: - -/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: - -/usr/include/boost/algorithm/string/join.hpp: - -/usr/include/c++/9/bits/stl_tempbuf.h: - -/usr/include/c++/9/bits/regex_error.h: - -/usr/include/x86_64-linux-gnu/bits/confname.h: - -/usr/include/x86_64-linux-gnu/bits/posix_opt.h: - -/usr/include/c++/9/bits/codecvt.h: - -/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp: - -/usr/include/features.h: - -/usr/include/c++/9/bits/stl_multimap.h: - -/usr/include/c++/9/bits/stl_deque.h: - -/usr/include/c++/9/bits/stl_vector.h: - -/usr/include/boost/algorithm/string/detail/find_format.hpp: - -/usr/include/c++/9/cstdint: - -/usr/include/boost/algorithm/string.hpp: - -/usr/include/c++/9/vector: - -/usr/include/c++/9/bits/deque.tcc: - -/usr/include/c++/9/map: - -/usr/include/boost/preprocessor/seq/seq.hpp: - -/usr/include/jsoncpp/json/value.h: - -/usr/include/boost/mpl/aux_/config/workaround.hpp: - -/usr/include/boost/core/addressof.hpp: - -/usr/include/boost/mpl/aux_/common_name_wknd.hpp: - -/usr/include/jsoncpp/json/forwards.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: - -/usr/include/c++/9/bits/sstream.tcc: - -/usr/include/c++/9/sstream: - -/usr/include/c++/9/bits/atomic_lockfree_defines.h: - -/usr/include/c++/9/typeinfo: - -/usr/include/x86_64-linux-gnu/asm/socket.h: - -/usr/include/x86_64-linux-gnu/bits/wchar.h: - -/usr/include/asm-generic/bitsperlong.h: - -/usr/include/c++/9/cstring: - -/usr/include/asm-generic/types.h: - -/usr/include/c++/9/ext/aligned_buffer.h: - -/usr/include/boost/integer_traits.hpp: - -/usr/include/x86_64-linux-gnu/sys/time.h: - -/usr/include/c++/9/bits/allocated_ptr.h: - -/usr/include/boost/algorithm/string/config.hpp: - -/usr/include/c++/9/backward/binders.h: - -/usr/include/c++/9/array: - -/usr/include/c++/9/tuple: - -/usr/include/x86_64-linux-gnu/bits/fp-logb.h: - -/usr/include/c++/9/deque: - -/usr/include/c++/9/bits/stl_function.h: - -/usr/include/c++/9/bits/stl_relops.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: - -/usr/include/c++/9/bits/unique_ptr.h: - -/usr/include/c++/9/bits/stl_list.h: - -/usr/include/c++/9/bits/stl_raw_storage_iter.h: - -/usr/include/c++/9/ext/string_conversions.h: - -/usr/include/c++/9/cerrno: - -/usr/include/c++/9/ostream: - -/usr/include/c++/9/bits/streambuf_iterator.h: - -/usr/include/jsoncpp/json/writer.h: - -/usr/include/boost/mpl/aux_/arity_spec.hpp: - -/usr/include/boost/exception/exception.hpp: - -/usr/include/unistd.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: - -/usr/include/c++/9/system_error: - -/usr/include/c++/9/backward/auto_ptr.h: - -/usr/include/asm-generic/posix_types.h: - -/usr/include/c++/9/bits/locale_classes.tcc: - -/usr/include/c++/9/cassert: - -/usr/include/c++/9/utility: - -/usr/include/boost/preprocessor/cat.hpp: - -/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: - -/usr/include/boost/type_traits/is_unsigned.hpp: - -/usr/include/c++/9/bits/basic_string.tcc: - -/usr/include/boost/mpl/aux_/static_cast.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/error_t.h: - -/usr/include/asm-generic/errno.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: - -/usr/include/c++/9/bits/uses_allocator.h: - -/usr/include/boost/bind/mem_fn_cc.hpp: - -/usr/include/wctype.h: - -/usr/include/netdb.h: - -/usr/include/sched.h: - -/usr/include/x86_64-linux-gnu/bits/errno.h: - -/usr/include/boost/utility/detail/result_of_iterate.hpp: - -/usr/include/x86_64-linux-gnu/bits/signum-arch.h: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: - -/usr/include/stdio.h: - -/usr/include/boost/mpl/int_fwd.hpp: - -/usr/include/boost/iterator/reverse_iterator.hpp: - -/usr/include/c++/9/bits/shared_ptr_atomic.h: - -/usr/include/c++/9/bits/stl_iterator_base_funcs.h: - -/usr/include/x86_64-linux-gnu/bits/time.h: - -/usr/include/c++/9/bits/fstream.tcc: - -/usr/include/c++/9/stack: - -/usr/include/boost/range/detail/implementation_help.hpp: - -/usr/include/x86_64-linux-gnu/bits/byteswap.h: - -/usr/include/x86_64-linux-gnu/bits/in.h: - -/usr/include/boost/config/detail/select_stdlib_config.hpp: - -/usr/include/endian.h: - -/usr/include/stdint.h: - -/usr/include/asm-generic/socket.h: - -/usr/include/x86_64-linux-gnu/sys/types.h: - -/usr/include/arpa/nameser_compat.h: - -/usr/include/c++/9/bits/locale_facets.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: - -/usr/include/x86_64-linux-gnu/bits/stat.h: - -/usr/include/c++/9/bits/stl_tree.h: - -/usr/include/x86_64-linux-gnu/bits/waitstatus.h: - -../compile_server/comm/Log.hpp: - -/usr/include/x86_64-linux-gnu/bits/waitflags.h: - -/usr/include/c++/9/bits/alloc_traits.h: - -/usr/include/boost/mpl/aux_/config/has_xxx.hpp: - -/usr/include/c++/9/bits/stl_heap.h: - -/usr/include/x86_64-linux-gnu/bits/timex.h: - -/usr/include/boost/function/detail/maybe_include.hpp: - -/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: - -/usr/include/boost/mpl/aux_/na_assert.hpp: - -/usr/include/x86_64-linux-gnu/asm/types.h: - -/usr/include/x86_64-linux-gnu/bits/timesize.h: - -/usr/include/c++/9/bits/atomic_base.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: - -/usr/include/c++/9/bits/allocator.h: - -/usr/include/boost/preprocessor/facilities/intercept.hpp: - -/usr/include/c++/9/stdexcept: - -/usr/include/c++/9/cstdio: - -/usr/include/c++/9/bits/cxxabi_init_exception.h: - -/usr/include/c++/9/bits/std_mutex.h: - -/usr/include/c++/9/bits/stl_construct.h: - -/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: - -/usr/include/jsoncpp/json/reader.h: - -/usr/include/boost/algorithm/string/formatter.hpp: - -/usr/include/boost/type_traits/add_rvalue_reference.hpp: - -/usr/include/c++/9/exception: - -/usr/include/boost/config/user.hpp: - -/usr/include/c++/9/bits/localefwd.h: - -/usr/include/c++/9/bits/exception.h: - -/usr/include/boost/mpl/aux_/config/bcc.hpp: - -/usr/include/c++/9/climits: - -/usr/include/x86_64-linux-gnu/bits/statx.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp: - -/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: - -/usr/include/boost/concept/usage.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: - -/usr/include/alloca.h: - -/usr/include/boost/type_traits/add_volatile.hpp: - -/usr/include/c++/9/bits/istream.tcc: - -/usr/include/x86_64-linux-gnu/bits/fcntl.h: - -/usr/include/x86_64-linux-gnu/asm/errno.h: - -/usr/include/boost/next_prior.hpp: - -/usr/include/boost/type_traits/add_lvalue_reference.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: - -/usr/include/c++/9/bits/stl_iterator_base_types.h: - -/usr/include/stdc-predef.h: - -/usr/include/c++/9/ios: - -/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: - -/usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: - -/usr/include/pthread.h: - -/usr/include/x86_64-linux-gnu/bits/socket.h: - -/usr/include/x86_64-linux-gnu/bits/long-double.h: - -/usr/include/boost/range/detail/misc_concept.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: - -/usr/include/c++/9/ext/numeric_traits.h: - -/usr/include/boost/preprocessor/variadic/elem.hpp: - -/usr/include/boost/algorithm/string/finder.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_rusage.h: - -/usr/include/c++/9/functional: - -/usr/include/linux/posix_types.h: - -../compile_server/comm/httplib.h: - -/usr/include/c++/9/bits/exception_ptr.h: - -/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: - -../compile_server/comm/util.hpp: - -/usr/include/string.h: - -/usr/include/jsoncpp/json/json.h: - -/usr/include/boost/preprocessor/facilities/empty.hpp: - -/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h: - -/usr/include/x86_64-linux-gnu/sys/param.h: - -/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h: - -/usr/include/boost/mpl/arg_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: - -/usr/include/boost/limits.hpp: - -/usr/include/c++/9/cstdlib: - -/usr/include/boost/range/detail/common.hpp: - -/usr/include/boost/mpl/aux_/nested_type_wknd.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/time_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/FILE.h: - -/usr/include/boost/concept/assert.hpp: - -/usr/include/boost/type_traits/detail/config.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: - -/usr/include/arpa/inet.h: - -/usr/include/x86_64-linux-gnu/bits/sigaction.h: - -/usr/include/boost/preprocessor/enum_params.hpp: - -/usr/include/boost/preprocessor/seq/enum.hpp: - -/usr/include/boost/preprocessor/facilities/expand.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: - -/usr/include/c++/9/bits/ios_base.h: - -/usr/include/x86_64-linux-gnu/bits/floatn-common.h: - -/usr/include/c++/9/ext/concurrence.h: - -/usr/include/boost/mpl/aux_/config/ctps.hpp: - -/usr/include/boost/mpl/void.hpp: - -/usr/include/boost/algorithm/string/erase.hpp: - -/usr/include/c++/9/bits/basic_string.h: - -/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: - -/usr/include/x86_64-linux-gnu/sys/resource.h: - -/usr/include/c++/9/ext/alloc_traits.h: - -/usr/include/boost/preprocessor/logical/compl.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: - -/usr/include/boost/type_traits/is_pointer.hpp: - -/usr/include/boost/iterator/iterator_concepts.hpp: - -/usr/include/boost/mpl/aux_/arity.hpp: - -/usr/include/x86_64-linux-gnu/sys/cdefs.h: - -/usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp: - -/usr/include/jsoncpp/json/version.h: - -/usr/include/ctype.h: - -/usr/include/jsoncpp/json/config.h: - -/usr/include/c++/9/bits/ptr_traits.h: - -/usr/include/c++/9/bits/stl_bvector.h: - -/usr/include/boost/preprocessor/arithmetic/dec.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: - -/usr/include/boost/preprocessor/enum.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: - -/usr/include/boost/mpl/apply_wrap.hpp: - -/usr/include/c++/9/new: - -/usr/include/jsoncpp/json/allocator.h: - -/usr/include/boost/mpl/aux_/yes_no.hpp: - -/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: - -/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: - -/usr/include/c++/9/iosfwd: - -/usr/include/features-time64.h: - -/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: - -/usr/include/boost/mpl/aux_/adl_barrier.hpp: - -/usr/include/c++/9/ext/new_allocator.h: - -/usr/include/x86_64-linux-gnu/bits/environments.h: - -/usr/include/boost/mpl/aux_/config/preprocessor.hpp: - -/usr/include/boost/type_traits/is_array.hpp: - -/usr/include/x86_64-linux-gnu/bits/wordsize.h: - -/usr/include/x86_64-linux-gnu/bits/sched.h: - -/usr/include/boost/static_assert.hpp: - -../compile_server/compile_server.cc: - -/usr/include/x86_64-linux-gnu/bits/typesizes.h: - -/usr/include/c++/9/bits/streambuf.tcc: - -/usr/include/math.h: - -/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: - -/usr/include/boost/throw_exception.hpp: - -/usr/include/c++/9/iostream: - -/usr/include/boost/config/stdlib/libstdcpp3.hpp: - -/usr/include/boost/type_traits/is_void.hpp: - -/usr/include/x86_64-linux-gnu/sys/select.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: - -/usr/include/c++/9/bits/nested_exception.h: - -/usr/include/c++/9/bits/regex_executor.tcc: - -/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: - -/usr/include/c++/9/bits/random.h: - -/usr/include/x86_64-linux-gnu/bits/select.h: - -/usr/include/boost/preprocessor/detail/is_binary.hpp: - -/usr/include/boost/algorithm/string/detail/sequence.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: - -/usr/include/x86_64-linux-gnu/sys/stat.h: - -/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: - -/usr/include/x86_64-linux-gnu/bits/local_lim.h: - -/usr/include/boost/mpl/aux_/lambda_arity_param.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: - -/usr/include/boost/preprocessor/repetition/for.hpp: - -/usr/include/c++/9/bits/basic_ios.h: - -/usr/include/x86_64-linux-gnu/bits/time64.h: - -/usr/include/c++/9/fstream: - -/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: - -/usr/include/boost/preprocessor/arithmetic/inc.hpp: - -/usr/include/boost/type_traits/is_floating_point.hpp: - -/usr/include/boost/type_traits/function_traits.hpp: - -/usr/include/c++/9/bits/vector.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: - -/usr/include/c++/9/memory: - -/usr/include/boost/range/size.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: - -/usr/include/wchar.h: - -/usr/include/x86_64-linux-gnu/bits/statx-generic.h: - -/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: - -/usr/include/c++/9/atomic: - -/usr/include/boost/mpl/aux_/has_apply.hpp: - -/usr/include/x86_64-linux-gnu/gnu/stubs.h: - -/usr/include/linux/limits.h: - -/usr/include/boost/mpl/always.hpp: - -/usr/include/x86_64-linux-gnu/bits/mathcalls.h: - -/usr/include/x86_64-linux-gnu/bits/endian.h: - -/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: - -/usr/include/boost/iterator/detail/config_def.hpp: - -/usr/include/c++/9/bits/concept_check.h: - -/usr/include/c++/9/type_traits: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp: - -/usr/include/linux/falloc.h: - -/usr/include/boost/type_traits/conditional.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: - -/usr/include/c++/9/bits/char_traits.h: - -../compile_server/compile_run.hpp: - -/usr/include/boost/iterator/iterator_facade.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h: - -/usr/include/asm-generic/errno-base.h: - -/usr/include/x86_64-linux-gnu/sys/wait.h: - -/usr/include/boost/config/no_tr1/functional.hpp: - -/usr/include/c++/9/bits/std_abs.h: - -/usr/include/x86_64-linux-gnu/bits/signum-generic.h: - -/usr/include/boost/algorithm/string/detail/formatter.hpp: - -/usr/include/boost/range/rend.hpp: - -/usr/include/boost/preprocessor/identity.hpp: - -/usr/include/boost/mpl/quote.hpp: - -/usr/include/c++/9/ext/type_traits.h: - -/usr/include/c++/9/version: - -/usr/include/boost/mpl/aux_/preprocessor/params.hpp: - -/usr/include/boost/type_traits/is_function.hpp: - -/usr/include/linux/stat.h: - -/usr/include/boost/mpl/aux_/config/eti.hpp: - -/usr/include/c++/9/bits/stl_pair.h: - -/usr/include/c++/9/bits/regex.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: - -/usr/include/c++/9/bits/stringfwd.h: - -/usr/include/boost/mpl/apply_fwd.hpp: - -/usr/include/c++/9/bits/stl_iterator.h: - -/usr/include/boost/utility/result_of.hpp: - -/usr/include/x86_64-linux-gnu/bits/getopt_core.h: - -/usr/include/boost/range/config.hpp: - -/usr/include/boost/mpl/aux_/config/nttp.hpp: - -/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: - -/usr/include/boost/mem_fn.hpp: - -/usr/include/boost/mpl/limits/arity.hpp: - -/usr/include/c++/9/bits/predefined_ops.h: - -/usr/include/c++/9/cctype: - -/usr/include/c++/9/bits/memoryfwd.h: - -/usr/include/x86_64-linux-gnu/bits/cpu-set.h: - -/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: - -/usr/include/boost/mpl/not.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: - -/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: - -/usr/include/c++/9/bits/refwrap.h: - -/usr/include/asm-generic/param.h: - -/usr/include/boost/type_traits/detail/is_function_cxx_11.hpp: - -/usr/include/c++/9/cwctype: - -/usr/include/boost/type_traits/is_rvalue_reference.hpp: - -/usr/include/boost/mpl/bool_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/endianness.h: - -/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp: - -/usr/include/c++/9/cwchar: - -/usr/include/c++/9/bits/range_access.h: - -/usr/include/c++/9/ext/atomicity.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: - -/usr/include/boost/range/iterator_range_core.hpp: - -/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: - -/usr/include/linux/close_range.h: - -/usr/include/c++/9/bits/hash_bytes.h: - -/usr/include/c++/9/ext/slist: - -/usr/include/boost/range/iterator_range_io.hpp: - -/usr/include/locale.h: - -/usr/include/boost/function/function_fwd.hpp: - -/usr/include/boost/preprocessor/slot/detail/def.hpp: - -/usr/include/x86_64-linux-gnu/bits/setjmp.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: - -/usr/include/boost/mpl/aux_/preprocessor/default_params.hpp: - -/usr/include/x86_64-linux-gnu/bits/floatn.h: - -/usr/include/boost/integer_fwd.hpp: - -/usr/include/boost/type_traits/is_volatile.hpp: - -/usr/include/libintl.h: - -/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: - -/usr/include/boost/type_traits/is_member_pointer.hpp: - -/usr/include/c++/9/bits/locale_facets.tcc: - -/usr/include/strings.h: - -/usr/include/x86_64-linux-gnu/bits/struct_stat.h: - -/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: - -/usr/include/signal.h: - -/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: - -/usr/include/boost/utility/enable_if.hpp: - -/usr/include/boost/type_traits/add_const.hpp: - -/usr/include/boost/mpl/lambda.hpp: - -/usr/include/c++/9/bits/locale_classes.h: - -/usr/include/c++/9/debug/assertions.h: - -/usr/include/boost/preprocessor/empty.hpp: - -/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: - -/usr/include/x86_64-linux-gnu/bits/locale.h: - -/usr/include/c++/9/string: - -/usr/include/c++/9/bits/stl_uninitialized.h: - -/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: - -/usr/include/netinet/tcp.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: - -/usr/include/c++/9/bits/regex_automaton.h: - -/usr/include/x86_64-linux-gnu/asm/posix_types.h: - -/usr/include/c++/9/bits/std_function.h: - -/usr/include/boost/preprocessor/detail/check.hpp: - -/usr/include/boost/range/detail/str_types.hpp: - -/usr/include/c++/9/bits/ostream_insert.h: - -/usr/include/errno.h: - -/usr/include/c++/9/bits/basic_ios.tcc: - -/usr/include/c++/9/bits/cxxabi_forced.h: - -/usr/include/boost/range/mutable_iterator.hpp: - -/usr/include/c++/9/limits: - -/usr/include/boost/mpl/aux_/config/msvc.hpp: - -/usr/include/boost/range/end.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: - -/usr/include/boost/algorithm/string/case_conv.hpp: - -/usr/include/x86_64-linux-gnu/bits/ss_flags.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: - -/usr/include/boost/bind/mem_fn.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: - -/usr/include/boost/type_traits/is_reference.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: - -/usr/include/x86_64-linux-gnu/bits/sigcontext.h: - -/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: - -/usr/include/x86_64-linux-gnu/sys/ucontext.h: - -/usr/include/x86_64-linux-gnu/bits/types.h: - -/usr/include/x86_64-linux-gnu/bits/signal_ext.h: - -/usr/include/boost/preprocessor/control/while.hpp: - -/usr/include/boost/algorithm/string/std_containers_traits.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: - -/usr/include/boost/mpl/apply.hpp: - -/usr/include/boost/config/detail/select_compiler_config.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp: - -/usr/include/c++/9/debug/debug.h: - -/usr/include/boost/config/detail/select_platform_config.hpp: - -/usr/include/boost/config/platform/linux.hpp: - -/usr/include/boost/type_traits/is_class.hpp: - -/usr/include/linux/errno.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp: - -/usr/include/boost/config/detail/suffix.hpp: - -/usr/include/boost/algorithm/string/sequence_traits.hpp: - -/usr/include/boost/type_traits/is_integral.hpp: - -/usr/include/boost/config/helper_macros.hpp: - -/usr/include/boost/type_traits/is_constructible.hpp: - -/usr/include/boost/algorithm/string/std/string_traits.hpp: - -/usr/include/boost/algorithm/string/yes_no_type.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: - -/usr/include/boost/mpl/bool.hpp: - -/usr/include/boost/mpl/aux_/config/adl.hpp: - -/usr/include/boost/mpl/aux_/config/gcc.hpp: - -/usr/include/boost/mpl/aux_/config/ttp.hpp: - -/usr/include/boost/detail/workaround.hpp: - -/usr/include/boost/config/workaround.hpp: - -/usr/include/boost/mpl/aux_/config/gpu.hpp: - -/usr/include/c++/9/bits/regex_compiler.tcc: - -/usr/include/boost/mpl/aux_/config/static_constant.hpp: - -/usr/include/boost/mpl/lambda_fwd.hpp: - -/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp: - -/usr/include/time.h: - -/usr/include/boost/algorithm/string/std/list_traits.hpp: - -/usr/include/c++/9/istream: - -/usr/include/c++/9/list: - -/usr/include/boost/function/detail/prologue.hpp: - -/usr/include/c++/9/bits/list.tcc: - -/usr/include/c++/9/bits/algorithmfwd.h: - -/usr/include/c++/9/bits/functexcept.h: - -/usr/include/boost/algorithm/string/std/slist_traits.hpp: - -/usr/include/boost/type_traits/alignment_of.hpp: - -/usr/include/c++/9/algorithm: - -/usr/include/c++/9/bits/shared_ptr_base.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp: - -/usr/include/c++/9/bits/stl_algo.h: - -/usr/include/c++/9/bits/uniform_int_dist.h: - -/usr/include/x86_64-linux-gnu/bits/iscanonical.h: - -/usr/include/boost/algorithm/string/trim.hpp: - -/usr/include/c++/9/cstddef: - -/usr/include/boost/range/begin.hpp: - -/usr/include/boost/mpl/aux_/full_lambda.hpp: - -/usr/include/boost/range/range_fwd.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp: - -/usr/include/boost/range/detail/extract_optional_type.hpp: - -/usr/include/c++/9/initializer_list: - -/usr/include/boost/preprocessor/config/config.hpp: - -/usr/include/boost/mpl/has_xxx.hpp: - -/usr/include/c++/9/bits/erase_if.h: - -/usr/include/boost/mpl/aux_/na_spec.hpp: - -/usr/include/boost/preprocessor/list/fold_left.hpp: - -/usr/include/x86_64-linux-gnu/bits/resource.h: - -/usr/include/boost/mpl/void_fwd.hpp: - -/usr/include/boost/mpl/aux_/na.hpp: - -/usr/include/c++/9/bits/regex_constants.h: - -/usr/include/boost/mpl/aux_/na_fwd.hpp: - -/usr/include/boost/mpl/int.hpp: - -/usr/include/boost/mpl/aux_/nttp_decl.hpp: - -/usr/include/boost/type_traits/is_convertible.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigstack.h: - -/usr/include/boost/preprocessor/list/detail/fold_right.hpp: - -/usr/include/boost/mpl/aux_/template_arity_fwd.hpp: - -/usr/include/boost/preprocessor/seq/size.hpp: - -/usr/include/boost/mpl/aux_/config/dtp.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp: - -/usr/include/boost/mpl/aux_/arg_typedef.hpp: - -/usr/include/boost/preprocessor/comma_if.hpp: - -/usr/include/boost/preprocessor/punctuation/comma_if.hpp: - -/usr/include/boost/preprocessor/control/if.hpp: - -/usr/include/boost/preprocessor/control/iif.hpp: - -/usr/include/boost/preprocessor/logical/bool.hpp: - -/usr/include/boost/mpl/integral_c_tag.hpp: - -/usr/include/boost/preprocessor/punctuation/comma.hpp: - -/usr/include/c++/9/bits/postypes.h: - -/usr/include/boost/preprocessor/tuple/elem.hpp: - -/usr/include/boost/preprocessor/repeat.hpp: - -/usr/include/boost/preprocessor/array/data.hpp: - -/usr/include/boost/type_traits/remove_reference.hpp: - -/usr/include/boost/preprocessor/repetition/repeat.hpp: - -/usr/include/boost/type_traits/is_complete.hpp: - -/usr/include/boost/preprocessor/detail/auto_rec.hpp: - -/usr/include/boost/preprocessor/tuple/eat.hpp: - -/usr/include/boost/preprocessor/inc.hpp: - -/usr/include/boost/mpl/aux_/config/intel.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/enum.hpp: - -/usr/include/boost/range/detail/sfinae.hpp: - -/usr/include/boost/preprocessor/logical/and.hpp: - -/usr/include/boost/preprocessor/facilities/identity.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigthread.h: - -/usr/include/boost/mpl/protect.hpp: - -/usr/include/boost/config/detail/posix_features.hpp: - -/usr/include/boost/preprocessor/arithmetic/add.hpp: - -/usr/include/boost/preprocessor/list/detail/fold_left.hpp: - -/usr/include/boost/range/size_type.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: - -/usr/include/boost/preprocessor/control/expr_iif.hpp: - -/usr/include/boost/mpl/aux_/type_wrapper.hpp: - -/usr/include/boost/preprocessor/list/adt.hpp: - -/usr/include/netinet/in.h: - -/usr/include/boost/type_traits/is_const.hpp: - -/usr/include/boost/preprocessor/list/reverse.hpp: - -/usr/include/boost/preprocessor/control/detail/while.hpp: - -/usr/include/boost/preprocessor/facilities/overload.hpp: - -/usr/include/boost/preprocessor/variadic/size.hpp: - -/usr/include/boost/mpl/identity.hpp: - -/usr/include/boost/mpl/aux_/template_arity.hpp: - -/usr/include/boost/preprocessor/tuple/rem.hpp: - -/usr/include/jsoncpp/json/json_features.h: - -/usr/include/boost/preprocessor/arithmetic/sub.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: - -/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: - -/usr/include/boost/assert.hpp: - -/usr/include/boost/mpl/aux_/config/arrays.hpp: - -/usr/include/boost/mpl/aux_/config/msvc_typename.hpp: - -/usr/include/boost/preprocessor/array/elem.hpp: - -/usr/include/c++/9/bits/move.h: - -/usr/include/boost/preprocessor/array/size.hpp: - -/usr/include/boost/preprocessor/repetition/enum_params.hpp: - -../compile_server/compile.hpp: - -/usr/include/boost/algorithm/string/detail/predicate.hpp: - -/usr/include/boost/iterator/iterator_traits.hpp: - -/usr/include/c++/9/iterator: - -/usr/include/c++/9/bitset: - -/usr/include/c++/9/bits/stream_iterator.h: - -/usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp: - -/usr/include/boost/preprocessor/slot/detail/shared.hpp: - -/usr/include/boost/range/const_iterator.hpp: - -/usr/include/c++/9/clocale: - -/usr/include/boost/mpl/if.hpp: - -/usr/include/boost/type_traits/add_reference.hpp: - -/usr/include/boost/type_traits/integral_constant.hpp: - -/usr/include/boost/container_hash/hash_fwd.hpp: - -/usr/include/boost/range/empty.hpp: - -/usr/include/boost/mpl/eval_if.hpp: - -/usr/include/c++/9/bits/stl_numeric.h: - -/usr/include/boost/mpl/aux_/value_wknd.hpp: - -/usr/include/boost/mpl/aux_/config/use_preprocessed.hpp: - -/usr/include/c++/9/bits/stl_map.h: - -/usr/include/boost/mpl/aux_/config/integral.hpp: - -/usr/include/boost/type_traits/detail/yes_no_type.hpp: - -/usr/include/boost/mpl/aux_/config/lambda.hpp: - -/usr/include/boost/type_traits/is_same.hpp: - -/usr/include/boost/range/as_literal.hpp: - -/usr/include/boost/preprocessor/logical/bitand.hpp: - -/usr/include/boost/type_traits/is_member_function_pointer.hpp: - -/usr/include/boost/range/functions.hpp: - -/usr/include/boost/range/iterator_range.hpp: - -/usr/include/assert.h: - -/usr/include/c++/9/bits/invoke.h: - -/usr/include/boost/iterator/detail/config_undef.hpp: - -/usr/include/boost/mpl/placeholders.hpp: - -/usr/include/boost/type_traits/enable_if.hpp: - -/usr/include/boost/config/compiler/gcc.hpp: - -/usr/include/boost/iterator/interoperable.hpp: - -/usr/include/c++/9/bits/stl_algobase.h: - -/usr/include/boost/mpl/or.hpp: - -/usr/include/boost/mpl/aux_/include_preprocessed.hpp: - -/usr/include/boost/mpl/aux_/config/compiler.hpp: - -/usr/include/c++/9/bits/functional_hash.h: - -/usr/include/boost/mpl/next.hpp: - -/usr/include/boost/preprocessor/stringize.hpp: - -/usr/include/boost/type_traits/intrinsics.hpp: - -/usr/include/boost/version.hpp: - -/usr/include/c++/9/bits/stl_stack.h: - -/usr/include/boost/type_traits/declval.hpp: - -/usr/include/boost/type_traits/is_lvalue_reference.hpp: - -/usr/include/boost/type_traits/is_arithmetic.hpp: - -/usr/include/boost/type_traits/is_abstract.hpp: - -/usr/include/boost/iterator/iterator_categories.hpp: - -/usr/include/boost/mpl/arg.hpp: - -/usr/include/boost/range/iterator.hpp: - -/usr/include/boost/preprocessor/list/fold_right.hpp: - -/usr/include/boost/mpl/assert.hpp: - -/usr/include/boost/mpl/aux_/config/pp_counter.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp: - -/usr/include/c++/9/bits/exception_defines.h: - -/usr/include/boost/iterator/detail/facade_iterator_category.hpp: - -/usr/include/boost/config.hpp: - -/usr/include/boost/core/use_default.hpp: - -/usr/include/boost/mpl/aux_/config/overload_resolution.hpp: - -/usr/include/boost/mpl/and.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp: - -/usr/include/boost/detail/indirect_traits.hpp: - -/usr/include/c++/9/bits/shared_ptr.h: - -/usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp: - -/usr/include/boost/type_traits/remove_cv.hpp: - -/usr/include/stdlib.h: - -/usr/include/boost/type_traits/remove_pointer.hpp: - -/usr/include/boost/mpl/aux_/lambda_support.hpp: - -/usr/include/boost/detail/select_type.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: - -/usr/include/boost/iterator/detail/enable_if.hpp: - -/usr/include/boost/type_traits/add_pointer.hpp: - -/usr/include/x86_64-linux-gnu/bits/uio_lim.h: - -/usr/include/boost/type_traits/is_pod.hpp: - -/usr/include/boost/mpl/aux_/integral_wrapper.hpp: - -/usr/include/boost/type_traits/is_scalar.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp: - -/usr/include/limits.h: - -/usr/include/boost/mpl/aux_/config/has_apply.hpp: - -/usr/include/boost/mpl/aux_/msvc_never_true.hpp: - -/usr/include/boost/mpl/bind.hpp: - -/usr/include/boost/mpl/bind_fwd.hpp: - -/usr/include/boost/mpl/aux_/config/bind.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp: - -/usr/include/c++/9/streambuf: - -/usr/include/boost/mpl/next_prior.hpp: - -/usr/include/c++/9/bits/cpp_type_traits.h: - -/usr/include/boost/type_traits/remove_const.hpp: - -/usr/include/boost/mpl/aux_/has_type.hpp: - -/usr/include/boost/type_traits/is_base_and_derived.hpp: diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.ts b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.ts deleted file mode 100644 index 1a09844..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/compiler_depend.ts +++ /dev/null @@ -1,2 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Timestamp file for compiler generated dependencies management for compile_server. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/depend.make deleted file mode 100644 index ff3f224..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/depend.make +++ /dev/null @@ -1,2 +0,0 @@ -# Empty dependencies file for compile_server. -# This may be replaced when dependencies are built. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/flags.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/flags.make deleted file mode 100644 index ec0b684..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/flags.make +++ /dev/null @@ -1,10 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# compile CXX with /usr/bin/g++-9 -CXX_DEFINES = - -CXX_INCLUDES = - -CXX_FLAGS = -g -std=gnu++11 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/link.txt b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/link.txt deleted file mode 100644 index f77036d..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/link.txt +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/g++-9 -g CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -o output/compile_server -ljsoncpp diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/progress.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/progress.make deleted file mode 100644 index 8c8fb6f..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/compile_server.dir/progress.make +++ /dev/null @@ -1,3 +0,0 @@ -CMAKE_PROGRESS_1 = 3 -CMAKE_PROGRESS_2 = 4 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/DependInfo.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/DependInfo.cmake deleted file mode 100644 index fb69b5f..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/DependInfo.cmake +++ /dev/null @@ -1,19 +0,0 @@ - -# Consider dependencies only in project. -set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) - -# The set of languages for which implicit dependencies are needed: -set(CMAKE_DEPENDS_LANGUAGES - ) - -# The set of dependency files which are needed: -set(CMAKE_DEPENDS_DEPENDENCY_FILES - "/home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc" "CMakeFiles/data_server.dir/data_server/data_server.cc.o" "gcc" "CMakeFiles/data_server.dir/data_server/data_server.cc.o.d" - ) - -# Targets to which this target links. -set(CMAKE_TARGET_LINKED_INFO_FILES - ) - -# Fortran module output directory. -set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/build.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/build.make deleted file mode 100644 index 0efbaa3..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/build.make +++ /dev/null @@ -1,110 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Delete rule output on recipe failure. -.DELETE_ON_ERROR: - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/zzy1/2024/my-online-judge/MYOJ - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/zzy1/2024/my-online-judge/MYOJ/build - -# Include any dependencies generated for this target. -include CMakeFiles/data_server.dir/depend.make -# Include any dependencies generated by the compiler for this target. -include CMakeFiles/data_server.dir/compiler_depend.make - -# Include the progress variables for this target. -include CMakeFiles/data_server.dir/progress.make - -# Include the compile flags for this target's objects. -include CMakeFiles/data_server.dir/flags.make - -CMakeFiles/data_server.dir/data_server/data_server.cc.o: CMakeFiles/data_server.dir/flags.make -CMakeFiles/data_server.dir/data_server/data_server.cc.o: ../data_server/data_server.cc -CMakeFiles/data_server.dir/data_server/data_server.cc.o: CMakeFiles/data_server.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/data_server.dir/data_server/data_server.cc.o" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/data_server.dir/data_server/data_server.cc.o -MF CMakeFiles/data_server.dir/data_server/data_server.cc.o.d -o CMakeFiles/data_server.dir/data_server/data_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc - -CMakeFiles/data_server.dir/data_server/data_server.cc.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/data_server.dir/data_server/data_server.cc.i" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc > CMakeFiles/data_server.dir/data_server/data_server.cc.i - -CMakeFiles/data_server.dir/data_server/data_server.cc.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/data_server.dir/data_server/data_server.cc.s" - /usr/bin/g++-9 $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc -o CMakeFiles/data_server.dir/data_server/data_server.cc.s - -# Object files for target data_server -data_server_OBJECTS = \ -"CMakeFiles/data_server.dir/data_server/data_server.cc.o" - -# External object files for target data_server -data_server_EXTERNAL_OBJECTS = - -output/data_server: CMakeFiles/data_server.dir/data_server/data_server.cc.o -output/data_server: CMakeFiles/data_server.dir/build.make -output/data_server: CMakeFiles/data_server.dir/link.txt - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable output/data_server" - $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/data_server.dir/link.txt --verbose=$(VERBOSE) - -# Rule to build all files generated by this target. -CMakeFiles/data_server.dir/build: output/data_server -.PHONY : CMakeFiles/data_server.dir/build - -CMakeFiles/data_server.dir/clean: - $(CMAKE_COMMAND) -P CMakeFiles/data_server.dir/cmake_clean.cmake -.PHONY : CMakeFiles/data_server.dir/clean - -CMakeFiles/data_server.dir/depend: - cd /home/zzy1/2024/my-online-judge/MYOJ/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles/data_server.dir/DependInfo.cmake --color=$(COLOR) -.PHONY : CMakeFiles/data_server.dir/depend - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/cmake_clean.cmake b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/cmake_clean.cmake deleted file mode 100644 index 6c3a712..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/cmake_clean.cmake +++ /dev/null @@ -1,11 +0,0 @@ -file(REMOVE_RECURSE - "CMakeFiles/data_server.dir/data_server/data_server.cc.o" - "CMakeFiles/data_server.dir/data_server/data_server.cc.o.d" - "output/data_server" - "output/data_server.pdb" -) - -# Per-language clean rules from dependency scanning. -foreach(lang CXX) - include(CMakeFiles/data_server.dir/cmake_clean_${lang}.cmake OPTIONAL) -endforeach() diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.internal b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.internal deleted file mode 100644 index a908f33..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.internal +++ /dev/null @@ -1,828 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/data_server.dir/data_server/data_server.cc.o - /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc - /usr/include/stdc-predef.h - /usr/include/jsoncpp/json/json.h - /usr/include/jsoncpp/json/config.h - /usr/include/c++/9/cstddef - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h - /usr/include/features.h - /usr/include/features-time64.h - /usr/include/x86_64-linux-gnu/bits/wordsize.h - /usr/include/x86_64-linux-gnu/bits/timesize.h - /usr/include/x86_64-linux-gnu/sys/cdefs.h - /usr/include/x86_64-linux-gnu/bits/long-double.h - /usr/include/x86_64-linux-gnu/gnu/stubs.h - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h - /usr/include/c++/9/cstdint - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h - /usr/include/stdint.h - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h - /usr/include/x86_64-linux-gnu/bits/types.h - /usr/include/x86_64-linux-gnu/bits/typesizes.h - /usr/include/x86_64-linux-gnu/bits/time64.h - /usr/include/x86_64-linux-gnu/bits/wchar.h - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h - /usr/include/c++/9/istream - /usr/include/c++/9/ios - /usr/include/c++/9/iosfwd - /usr/include/c++/9/bits/stringfwd.h - /usr/include/c++/9/bits/memoryfwd.h - /usr/include/c++/9/bits/postypes.h - /usr/include/c++/9/cwchar - /usr/include/wchar.h - /usr/include/x86_64-linux-gnu/bits/floatn.h - /usr/include/x86_64-linux-gnu/bits/floatn-common.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h - /usr/include/x86_64-linux-gnu/bits/types/FILE.h - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h - /usr/include/c++/9/exception - /usr/include/c++/9/bits/exception.h - /usr/include/c++/9/bits/exception_ptr.h - /usr/include/c++/9/bits/exception_defines.h - /usr/include/c++/9/bits/cxxabi_init_exception.h - /usr/include/c++/9/typeinfo - /usr/include/c++/9/bits/hash_bytes.h - /usr/include/c++/9/new - /usr/include/c++/9/bits/move.h - /usr/include/c++/9/bits/concept_check.h - /usr/include/c++/9/type_traits - /usr/include/c++/9/bits/nested_exception.h - /usr/include/c++/9/bits/char_traits.h - /usr/include/c++/9/bits/stl_algobase.h - /usr/include/c++/9/bits/functexcept.h - /usr/include/c++/9/bits/cpp_type_traits.h - /usr/include/c++/9/ext/type_traits.h - /usr/include/c++/9/ext/numeric_traits.h - /usr/include/c++/9/bits/stl_pair.h - /usr/include/c++/9/bits/stl_iterator_base_types.h - /usr/include/c++/9/bits/stl_iterator_base_funcs.h - /usr/include/c++/9/debug/assertions.h - /usr/include/c++/9/bits/stl_iterator.h - /usr/include/c++/9/bits/ptr_traits.h - /usr/include/c++/9/debug/debug.h - /usr/include/c++/9/bits/predefined_ops.h - /usr/include/c++/9/bits/localefwd.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h - /usr/include/c++/9/clocale - /usr/include/locale.h - /usr/include/x86_64-linux-gnu/bits/locale.h - /usr/include/c++/9/cctype - /usr/include/ctype.h - /usr/include/x86_64-linux-gnu/bits/endian.h - /usr/include/x86_64-linux-gnu/bits/endianness.h - /usr/include/c++/9/bits/ios_base.h - /usr/include/c++/9/ext/atomicity.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h - /usr/include/pthread.h - /usr/include/sched.h - /usr/include/x86_64-linux-gnu/bits/types/time_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h - /usr/include/x86_64-linux-gnu/bits/sched.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h - /usr/include/x86_64-linux-gnu/bits/cpu-set.h - /usr/include/time.h - /usr/include/x86_64-linux-gnu/bits/time.h - /usr/include/x86_64-linux-gnu/bits/timex.h - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h - /usr/include/x86_64-linux-gnu/bits/setjmp.h - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h - /usr/include/c++/9/bits/locale_classes.h - /usr/include/c++/9/string - /usr/include/c++/9/bits/allocator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h - /usr/include/c++/9/ext/new_allocator.h - /usr/include/c++/9/bits/ostream_insert.h - /usr/include/c++/9/bits/cxxabi_forced.h - /usr/include/c++/9/bits/stl_function.h - /usr/include/c++/9/backward/binders.h - /usr/include/c++/9/bits/range_access.h - /usr/include/c++/9/initializer_list - /usr/include/c++/9/bits/basic_string.h - /usr/include/c++/9/ext/alloc_traits.h - /usr/include/c++/9/bits/alloc_traits.h - /usr/include/c++/9/ext/string_conversions.h - /usr/include/c++/9/cstdlib - /usr/include/stdlib.h - /usr/include/x86_64-linux-gnu/bits/waitflags.h - /usr/include/x86_64-linux-gnu/bits/waitstatus.h - /usr/include/x86_64-linux-gnu/sys/types.h - /usr/include/endian.h - /usr/include/x86_64-linux-gnu/bits/byteswap.h - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h - /usr/include/x86_64-linux-gnu/sys/select.h - /usr/include/x86_64-linux-gnu/bits/select.h - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h - /usr/include/alloca.h - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h - /usr/include/c++/9/bits/std_abs.h - /usr/include/c++/9/cstdio - /usr/include/stdio.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h - /usr/include/c++/9/cerrno - /usr/include/errno.h - /usr/include/x86_64-linux-gnu/bits/errno.h - /usr/include/linux/errno.h - /usr/include/x86_64-linux-gnu/asm/errno.h - /usr/include/asm-generic/errno.h - /usr/include/asm-generic/errno-base.h - /usr/include/x86_64-linux-gnu/bits/types/error_t.h - /usr/include/c++/9/bits/functional_hash.h - /usr/include/c++/9/bits/basic_string.tcc - /usr/include/c++/9/bits/locale_classes.tcc - /usr/include/c++/9/system_error - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h - /usr/include/c++/9/stdexcept - /usr/include/c++/9/streambuf - /usr/include/c++/9/bits/streambuf.tcc - /usr/include/c++/9/bits/basic_ios.h - /usr/include/c++/9/bits/locale_facets.h - /usr/include/c++/9/cwctype - /usr/include/wctype.h - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h - /usr/include/c++/9/bits/streambuf_iterator.h - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h - /usr/include/c++/9/bits/locale_facets.tcc - /usr/include/c++/9/bits/basic_ios.tcc - /usr/include/c++/9/ostream - /usr/include/c++/9/bits/ostream.tcc - /usr/include/c++/9/bits/istream.tcc - /usr/include/c++/9/memory - /usr/include/c++/9/bits/stl_construct.h - /usr/include/c++/9/bits/stl_uninitialized.h - /usr/include/c++/9/bits/stl_tempbuf.h - /usr/include/c++/9/bits/stl_raw_storage_iter.h - /usr/include/c++/9/ext/concurrence.h - /usr/include/c++/9/bits/uses_allocator.h - /usr/include/c++/9/bits/unique_ptr.h - /usr/include/c++/9/utility - /usr/include/c++/9/bits/stl_relops.h - /usr/include/c++/9/tuple - /usr/include/c++/9/array - /usr/include/c++/9/bits/invoke.h - /usr/include/c++/9/bits/shared_ptr.h - /usr/include/c++/9/bits/shared_ptr_base.h - /usr/include/c++/9/bits/allocated_ptr.h - /usr/include/c++/9/bits/refwrap.h - /usr/include/c++/9/ext/aligned_buffer.h - /usr/include/c++/9/bits/shared_ptr_atomic.h - /usr/include/c++/9/bits/atomic_base.h - /usr/include/c++/9/bits/atomic_lockfree_defines.h - /usr/include/c++/9/backward/auto_ptr.h - /usr/include/c++/9/sstream - /usr/include/c++/9/bits/sstream.tcc - /usr/include/jsoncpp/json/allocator.h - /usr/include/c++/9/cstring - /usr/include/string.h - /usr/include/strings.h - /usr/include/jsoncpp/json/version.h - /usr/include/jsoncpp/json/json_features.h - /usr/include/jsoncpp/json/forwards.h - /usr/include/jsoncpp/json/reader.h - /usr/include/jsoncpp/json/value.h - /usr/include/c++/9/map - /usr/include/c++/9/bits/stl_tree.h - /usr/include/c++/9/bits/stl_map.h - /usr/include/c++/9/bits/stl_multimap.h - /usr/include/c++/9/bits/erase_if.h - /usr/include/c++/9/vector - /usr/include/c++/9/bits/stl_vector.h - /usr/include/c++/9/bits/stl_bvector.h - /usr/include/c++/9/bits/vector.tcc - /usr/include/c++/9/deque - /usr/include/c++/9/bits/stl_deque.h - /usr/include/c++/9/bits/deque.tcc - /usr/include/c++/9/stack - /usr/include/c++/9/bits/stl_stack.h - /usr/include/jsoncpp/json/writer.h - /usr/local/include/ctemplate/template.h - /usr/local/include/ctemplate/template_cache.h - /usr/include/c++/9/unordered_map - /usr/include/c++/9/bits/hashtable.h - /usr/include/c++/9/bits/hashtable_policy.h - /usr/include/c++/9/limits - /usr/include/c++/9/bits/unordered_map.h - /usr/local/include/ctemplate/template_emitter.h - /usr/local/include/ctemplate/template_enums.h - /usr/local/include/ctemplate/template_string.h - /usr/include/assert.h - /usr/local/include/ctemplate/per_expand_data.h - /usr/include/c++/9/stdlib.h - /usr/local/include/ctemplate/template_dictionary.h - /usr/include/c++/9/functional - /usr/include/c++/9/bits/std_function.h - /usr/local/include/ctemplate/str_ref.h - /usr/local/include/ctemplate/template_dictionary_interface.h - /usr/local/include/ctemplate/template_modifiers.h - /usr/local/include/ctemplate/template_namelist.h - /usr/include/c++/9/unordered_set - /usr/include/c++/9/bits/unordered_set.h - /home/zzy1/2024/my-online-judge/MYOJ/comm/httplib.h - /usr/include/arpa/inet.h - /usr/include/netinet/in.h - /usr/include/x86_64-linux-gnu/sys/socket.h - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h - /usr/include/x86_64-linux-gnu/bits/socket.h - /usr/include/x86_64-linux-gnu/bits/socket_type.h - /usr/include/x86_64-linux-gnu/bits/sockaddr.h - /usr/include/x86_64-linux-gnu/asm/socket.h - /usr/include/asm-generic/socket.h - /usr/include/linux/posix_types.h - /usr/include/linux/stddef.h - /usr/include/x86_64-linux-gnu/asm/posix_types.h - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h - /usr/include/asm-generic/posix_types.h - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h - /usr/include/asm-generic/bitsperlong.h - /usr/include/x86_64-linux-gnu/asm/sockios.h - /usr/include/asm-generic/sockios.h - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h - /usr/include/x86_64-linux-gnu/bits/in.h - /usr/include/ifaddrs.h - /usr/include/netdb.h - /usr/include/rpc/netdb.h - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h - /usr/include/x86_64-linux-gnu/bits/netdb.h - /usr/include/resolv.h - /usr/include/x86_64-linux-gnu/sys/param.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h - /usr/include/limits.h - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h - /usr/include/x86_64-linux-gnu/bits/local_lim.h - /usr/include/linux/limits.h - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h - /usr/include/x86_64-linux-gnu/bits/uio_lim.h - /usr/include/signal.h - /usr/include/x86_64-linux-gnu/bits/signum-generic.h - /usr/include/x86_64-linux-gnu/bits/signum-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h - /usr/include/x86_64-linux-gnu/bits/sigaction.h - /usr/include/x86_64-linux-gnu/bits/sigcontext.h - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h - /usr/include/x86_64-linux-gnu/sys/ucontext.h - /usr/include/x86_64-linux-gnu/bits/sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigstksz.h - /usr/include/unistd.h - /usr/include/x86_64-linux-gnu/bits/posix_opt.h - /usr/include/x86_64-linux-gnu/bits/environments.h - /usr/include/x86_64-linux-gnu/bits/confname.h - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h - /usr/include/x86_64-linux-gnu/bits/getopt_core.h - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h - /usr/include/linux/close_range.h - /usr/include/x86_64-linux-gnu/bits/ss_flags.h - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h - /usr/include/x86_64-linux-gnu/bits/sigthread.h - /usr/include/x86_64-linux-gnu/bits/signal_ext.h - /usr/include/x86_64-linux-gnu/bits/param.h - /usr/include/linux/param.h - /usr/include/x86_64-linux-gnu/asm/param.h - /usr/include/asm-generic/param.h - /usr/include/arpa/nameser.h - /usr/include/arpa/nameser_compat.h - /usr/include/x86_64-linux-gnu/bits/types/res_state.h - /usr/include/netinet/tcp.h - /usr/include/c++/9/csignal - /usr/include/c++/9/algorithm - /usr/include/c++/9/bits/stl_algo.h - /usr/include/c++/9/bits/algorithmfwd.h - /usr/include/c++/9/bits/stl_heap.h - /usr/include/c++/9/bits/uniform_int_dist.h - /usr/include/c++/9/atomic - /usr/include/c++/9/cassert - /usr/include/c++/9/climits - /usr/include/c++/9/condition_variable - /usr/include/c++/9/chrono - /usr/include/c++/9/ratio - /usr/include/c++/9/ctime - /usr/include/c++/9/bits/parse_numbers.h - /usr/include/c++/9/bits/std_mutex.h - /usr/include/c++/9/bits/unique_lock.h - /usr/include/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl.h - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h - /usr/include/linux/falloc.h - /usr/include/x86_64-linux-gnu/bits/stat.h - /usr/include/x86_64-linux-gnu/bits/struct_stat.h - /usr/include/c++/9/fstream - /usr/include/c++/9/bits/codecvt.h - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h - /usr/include/c++/9/bits/fstream.tcc - /usr/include/c++/9/iostream - /usr/include/c++/9/list - /usr/include/c++/9/bits/stl_list.h - /usr/include/c++/9/bits/list.tcc - /usr/include/c++/9/mutex - /usr/include/c++/9/random - /usr/include/c++/9/cmath - /usr/include/math.h - /usr/include/x86_64-linux-gnu/bits/math-vector.h - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h - /usr/include/x86_64-linux-gnu/bits/fp-logb.h - /usr/include/x86_64-linux-gnu/bits/fp-fast.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h - /usr/include/x86_64-linux-gnu/bits/mathcalls.h - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h - /usr/include/x86_64-linux-gnu/bits/iscanonical.h - /usr/include/c++/9/bits/random.h - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h - /usr/include/c++/9/bits/random.tcc - /usr/include/c++/9/numeric - /usr/include/c++/9/bits/stl_numeric.h - /usr/include/c++/9/regex - /usr/include/c++/9/bitset - /usr/include/c++/9/iterator - /usr/include/c++/9/bits/stream_iterator.h - /usr/include/c++/9/locale - /usr/include/c++/9/bits/locale_facets_nonio.h - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h - /usr/include/libintl.h - /usr/include/c++/9/bits/locale_facets_nonio.tcc - /usr/include/c++/9/bits/locale_conv.h - /usr/include/c++/9/bits/regex_constants.h - /usr/include/c++/9/bits/regex_error.h - /usr/include/c++/9/bits/regex_automaton.h - /usr/include/c++/9/bits/regex_automaton.tcc - /usr/include/c++/9/bits/regex_scanner.h - /usr/include/c++/9/bits/regex_scanner.tcc - /usr/include/c++/9/bits/regex_compiler.h - /usr/include/c++/9/bits/regex_compiler.tcc - /usr/include/c++/9/bits/regex.h - /usr/include/c++/9/bits/regex.tcc - /usr/include/c++/9/bits/regex_executor.h - /usr/include/c++/9/bits/regex_executor.tcc - /usr/include/x86_64-linux-gnu/sys/stat.h - /usr/include/x86_64-linux-gnu/bits/statx.h - /usr/include/linux/stat.h - /usr/include/linux/types.h - /usr/include/x86_64-linux-gnu/asm/types.h - /usr/include/asm-generic/types.h - /usr/include/asm-generic/int-ll64.h - /usr/include/x86_64-linux-gnu/bits/statx-generic.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h - /usr/include/c++/9/thread - /home/zzy1/2024/my-online-judge/MYOJ/comm/Comm_model_MySQL.hpp - /usr/include/mysql/mysql.h - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h - /usr/include/mysql/field_types.h - /usr/include/mysql/my_list.h - /usr/include/mysql/mysql_com.h - /usr/include/mysql/my_command.h - /usr/include/mysql/my_compress.h - /usr/include/mysql/udf_registration_types.h - /usr/include/mysql/client_plugin.h - /usr/include/mysql/plugin_auth_common.h - /usr/include/mysql/mysql_version.h - /usr/include/mysql/mysql_time.h - /usr/include/mysql/errmsg.h - /home/zzy1/2024/my-online-judge/MYOJ/comm/util.hpp - /usr/include/x86_64-linux-gnu/sys/time.h - /usr/include/x86_64-linux-gnu/sys/wait.h - /usr/include/boost/algorithm/string.hpp - /usr/include/boost/algorithm/string/std_containers_traits.hpp - /usr/include/boost/config.hpp - /usr/include/boost/config/user.hpp - /usr/include/boost/config/detail/select_compiler_config.hpp - /usr/include/boost/config/compiler/gcc.hpp - /usr/include/boost/config/detail/select_stdlib_config.hpp - /usr/include/c++/9/version - /usr/include/boost/config/stdlib/libstdcpp3.hpp - /usr/include/boost/config/detail/select_platform_config.hpp - /usr/include/boost/config/platform/linux.hpp - /usr/include/boost/config/detail/posix_features.hpp - /usr/include/boost/config/detail/suffix.hpp - /usr/include/boost/config/helper_macros.hpp - /usr/include/boost/algorithm/string/std/string_traits.hpp - /usr/include/boost/algorithm/string/yes_no_type.hpp - /usr/include/boost/algorithm/string/sequence_traits.hpp - /usr/include/boost/mpl/bool.hpp - /usr/include/boost/mpl/bool_fwd.hpp - /usr/include/boost/mpl/aux_/adl_barrier.hpp - /usr/include/boost/mpl/aux_/config/adl.hpp - /usr/include/boost/mpl/aux_/config/msvc.hpp - /usr/include/boost/mpl/aux_/config/intel.hpp - /usr/include/boost/mpl/aux_/config/gcc.hpp - /usr/include/boost/mpl/aux_/config/workaround.hpp - /usr/include/boost/detail/workaround.hpp - /usr/include/boost/config/workaround.hpp - /usr/include/boost/mpl/integral_c_tag.hpp - /usr/include/boost/mpl/aux_/config/static_constant.hpp - /usr/include/boost/algorithm/string/std/list_traits.hpp - /usr/include/boost/algorithm/string/std/slist_traits.hpp - /usr/include/boost/algorithm/string/config.hpp - /usr/include/c++/9/ext/slist - /usr/include/boost/algorithm/string/trim.hpp - /usr/include/boost/range/begin.hpp - /usr/include/boost/range/config.hpp - /usr/include/boost/range/iterator.hpp - /usr/include/boost/range/range_fwd.hpp - /usr/include/boost/range/mutable_iterator.hpp - /usr/include/boost/range/detail/extract_optional_type.hpp - /usr/include/boost/preprocessor/cat.hpp - /usr/include/boost/preprocessor/config/config.hpp - /usr/include/boost/mpl/has_xxx.hpp - /usr/include/boost/mpl/aux_/na_spec.hpp - /usr/include/boost/mpl/lambda_fwd.hpp - /usr/include/boost/mpl/void_fwd.hpp - /usr/include/boost/mpl/aux_/na.hpp - /usr/include/boost/mpl/aux_/na_fwd.hpp - /usr/include/boost/mpl/aux_/config/ctps.hpp - /usr/include/boost/mpl/aux_/config/lambda.hpp - /usr/include/boost/mpl/aux_/config/ttp.hpp - /usr/include/boost/mpl/int.hpp - /usr/include/boost/mpl/int_fwd.hpp - /usr/include/boost/mpl/aux_/nttp_decl.hpp - /usr/include/boost/mpl/aux_/config/nttp.hpp - /usr/include/boost/mpl/aux_/integral_wrapper.hpp - /usr/include/boost/mpl/aux_/static_cast.hpp - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp - /usr/include/boost/mpl/aux_/arity.hpp - /usr/include/boost/mpl/aux_/config/dtp.hpp - /usr/include/boost/mpl/aux_/preprocessor/params.hpp - /usr/include/boost/mpl/aux_/config/preprocessor.hpp - /usr/include/boost/preprocessor/comma_if.hpp - /usr/include/boost/preprocessor/punctuation/comma_if.hpp - /usr/include/boost/preprocessor/control/if.hpp - /usr/include/boost/preprocessor/control/iif.hpp - /usr/include/boost/preprocessor/logical/bool.hpp - /usr/include/boost/preprocessor/facilities/empty.hpp - /usr/include/boost/preprocessor/punctuation/comma.hpp - /usr/include/boost/preprocessor/repeat.hpp - /usr/include/boost/preprocessor/repetition/repeat.hpp - /usr/include/boost/preprocessor/debug/error.hpp - /usr/include/boost/preprocessor/detail/auto_rec.hpp - /usr/include/boost/preprocessor/tuple/eat.hpp - /usr/include/boost/preprocessor/inc.hpp - /usr/include/boost/preprocessor/arithmetic/inc.hpp - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp - /usr/include/boost/mpl/limits/arity.hpp - /usr/include/boost/preprocessor/logical/and.hpp - /usr/include/boost/preprocessor/logical/bitand.hpp - /usr/include/boost/preprocessor/identity.hpp - /usr/include/boost/preprocessor/facilities/identity.hpp - /usr/include/boost/preprocessor/empty.hpp - /usr/include/boost/preprocessor/arithmetic/add.hpp - /usr/include/boost/preprocessor/arithmetic/dec.hpp - /usr/include/boost/preprocessor/control/while.hpp - /usr/include/boost/preprocessor/list/fold_left.hpp - /usr/include/boost/preprocessor/list/detail/fold_left.hpp - /usr/include/boost/preprocessor/control/expr_iif.hpp - /usr/include/boost/preprocessor/list/adt.hpp - /usr/include/boost/preprocessor/detail/is_binary.hpp - /usr/include/boost/preprocessor/detail/check.hpp - /usr/include/boost/preprocessor/logical/compl.hpp - /usr/include/boost/preprocessor/list/fold_right.hpp - /usr/include/boost/preprocessor/list/detail/fold_right.hpp - /usr/include/boost/preprocessor/list/reverse.hpp - /usr/include/boost/preprocessor/control/detail/while.hpp - /usr/include/boost/preprocessor/tuple/elem.hpp - /usr/include/boost/preprocessor/facilities/expand.hpp - /usr/include/boost/preprocessor/facilities/overload.hpp - /usr/include/boost/preprocessor/variadic/size.hpp - /usr/include/boost/preprocessor/tuple/rem.hpp - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp - /usr/include/boost/preprocessor/variadic/elem.hpp - /usr/include/boost/preprocessor/arithmetic/sub.hpp - /usr/include/boost/mpl/aux_/config/eti.hpp - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp - /usr/include/boost/mpl/aux_/type_wrapper.hpp - /usr/include/boost/mpl/aux_/yes_no.hpp - /usr/include/boost/mpl/aux_/config/arrays.hpp - /usr/include/boost/mpl/aux_/config/has_xxx.hpp - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp - /usr/include/boost/preprocessor/array/elem.hpp - /usr/include/boost/preprocessor/array/data.hpp - /usr/include/boost/preprocessor/array/size.hpp - /usr/include/boost/preprocessor/repetition/enum_params.hpp - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp - /usr/include/boost/type_traits/remove_reference.hpp - /usr/include/boost/iterator/iterator_traits.hpp - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp - /usr/include/boost/range/const_iterator.hpp - /usr/include/boost/type_traits/remove_const.hpp - /usr/include/boost/type_traits/is_const.hpp - /usr/include/boost/type_traits/integral_constant.hpp - /usr/include/boost/mpl/eval_if.hpp - /usr/include/boost/mpl/if.hpp - /usr/include/boost/mpl/aux_/value_wknd.hpp - /usr/include/boost/mpl/aux_/config/integral.hpp - /usr/include/boost/mpl/aux_/lambda_support.hpp - /usr/include/boost/range/end.hpp - /usr/include/boost/range/detail/implementation_help.hpp - /usr/include/boost/range/detail/common.hpp - /usr/include/boost/range/detail/sfinae.hpp - /usr/include/boost/type_traits/is_array.hpp - /usr/include/boost/type_traits/detail/yes_no_type.hpp - /usr/include/boost/type_traits/is_void.hpp - /usr/include/boost/type_traits/is_same.hpp - /usr/include/boost/range/as_literal.hpp - /usr/include/boost/range/iterator_range.hpp - /usr/include/boost/range/iterator_range_core.hpp - /usr/include/boost/assert.hpp - /usr/include/boost/iterator/iterator_facade.hpp - /usr/include/boost/iterator/interoperable.hpp - /usr/include/boost/mpl/or.hpp - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp - /usr/include/boost/mpl/aux_/include_preprocessed.hpp - /usr/include/boost/mpl/aux_/config/compiler.hpp - /usr/include/boost/preprocessor/stringize.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp - /usr/include/boost/type_traits/is_convertible.hpp - /usr/include/boost/type_traits/intrinsics.hpp - /usr/include/boost/type_traits/detail/config.hpp - /usr/include/boost/version.hpp - /usr/include/boost/type_traits/is_complete.hpp - /usr/include/boost/type_traits/declval.hpp - /usr/include/boost/type_traits/add_rvalue_reference.hpp - /usr/include/boost/type_traits/is_reference.hpp - /usr/include/boost/type_traits/is_lvalue_reference.hpp - /usr/include/boost/type_traits/is_rvalue_reference.hpp - /usr/include/boost/type_traits/is_function.hpp - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp - /usr/include/boost/static_assert.hpp - /usr/include/boost/type_traits/is_arithmetic.hpp - /usr/include/boost/type_traits/is_integral.hpp - /usr/include/boost/type_traits/is_floating_point.hpp - /usr/include/boost/type_traits/is_abstract.hpp - /usr/include/boost/type_traits/add_lvalue_reference.hpp - /usr/include/boost/type_traits/add_reference.hpp - /usr/include/boost/iterator/detail/config_def.hpp - /usr/include/boost/iterator/detail/config_undef.hpp - /usr/include/boost/iterator/iterator_categories.hpp - /usr/include/boost/mpl/identity.hpp - /usr/include/boost/mpl/placeholders.hpp - /usr/include/boost/mpl/arg.hpp - /usr/include/boost/mpl/arg_fwd.hpp - /usr/include/boost/mpl/aux_/na_assert.hpp - /usr/include/boost/mpl/assert.hpp - /usr/include/boost/mpl/not.hpp - /usr/include/boost/mpl/aux_/config/gpu.hpp - /usr/include/boost/mpl/aux_/config/pp_counter.hpp - /usr/include/boost/mpl/aux_/arity_spec.hpp - /usr/include/boost/mpl/aux_/arg_typedef.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp - /usr/include/boost/iterator/detail/facade_iterator_category.hpp - /usr/include/boost/core/use_default.hpp - /usr/include/boost/mpl/and.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp - /usr/include/boost/detail/indirect_traits.hpp - /usr/include/boost/type_traits/is_pointer.hpp - /usr/include/boost/type_traits/is_class.hpp - /usr/include/boost/type_traits/is_volatile.hpp - /usr/include/boost/type_traits/is_member_function_pointer.hpp - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp - /usr/include/boost/type_traits/is_member_pointer.hpp - /usr/include/boost/type_traits/remove_cv.hpp - /usr/include/boost/type_traits/remove_pointer.hpp - /usr/include/boost/detail/select_type.hpp - /usr/include/boost/iterator/detail/enable_if.hpp - /usr/include/boost/core/addressof.hpp - /usr/include/boost/type_traits/add_const.hpp - /usr/include/boost/type_traits/add_pointer.hpp - /usr/include/boost/type_traits/is_pod.hpp - /usr/include/boost/type_traits/is_scalar.hpp - /usr/include/boost/type_traits/is_enum.hpp - /usr/include/boost/mpl/always.hpp - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp - /usr/include/boost/mpl/apply.hpp - /usr/include/boost/mpl/apply_fwd.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp - /usr/include/boost/mpl/apply_wrap.hpp - /usr/include/boost/mpl/aux_/has_apply.hpp - /usr/include/boost/mpl/aux_/config/has_apply.hpp - /usr/include/boost/mpl/aux_/msvc_never_true.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp - /usr/include/boost/mpl/lambda.hpp - /usr/include/boost/mpl/bind.hpp - /usr/include/boost/mpl/bind_fwd.hpp - /usr/include/boost/mpl/aux_/config/bind.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp - /usr/include/boost/mpl/next.hpp - /usr/include/boost/mpl/next_prior.hpp - /usr/include/boost/mpl/aux_/common_name_wknd.hpp - /usr/include/boost/mpl/protect.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp - /usr/include/boost/mpl/aux_/full_lambda.hpp - /usr/include/boost/mpl/quote.hpp - /usr/include/boost/mpl/void.hpp - /usr/include/boost/mpl/aux_/has_type.hpp - /usr/include/boost/mpl/aux_/config/bcc.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp - /usr/include/boost/mpl/aux_/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp - /usr/include/boost/type_traits/is_base_and_derived.hpp - /usr/include/boost/range/functions.hpp - /usr/include/boost/range/size.hpp - /usr/include/boost/range/size_type.hpp - /usr/include/boost/range/difference_type.hpp - /usr/include/boost/range/has_range_iterator.hpp - /usr/include/boost/utility/enable_if.hpp - /usr/include/boost/core/enable_if.hpp - /usr/include/boost/range/concepts.hpp - /usr/include/boost/concept_check.hpp - /usr/include/boost/concept/assert.hpp - /usr/include/boost/concept/detail/general.hpp - /usr/include/boost/concept/detail/backward_compatibility.hpp - /usr/include/boost/concept/detail/has_constraints.hpp - /usr/include/boost/type_traits/conditional.hpp - /usr/include/boost/type_traits/conversion_traits.hpp - /usr/include/boost/concept/usage.hpp - /usr/include/boost/concept/detail/concept_def.hpp - /usr/include/boost/preprocessor/seq/for_each_i.hpp - /usr/include/boost/preprocessor/repetition/for.hpp - /usr/include/boost/preprocessor/repetition/detail/for.hpp - /usr/include/boost/preprocessor/seq/seq.hpp - /usr/include/boost/preprocessor/seq/elem.hpp - /usr/include/boost/preprocessor/seq/size.hpp - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp - /usr/include/boost/preprocessor/seq/enum.hpp - /usr/include/boost/concept/detail/concept_undef.hpp - /usr/include/boost/iterator/iterator_concepts.hpp - /usr/include/boost/limits.hpp - /usr/include/boost/range/value_type.hpp - /usr/include/boost/range/detail/misc_concept.hpp - /usr/include/boost/type_traits/make_unsigned.hpp - /usr/include/boost/type_traits/is_signed.hpp - /usr/include/boost/type_traits/is_unsigned.hpp - /usr/include/boost/type_traits/add_volatile.hpp - /usr/include/boost/range/detail/has_member_size.hpp - /usr/include/boost/cstdint.hpp - /usr/include/boost/utility.hpp - /usr/include/boost/utility/base_from_member.hpp - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp - /usr/include/boost/utility/binary.hpp - /usr/include/boost/preprocessor/control/deduce_d.hpp - /usr/include/boost/preprocessor/seq/cat.hpp - /usr/include/boost/preprocessor/seq/fold_left.hpp - /usr/include/boost/preprocessor/seq/transform.hpp - /usr/include/boost/preprocessor/arithmetic/mod.hpp - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp - /usr/include/boost/preprocessor/comparison/less_equal.hpp - /usr/include/boost/preprocessor/logical/not.hpp - /usr/include/boost/utility/identity_type.hpp - /usr/include/boost/type_traits/function_traits.hpp - /usr/include/boost/core/checked_delete.hpp - /usr/include/boost/core/noncopyable.hpp - /usr/include/boost/range/distance.hpp - /usr/include/boost/iterator/distance.hpp - /usr/include/boost/range/empty.hpp - /usr/include/boost/range/rbegin.hpp - /usr/include/boost/range/reverse_iterator.hpp - /usr/include/boost/iterator/reverse_iterator.hpp - /usr/include/boost/iterator/iterator_adaptor.hpp - /usr/include/boost/range/rend.hpp - /usr/include/boost/range/algorithm/equal.hpp - /usr/include/boost/range/detail/safe_bool.hpp - /usr/include/boost/next_prior.hpp - /usr/include/boost/type_traits/has_plus.hpp - /usr/include/boost/type_traits/detail/has_binary_operator.hpp - /usr/include/boost/type_traits/make_void.hpp - /usr/include/boost/type_traits/has_plus_assign.hpp - /usr/include/boost/type_traits/has_minus.hpp - /usr/include/boost/type_traits/has_minus_assign.hpp - /usr/include/boost/iterator/advance.hpp - /usr/include/boost/range/iterator_range_io.hpp - /usr/include/boost/range/detail/str_types.hpp - /usr/include/boost/algorithm/string/detail/trim.hpp - /usr/include/boost/algorithm/string/classification.hpp - /usr/include/boost/algorithm/string/detail/classification.hpp - /usr/include/boost/algorithm/string/predicate_facade.hpp - /usr/include/boost/algorithm/string/case_conv.hpp - /usr/include/boost/iterator/transform_iterator.hpp - /usr/include/boost/utility/result_of.hpp - /usr/include/boost/preprocessor/iteration/iterate.hpp - /usr/include/boost/preprocessor/slot/slot.hpp - /usr/include/boost/preprocessor/slot/detail/def.hpp - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp - /usr/include/boost/preprocessor/facilities/intercept.hpp - /usr/include/boost/type_traits/type_identity.hpp - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp - /usr/include/boost/preprocessor/slot/detail/shared.hpp - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp - /usr/include/boost/utility/detail/result_of_iterate.hpp - /usr/include/boost/algorithm/string/detail/case_conv.hpp - /usr/include/boost/algorithm/string/predicate.hpp - /usr/include/boost/algorithm/string/compare.hpp - /usr/include/boost/algorithm/string/find.hpp - /usr/include/boost/algorithm/string/finder.hpp - /usr/include/boost/algorithm/string/constants.hpp - /usr/include/boost/algorithm/string/detail/finder.hpp - /usr/include/boost/algorithm/string/detail/predicate.hpp - /usr/include/boost/algorithm/string/split.hpp - /usr/include/boost/algorithm/string/iter_find.hpp - /usr/include/boost/algorithm/string/concept.hpp - /usr/include/boost/algorithm/string/find_iterator.hpp - /usr/include/boost/algorithm/string/detail/find_iterator.hpp - /usr/include/boost/function.hpp - /usr/include/boost/preprocessor/iterate.hpp - /usr/include/boost/function/detail/prologue.hpp - /usr/include/boost/config/no_tr1/functional.hpp - /usr/include/boost/throw_exception.hpp - /usr/include/boost/assert/source_location.hpp - /usr/include/boost/current_function.hpp - /usr/include/boost/exception/exception.hpp - /usr/include/boost/function/function_base.hpp - /usr/include/boost/integer.hpp - /usr/include/boost/integer_fwd.hpp - /usr/include/boost/integer_traits.hpp - /usr/include/boost/type_index.hpp - /usr/include/boost/type_index/stl_type_index.hpp - /usr/include/boost/type_index/type_index_facade.hpp - /usr/include/boost/container_hash/hash_fwd.hpp - /usr/include/boost/core/demangle.hpp - /usr/include/c++/9/cxxabi.h - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h - /usr/include/boost/type_traits/has_trivial_copy.hpp - /usr/include/boost/type_traits/is_copy_constructible.hpp - /usr/include/boost/type_traits/is_constructible.hpp - /usr/include/boost/type_traits/is_destructible.hpp - /usr/include/boost/type_traits/is_default_constructible.hpp - /usr/include/boost/type_traits/has_trivial_destructor.hpp - /usr/include/boost/type_traits/composite_traits.hpp - /usr/include/boost/type_traits/is_union.hpp - /usr/include/boost/ref.hpp - /usr/include/boost/core/ref.hpp - /usr/include/boost/type_traits/alignment_of.hpp - /usr/include/boost/type_traits/enable_if.hpp - /usr/include/boost/function_equal.hpp - /usr/include/boost/function/function_fwd.hpp - /usr/include/boost/mem_fn.hpp - /usr/include/boost/bind/mem_fn.hpp - /usr/include/boost/get_pointer.hpp - /usr/include/boost/config/no_tr1/memory.hpp - /usr/include/boost/bind/mem_fn_template.hpp - /usr/include/boost/bind/mem_fn_cc.hpp - /usr/include/boost/preprocessor/enum.hpp - /usr/include/boost/preprocessor/repetition/enum.hpp - /usr/include/boost/preprocessor/enum_params.hpp - /usr/include/boost/function/detail/function_iterate.hpp - /usr/include/boost/function/detail/maybe_include.hpp - /usr/include/boost/function/function_template.hpp - /usr/include/boost/core/no_exceptions_support.hpp - /usr/include/boost/algorithm/string/detail/util.hpp - /usr/include/boost/algorithm/string/join.hpp - /usr/include/boost/algorithm/string/detail/sequence.hpp - /usr/include/boost/mpl/logical.hpp - /usr/include/boost/algorithm/string/replace.hpp - /usr/include/boost/algorithm/string/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format.hpp - /usr/include/boost/algorithm/string/detail/find_format_store.hpp - /usr/include/boost/algorithm/string/detail/replace_storage.hpp - /usr/include/boost/algorithm/string/detail/find_format_all.hpp - /usr/include/boost/algorithm/string/formatter.hpp - /usr/include/boost/algorithm/string/detail/formatter.hpp - /usr/include/boost/algorithm/string/erase.hpp - /home/zzy1/2024/my-online-judge/MYOJ/comm/Log.hpp - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.make deleted file mode 100644 index 122d5fe..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.make +++ /dev/null @@ -1,2473 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -CMakeFiles/data_server.dir/data_server/data_server.cc.o: ../data_server/data_server.cc \ - /usr/include/stdc-predef.h \ - /usr/include/jsoncpp/json/json.h \ - /usr/include/jsoncpp/json/config.h \ - /usr/include/c++/9/cstddef \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/features.h \ - /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h \ - /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/istream \ - /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd \ - /usr/include/c++/9/bits/stringfwd.h \ - /usr/include/c++/9/bits/memoryfwd.h \ - /usr/include/c++/9/bits/postypes.h \ - /usr/include/c++/9/cwchar \ - /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception \ - /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo \ - /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new \ - /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h \ - /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h \ - /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale \ - /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h \ - /usr/include/c++/9/cctype \ - /usr/include/ctype.h \ - /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h \ - /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h \ - /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h \ - /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h \ - /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h \ - /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h \ - /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h \ - /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h \ - /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h \ - /usr/include/c++/9/cstdio \ - /usr/include/stdio.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ - /usr/include/c++/9/cerrno \ - /usr/include/errno.h \ - /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h \ - /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h \ - /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept \ - /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h \ - /usr/include/c++/9/cwctype \ - /usr/include/wctype.h \ - /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc \ - /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc \ - /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/memory \ - /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/unique_ptr.h \ - /usr/include/c++/9/utility \ - /usr/include/c++/9/bits/stl_relops.h \ - /usr/include/c++/9/tuple \ - /usr/include/c++/9/array \ - /usr/include/c++/9/bits/invoke.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/backward/auto_ptr.h \ - /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h \ - /usr/include/c++/9/cstring \ - /usr/include/string.h \ - /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h \ - /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h \ - /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h \ - /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h \ - /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h \ - /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque \ - /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc \ - /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h \ - /usr/include/jsoncpp/json/writer.h \ - /usr/local/include/ctemplate/template.h \ - /usr/local/include/ctemplate/template_cache.h \ - /usr/include/c++/9/unordered_map \ - /usr/include/c++/9/bits/hashtable.h \ - /usr/include/c++/9/bits/hashtable_policy.h \ - /usr/include/c++/9/limits \ - /usr/include/c++/9/bits/unordered_map.h \ - /usr/local/include/ctemplate/template_emitter.h \ - /usr/local/include/ctemplate/template_enums.h \ - /usr/local/include/ctemplate/template_string.h \ - /usr/include/assert.h \ - /usr/local/include/ctemplate/per_expand_data.h \ - /usr/include/c++/9/stdlib.h \ - /usr/local/include/ctemplate/template_dictionary.h \ - /usr/include/c++/9/functional \ - /usr/include/c++/9/bits/std_function.h \ - /usr/local/include/ctemplate/str_ref.h \ - /usr/local/include/ctemplate/template_dictionary_interface.h \ - /usr/local/include/ctemplate/template_modifiers.h \ - /usr/local/include/ctemplate/template_namelist.h \ - /usr/include/c++/9/unordered_set \ - /usr/include/c++/9/bits/unordered_set.h \ - ../comm/httplib.h \ - /usr/include/arpa/inet.h \ - /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h \ - /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h \ - /usr/include/ifaddrs.h \ - /usr/include/netdb.h \ - /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h \ - /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h \ - /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h \ - /usr/include/unistd.h \ - /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/x86_64-linux-gnu/bits/param.h \ - /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h \ - /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h \ - /usr/include/c++/9/csignal \ - /usr/include/c++/9/algorithm \ - /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h \ - /usr/include/c++/9/atomic \ - /usr/include/c++/9/cassert \ - /usr/include/c++/9/climits \ - /usr/include/c++/9/condition_variable \ - /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio \ - /usr/include/c++/9/ctime \ - /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h \ - /usr/include/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/linux/falloc.h \ - /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/c++/9/fstream \ - /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc \ - /usr/include/c++/9/iostream \ - /usr/include/c++/9/list \ - /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc \ - /usr/include/c++/9/mutex \ - /usr/include/c++/9/random \ - /usr/include/c++/9/cmath \ - /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc \ - /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h \ - /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset \ - /usr/include/c++/9/iterator \ - /usr/include/c++/9/bits/stream_iterator.h \ - /usr/include/c++/9/locale \ - /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h \ - /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h \ - /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h \ - /usr/include/linux/stat.h \ - /usr/include/linux/types.h \ - /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h \ - /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/c++/9/thread \ - ../comm/Comm_model_MySQL.hpp \ - /usr/include/mysql/mysql.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h \ - /usr/include/mysql/field_types.h \ - /usr/include/mysql/my_list.h \ - /usr/include/mysql/mysql_com.h \ - /usr/include/mysql/my_command.h \ - /usr/include/mysql/my_compress.h \ - /usr/include/mysql/udf_registration_types.h \ - /usr/include/mysql/client_plugin.h \ - /usr/include/mysql/plugin_auth_common.h \ - /usr/include/mysql/mysql_version.h \ - /usr/include/mysql/mysql_time.h \ - /usr/include/mysql/errmsg.h \ - ../comm/util.hpp \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp \ - /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp \ - /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp \ - /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp \ - /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp \ - /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp \ - /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp \ - /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp \ - /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp \ - /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp \ - /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp \ - /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp \ - /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp \ - /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp \ - /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp \ - /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp \ - /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp \ - /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp \ - /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp \ - /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp \ - /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp \ - /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp \ - /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - ../comm/Log.hpp - - -../comm/Log.hpp: - -/usr/include/boost/algorithm/string/detail/find_format_all.hpp: - -/usr/include/boost/algorithm/string/detail/replace_storage.hpp: - -/usr/include/boost/algorithm/string/find_format.hpp: - -/usr/include/boost/algorithm/string/replace.hpp: - -/usr/include/boost/mpl/logical.hpp: - -/usr/include/boost/algorithm/string/detail/util.hpp: - -/usr/include/boost/core/no_exceptions_support.hpp: - -/usr/include/boost/function/function_template.hpp: - -/usr/include/boost/function/detail/function_iterate.hpp: - -/usr/include/boost/preprocessor/repetition/enum.hpp: - -/usr/include/boost/bind/mem_fn_template.hpp: - -/usr/include/boost/config/no_tr1/memory.hpp: - -/usr/include/boost/get_pointer.hpp: - -/usr/include/boost/function_equal.hpp: - -/usr/include/boost/core/ref.hpp: - -/usr/include/boost/ref.hpp: - -/usr/include/boost/type_traits/is_union.hpp: - -/usr/include/boost/type_traits/composite_traits.hpp: - -/usr/include/boost/type_traits/has_trivial_destructor.hpp: - -/usr/include/boost/type_traits/is_default_constructible.hpp: - -/usr/include/boost/type_traits/is_destructible.hpp: - -/usr/include/boost/type_traits/is_copy_constructible.hpp: - -/usr/include/boost/type_traits/has_trivial_copy.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h: - -/usr/include/c++/9/cxxabi.h: - -/usr/include/boost/core/demangle.hpp: - -/usr/include/boost/type_index/stl_type_index.hpp: - -/usr/include/boost/type_index.hpp: - -/usr/include/boost/integer.hpp: - -/usr/include/boost/function/function_base.hpp: - -/usr/include/boost/current_function.hpp: - -/usr/include/boost/assert/source_location.hpp: - -/usr/include/boost/function.hpp: - -/usr/include/boost/algorithm/string/detail/find_iterator.hpp: - -/usr/include/boost/algorithm/string/find_iterator.hpp: - -/usr/include/boost/algorithm/string/concept.hpp: - -/usr/include/boost/algorithm/string/iter_find.hpp: - -/usr/include/boost/algorithm/string/split.hpp: - -/usr/include/boost/algorithm/string/detail/finder.hpp: - -/usr/include/boost/algorithm/string/finder.hpp: - -/usr/include/boost/algorithm/string/find.hpp: - -/usr/include/boost/algorithm/string/compare.hpp: - -/usr/include/boost/algorithm/string/predicate.hpp: - -/usr/include/boost/algorithm/string/detail/case_conv.hpp: - -/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp: - -/usr/include/boost/type_traits/type_identity.hpp: - -/usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp: - -/usr/include/boost/preprocessor/iteration/iterate.hpp: - -/usr/include/boost/algorithm/string/detail/classification.hpp: - -/usr/include/boost/algorithm/string/classification.hpp: - -/usr/include/boost/algorithm/string/detail/trim.hpp: - -/usr/include/boost/type_traits/has_minus_assign.hpp: - -/usr/include/boost/type_traits/has_minus.hpp: - -/usr/include/boost/type_traits/make_void.hpp: - -/usr/include/boost/type_traits/detail/has_binary_operator.hpp: - -/usr/include/boost/type_traits/has_plus.hpp: - -/usr/include/boost/range/detail/safe_bool.hpp: - -/usr/include/boost/range/algorithm/equal.hpp: - -/usr/include/boost/iterator/iterator_adaptor.hpp: - -/usr/include/boost/range/reverse_iterator.hpp: - -/usr/include/boost/range/rbegin.hpp: - -/usr/include/boost/iterator/distance.hpp: - -/usr/include/boost/range/distance.hpp: - -/usr/include/boost/core/noncopyable.hpp: - -/usr/include/boost/core/checked_delete.hpp: - -/usr/include/boost/iterator/transform_iterator.hpp: - -/usr/include/boost/iterator/advance.hpp: - -/usr/include/boost/utility/identity_type.hpp: - -/usr/include/boost/preprocessor/logical/not.hpp: - -/usr/include/boost/preprocessor/comparison/less_equal.hpp: - -/usr/include/boost/preprocessor/arithmetic/mod.hpp: - -/usr/include/boost/preprocessor/seq/transform.hpp: - -/usr/include/boost/preprocessor/seq/fold_left.hpp: - -/usr/include/boost/preprocessor/control/deduce_d.hpp: - -/usr/include/boost/algorithm/string/detail/find_format_store.hpp: - -/usr/include/boost/utility/binary.hpp: - -/usr/include/boost/preprocessor/repetition/enum_binary_params.hpp: - -/usr/include/boost/utility/base_from_member.hpp: - -/usr/include/boost/utility.hpp: - -/usr/include/boost/cstdint.hpp: - -/usr/include/boost/range/detail/has_member_size.hpp: - -/usr/include/boost/type_traits/is_signed.hpp: - -/usr/include/boost/type_traits/make_unsigned.hpp: - -/usr/include/boost/range/value_type.hpp: - -/usr/include/boost/concept/detail/concept_undef.hpp: - -/usr/include/boost/preprocessor/seq/detail/is_empty.hpp: - -/usr/include/boost/preprocessor/seq/elem.hpp: - -/usr/include/boost/preprocessor/repetition/detail/for.hpp: - -/usr/include/boost/preprocessor/seq/for_each_i.hpp: - -/usr/include/boost/type_traits/conversion_traits.hpp: - -/usr/include/boost/concept/detail/has_constraints.hpp: - -/usr/include/boost/concept/detail/backward_compatibility.hpp: - -/usr/include/boost/concept/detail/general.hpp: - -/usr/include/boost/concept_check.hpp: - -/usr/include/boost/range/concepts.hpp: - -/usr/include/boost/core/enable_if.hpp: - -/usr/include/boost/range/has_range_iterator.hpp: - -/usr/include/boost/range/size_type.hpp: - -/usr/include/boost/type_traits/is_base_and_derived.hpp: - -/usr/include/boost/mpl/aux_/config/bcc.hpp: - -/usr/include/boost/mpl/void.hpp: - -/usr/include/boost/mpl/aux_/full_lambda.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp: - -/usr/include/boost/mpl/aux_/common_name_wknd.hpp: - -/usr/include/boost/mpl/aux_/config/bind.hpp: - -/usr/include/boost/mpl/bind_fwd.hpp: - -/usr/include/boost/mpl/bind.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp: - -/usr/include/boost/mpl/aux_/msvc_never_true.hpp: - -/usr/include/boost/mpl/aux_/has_apply.hpp: - -/usr/include/boost/mpl/apply_wrap.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/default_params.hpp: - -/usr/include/boost/type_traits/add_pointer.hpp: - -/usr/include/boost/utility/enable_if.hpp: - -/usr/include/boost/type_traits/add_const.hpp: - -/usr/include/boost/core/addressof.hpp: - -/usr/include/boost/type_traits/remove_cv.hpp: - -/usr/include/boost/type_traits/is_member_pointer.hpp: - -/usr/include/boost/integer_fwd.hpp: - -/usr/include/boost/type_traits/is_volatile.hpp: - -/usr/include/boost/type_traits/is_class.hpp: - -/usr/include/boost/type_traits/is_pointer.hpp: - -/usr/include/boost/detail/indirect_traits.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp: - -/usr/include/boost/mpl/aux_/arity_spec.hpp: - -/usr/include/boost/mpl/aux_/config/pp_counter.hpp: - -/usr/include/boost/mpl/aux_/config/gpu.hpp: - -/usr/include/boost/mpl/not.hpp: - -/usr/include/boost/mpl/aux_/na_assert.hpp: - -/usr/include/boost/mpl/arg_fwd.hpp: - -/usr/include/boost/mpl/arg.hpp: - -/usr/include/boost/mpl/placeholders.hpp: - -/usr/include/boost/mpl/aux_/template_arity.hpp: - -/usr/include/boost/mpl/identity.hpp: - -/usr/include/boost/iterator/iterator_categories.hpp: - -/usr/include/boost/next_prior.hpp: - -/usr/include/boost/type_traits/add_lvalue_reference.hpp: - -/usr/include/boost/type_traits/is_abstract.hpp: - -/usr/include/boost/type_traits/is_floating_point.hpp: - -/usr/include/boost/type_traits/is_arithmetic.hpp: - -/usr/include/boost/type_traits/is_function.hpp: - -/usr/include/boost/type_traits/is_rvalue_reference.hpp: - -/usr/include/boost/type_traits/is_lvalue_reference.hpp: - -/usr/include/boost/type_traits/is_reference.hpp: - -/usr/include/boost/algorithm/string/formatter.hpp: - -/usr/include/boost/type_traits/add_rvalue_reference.hpp: - -/usr/include/boost/version.hpp: - -/usr/include/boost/concept/assert.hpp: - -/usr/include/boost/type_traits/detail/config.hpp: - -/usr/include/boost/type_traits/intrinsics.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp: - -/usr/include/boost/mpl/aux_/config/compiler.hpp: - -/usr/include/boost/mpl/aux_/include_preprocessed.hpp: - -/usr/include/boost/mpl/aux_/nested_type_wknd.hpp: - -/usr/include/boost/mpl/aux_/config/use_preprocessed.hpp: - -/usr/include/boost/iterator/iterator_facade.hpp: - -/usr/include/boost/range/functions.hpp: - -/usr/include/boost/range/iterator_range.hpp: - -/usr/include/boost/range/as_literal.hpp: - -/usr/include/boost/type_traits/is_void.hpp: - -/usr/include/boost/type_traits/detail/yes_no_type.hpp: - -/usr/include/boost/type_traits/is_array.hpp: - -/usr/include/boost/range/detail/sfinae.hpp: - -/usr/include/boost/range/detail/implementation_help.hpp: - -/usr/include/boost/range/end.hpp: - -/usr/include/boost/detail/select_type.hpp: - -/usr/include/boost/mpl/aux_/lambda_support.hpp: - -/usr/include/boost/container_hash/hash_fwd.hpp: - -/usr/include/boost/range/empty.hpp: - -/usr/include/boost/mpl/eval_if.hpp: - -/usr/include/boost/type_traits/add_reference.hpp: - -/usr/include/boost/type_traits/integral_constant.hpp: - -/usr/include/boost/preprocessor/slot/detail/shared.hpp: - -/usr/include/boost/range/const_iterator.hpp: - -/usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp: - -/usr/include/x86_64-linux-gnu/bits/socket_type.h: - -/usr/include/boost/preprocessor/array/elem.hpp: - -/usr/include/boost/type_traits/is_enum.hpp: - -/usr/include/x86_64-linux-gnu/sys/socket.h: - -/usr/include/linux/stat.h: - -/usr/include/boost/type_traits/enable_if.hpp: - -/usr/include/boost/iterator/interoperable.hpp: - -/usr/include/boost/config/compiler/gcc.hpp: - -/usr/include/boost/mpl/aux_/config/eti.hpp: - -/usr/include/x86_64-linux-gnu/bits/wordsize.h: - -/usr/include/boost/iterator/detail/config_undef.hpp: - -/usr/include/c++/9/bits/invoke.h: - -/usr/include/boost/range/difference_type.hpp: - -/usr/local/include/ctemplate/template_enums.h: - -/usr/include/c++/9/bits/hashtable_policy.h: - -/usr/include/c++/9/bits/hashtable.h: - -/usr/include/boost/mem_fn.hpp: - -/usr/include/boost/mpl/limits/arity.hpp: - -/usr/include/boost/algorithm/string/predicate_facade.hpp: - -/usr/include/c++/9/unordered_map: - -/usr/include/boost/mpl/if.hpp: - -/usr/include/c++/9/clocale: - -/usr/include/c++/9/bits/refwrap.h: - -/usr/local/include/ctemplate/template.h: - -/usr/include/boost/type_traits/declval.hpp: - -/usr/include/c++/9/bits/stl_stack.h: - -/usr/include/c++/9/bits/stl_multimap.h: - -/usr/include/c++/9/bits/stl_deque.h: - -/usr/include/boost/type_traits/remove_pointer.hpp: - -/usr/include/stdlib.h: - -/usr/include/c++/9/bits/stl_vector.h: - -/usr/include/boost/algorithm/string/detail/find_format.hpp: - -/usr/include/c++/9/cstdint: - -/usr/include/boost/algorithm/string.hpp: - -/usr/include/c++/9/vector: - -/usr/include/c++/9/bits/deque.tcc: - -/usr/include/c++/9/map: - -/usr/include/assert.h: - -/usr/include/boost/preprocessor/seq/seq.hpp: - -/usr/include/jsoncpp/json/value.h: - -/usr/include/boost/mpl/aux_/config/workaround.hpp: - -/usr/include/jsoncpp/json/forwards.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: - -/usr/include/c++/9/bits/sstream.tcc: - -/usr/include/c++/9/sstream: - -/usr/include/c++/9/bits/atomic_lockfree_defines.h: - -/usr/include/c++/9/typeinfo: - -/usr/include/c++/9/ext/aligned_buffer.h: - -/usr/include/boost/integer_traits.hpp: - -/usr/include/x86_64-linux-gnu/sys/time.h: - -/usr/include/c++/9/bits/allocated_ptr.h: - -/usr/include/boost/algorithm/string/config.hpp: - -/usr/include/boost/preprocessor/seq/cat.hpp: - -/usr/include/c++/9/numeric: - -/usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp: - -/usr/include/c++/9/bits/shared_ptr.h: - -/usr/include/c++/9/backward/binders.h: - -/usr/include/c++/9/array: - -/usr/include/c++/9/tuple: - -/usr/include/c++/9/bits/stl_relops.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: - -/usr/include/c++/9/bits/unique_ptr.h: - -/usr/include/c++/9/bits/stl_list.h: - -/usr/include/c++/9/bits/stl_raw_storage_iter.h: - -/usr/include/c++/9/ext/string_conversions.h: - -/usr/local/include/ctemplate/template_dictionary.h: - -/usr/include/boost/range/size.hpp: - -/usr/include/c++/9/memory: - -/usr/include/c++/9/cerrno: - -/usr/include/c++/9/ostream: - -/usr/include/x86_64-linux-gnu/bits/sockaddr.h: - -/usr/include/c++/9/bits/streambuf_iterator.h: - -/usr/include/jsoncpp/json/writer.h: - -/usr/include/boost/mpl/next_prior.hpp: - -/usr/include/c++/9/streambuf: - -/usr/include/x86_64-linux-gnu/bits/sched.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: - -/usr/include/c++/9/thread: - -/usr/include/c++/9/system_error: - -/usr/include/c++/9/backward/auto_ptr.h: - -/usr/include/asm-generic/posix_types.h: - -/usr/include/boost/algorithm/string/detail/formatter.hpp: - -/usr/include/boost/range/rend.hpp: - -/usr/include/boost/mpl/quote.hpp: - -/usr/include/boost/preprocessor/identity.hpp: - -/usr/include/c++/9/bits/locale_classes.tcc: - -/usr/include/boost/preprocessor/cat.hpp: - -/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h: - -/usr/include/boost/type_traits/is_unsigned.hpp: - -/usr/include/c++/9/bits/basic_string.tcc: - -/usr/include/boost/mpl/aux_/static_cast.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/error_t.h: - -/usr/include/asm-generic/errno.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: - -/usr/include/mysql/mysql_version.h: - -/usr/include/c++/9/bits/uses_allocator.h: - -/usr/include/x86_64-linux-gnu/bits/errno.h: - -/usr/include/boost/utility/detail/result_of_iterate.hpp: - -/usr/include/x86_64-linux-gnu/bits/signum-arch.h: - -/usr/include/c++/9/utility: - -/usr/include/c++/9/cassert: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: - -/usr/include/stdio.h: - -/usr/include/boost/mpl/int_fwd.hpp: - -/usr/include/boost/iterator/reverse_iterator.hpp: - -/usr/include/c++/9/bits/shared_ptr_atomic.h: - -/usr/include/c++/9/bits/stl_iterator_base_funcs.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: - -/usr/include/asm-generic/bitsperlong.h: - -/usr/include/c++/9/cstring: - -/usr/include/asm-generic/types.h: - -/usr/include/x86_64-linux-gnu/bits/time.h: - -/usr/include/c++/9/stack: - -/usr/include/mysql/my_command.h: - -/usr/include/x86_64-linux-gnu/bits/byteswap.h: - -/usr/include/endian.h: - -/usr/include/stdint.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: - -/usr/include/x86_64-linux-gnu/bits/waitflags.h: - -/usr/include/mysql/my_list.h: - -/usr/include/x86_64-linux-gnu/bits/wchar.h: - -/usr/include/x86_64-linux-gnu/asm/socket.h: - -/usr/local/include/ctemplate/template_cache.h: - -/usr/include/x86_64-linux-gnu/sys/select.h: - -/usr/include/boost/iterator/detail/enable_if.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h: - -/usr/include/c++/9/type_traits: - -/usr/include/x86_64-linux-gnu/bits/timex.h: - -/usr/include/boost/function/detail/maybe_include.hpp: - -/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: - -/usr/include/x86_64-linux-gnu/bits/timesize.h: - -/usr/include/c++/9/bits/atomic_base.h: - -/usr/include/boost/iterator/detail/facade_iterator_category.hpp: - -/usr/include/c++/9/bits/exception_defines.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: - -/usr/include/c++/9/bits/allocator.h: - -/usr/include/string.h: - -/usr/include/jsoncpp/json/json.h: - -/usr/include/c++/9/bits/unique_lock.h: - -/usr/include/x86_64-linux-gnu/bits/math-vector.h: - -/usr/include/boost/preprocessor/facilities/intercept.hpp: - -/usr/include/c++/9/stdexcept: - -/usr/include/c++/9/cstdio: - -/usr/include/c++/9/bits/cxxabi_init_exception.h: - -/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h: - -/usr/include/jsoncpp/json/reader.h: - -/usr/include/boost/iterator/detail/config_def.hpp: - -/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: - -/usr/include/boost/type_traits/is_integral.hpp: - -/usr/include/boost/algorithm/string/sequence_traits.hpp: - -/usr/include/c++/9/functional: - -/usr/include/linux/posix_types.h: - -/usr/include/c++/9/bits/exception_ptr.h: - -/usr/include/ifaddrs.h: - -/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h: - -/usr/include/c++/9/exception: - -/usr/include/c++/9/bits/regex_automaton.tcc: - -/usr/include/boost/config/user.hpp: - -/usr/include/c++/9/bits/localefwd.h: - -/usr/include/c++/9/bits/exception.h: - -/usr/include/boost/mpl/next.hpp: - -/usr/include/boost/preprocessor/stringize.hpp: - -/usr/include/c++/9/bits/functional_hash.h: - -/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: - -/usr/include/boost/concept/usage.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h: - -/usr/include/boost/core/use_default.hpp: - -/usr/include/boost/config.hpp: - -/usr/include/boost/static_assert.hpp: - -/usr/include/mysql/udf_registration_types.h: - -/usr/include/boost/preprocessor/variadic/elem.hpp: - -/usr/include/c++/9/bits/regex_scanner.tcc: - -/usr/include/x86_64-linux-gnu/asm/sockios.h: - -/usr/include/boost/mpl/aux_/config/ctps.hpp: - -/usr/include/boost/type_traits/is_const.hpp: - -/usr/include/netinet/in.h: - -/usr/include/boost/algorithm/string/erase.hpp: - -/usr/include/c++/9/bits/basic_string.h: - -/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: - -/usr/include/c++/9/bits/char_traits.h: - -/usr/include/boost/type_traits/add_volatile.hpp: - -/usr/include/c++/9/bits/istream.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: - -/usr/include/c++/9/bits/ostream.tcc: - -/usr/include/x86_64-linux-gnu/bits/sigstksz.h: - -/usr/include/c++/9/bits/stl_tree.h: - -/usr/include/x86_64-linux-gnu/bits/waitstatus.h: - -/usr/include/x86_64-linux-gnu/bits/stat.h: - -/usr/include/c++/9/bits/stl_iterator_base_types.h: - -/usr/include/stdc-predef.h: - -/usr/include/boost/mpl/aux_/config/has_xxx.hpp: - -/usr/include/c++/9/bits/stl_heap.h: - -/usr/include/c++/9/ios: - -/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: - -/usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp: - -/usr/include/c++/9/bits/locale_facets.h: - -/usr/include/arpa/nameser_compat.h: - -/usr/include/x86_64-linux-gnu/bits/socket.h: - -/usr/include/x86_64-linux-gnu/bits/long-double.h: - -/usr/include/boost/range/detail/misc_concept.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: - -/usr/include/c++/9/bits/nested_exception.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp: - -/usr/include/linux/errno.h: - -/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: - -/usr/include/c++/9/iosfwd: - -/usr/include/features-time64.h: - -/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: - -/usr/include/boost/mpl/aux_/adl_barrier.hpp: - -/usr/include/c++/9/ext/new_allocator.h: - -/usr/include/c++/9/bits/stl_construct.h: - -/usr/include/c++/9/bits/std_mutex.h: - -/usr/include/x86_64-linux-gnu/bits/environments.h: - -/usr/include/boost/mpl/aux_/config/preprocessor.hpp: - -/usr/local/include/ctemplate/template_modifiers.h: - -/usr/include/c++/9/bits/concept_check.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: - -/usr/include/boost/preprocessor/repetition/for.hpp: - -/usr/include/c++/9/bits/basic_ios.h: - -/usr/include/c++/9/bits/regex_compiler.h: - -/usr/include/x86_64-linux-gnu/bits/typesizes.h: - -/usr/include/c++/9/bits/streambuf.tcc: - -/usr/include/boost/iterator/iterator_concepts.hpp: - -/usr/include/boost/mpl/aux_/arity.hpp: - -/usr/include/x86_64-linux-gnu/sys/cdefs.h: - -/usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp: - -/usr/include/jsoncpp/json/version.h: - -/usr/include/ctype.h: - -/usr/include/jsoncpp/json/config.h: - -/usr/include/c++/9/bits/ptr_traits.h: - -/usr/include/c++/9/bits/stl_bvector.h: - -/usr/include/boost/preprocessor/arithmetic/dec.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: - -/usr/include/c++/9/ext/concurrence.h: - -/usr/include/boost/preprocessor/enum.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: - -/usr/include/c++/9/new: - -/usr/include/c++/9/bits/locale_facets_nonio.h: - -/usr/include/jsoncpp/json/allocator.h: - -/usr/include/boost/mpl/aux_/yes_no.hpp: - -/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: - -/usr/include/x86_64-linux-gnu/bits/types/time_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/FILE.h: - -/usr/include/boost/algorithm/string/join.hpp: - -/usr/include/c++/9/bits/stl_tempbuf.h: - -/usr/include/boost/limits.hpp: - -/usr/include/boost/range/detail/common.hpp: - -/usr/include/c++/9/cstdlib: - -/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: - -/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp: - -/usr/include/features.h: - -/usr/include/c++/9/bits/codecvt.h: - -/usr/include/c++/9/bits/ios_base.h: - -/usr/include/x86_64-linux-gnu/bits/floatn-common.h: - -/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: - -/usr/include/c++/9/unordered_set: - -/usr/include/c++/9/bits/basic_ios.tcc: - -/usr/include/c++/9/bits/cxxabi_forced.h: - -/usr/include/boost/mpl/aux_/config/has_apply.hpp: - -/usr/include/limits.h: - -/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: - -/usr/include/c++/9/limits: - -/usr/include/boost/range/mutable_iterator.hpp: - -/usr/include/boost/algorithm/string/detail/sequence.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: - -/usr/include/x86_64-linux-gnu/bits/time64.h: - -/usr/include/math.h: - -/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: - -/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: - -/usr/local/include/ctemplate/template_namelist.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: - -/usr/include/arpa/inet.h: - -/usr/include/x86_64-linux-gnu/bits/sigaction.h: - -/usr/include/boost/preprocessor/enum_params.hpp: - -/usr/include/boost/preprocessor/seq/enum.hpp: - -/usr/include/boost/preprocessor/facilities/expand.hpp: - -/usr/include/boost/bind/mem_fn_cc.hpp: - -/usr/include/wctype.h: - -../data_server/data_server.cc: - -/usr/include/boost/preprocessor/punctuation/comma_if.hpp: - -/usr/include/c++/9/mutex: - -/usr/include/boost/type_traits/function_traits.hpp: - -/usr/include/c++/9/bits/vector.tcc: - -/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: - -/usr/include/x86_64-linux-gnu/gnu/stubs.h: - -/usr/local/include/ctemplate/template_dictionary_interface.h: - -/usr/include/asm-generic/errno-base.h: - -/usr/include/x86_64-linux-gnu/sys/wait.h: - -/usr/include/boost/config/no_tr1/functional.hpp: - -/usr/include/c++/9/bits/std_abs.h: - -/usr/include/x86_64-linux-gnu/bits/signum-generic.h: - -/usr/include/c++/9/ext/type_traits.h: - -/usr/include/c++/9/version: - -/usr/include/boost/mpl/aux_/preprocessor/params.hpp: - -/usr/include/c++/9/bits/stl_pair.h: - -/usr/include/boost/mpl/aux_/config/integral.hpp: - -/usr/local/include/ctemplate/per_expand_data.h: - -/usr/include/c++/9/bits/stl_map.h: - -/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: - -/usr/include/c++/9/bits/stl_iterator.h: - -/usr/local/include/ctemplate/str_ref.h: - -/usr/include/c++/9/bits/predefined_ops.h: - -/usr/include/c++/9/cctype: - -/usr/include/c++/9/bits/memoryfwd.h: - -/usr/include/x86_64-linux-gnu/bits/cpu-set.h: - -/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: - -/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h: - -/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h: - -/usr/include/mysql/errmsg.h: - -/usr/include/boost/range/iterator_range_core.hpp: - -/usr/local/include/ctemplate/template_string.h: - -/usr/include/c++/9/fstream: - -/usr/include/c++/9/bits/locale_conv.h: - -/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: - -/usr/include/boost/preprocessor/arithmetic/inc.hpp: - -/usr/include/boost/mpl/bool_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/endianness.h: - -/usr/local/include/ctemplate/template_emitter.h: - -/usr/include/c++/9/cwchar: - -/usr/include/c++/9/bits/range_access.h: - -/usr/include/c++/9/ext/atomicity.h: - -/usr/include/c++/9/ext/slist: - -/usr/include/boost/range/iterator_range_io.hpp: - -/usr/include/locale.h: - -/usr/include/boost/function/function_fwd.hpp: - -/usr/include/boost/preprocessor/slot/detail/def.hpp: - -/usr/include/x86_64-linux-gnu/bits/setjmp.h: - -/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: - -/usr/include/c++/9/ext/numeric_traits.h: - -/usr/include/c++/9/bits/unordered_map.h: - -/usr/include/x86_64-linux-gnu/bits/floatn.h: - -/usr/include/boost/preprocessor/logical/compl.hpp: - -/usr/include/c++/9/ext/alloc_traits.h: - -/usr/include/boost/mpl/aux_/has_type.hpp: - -/usr/include/boost/type_traits/remove_const.hpp: - -/usr/include/c++/9/bits/cpp_type_traits.h: - -../comm/Comm_model_MySQL.hpp: - -/usr/include/libintl.h: - -/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: - -/usr/include/c++/9/bits/locale_facets.tcc: - -/usr/include/strings.h: - -/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: - -/usr/include/x86_64-linux-gnu/sys/types.h: - -/usr/include/asm-generic/socket.h: - -/usr/include/boost/preprocessor/facilities/empty.hpp: - -/usr/include/boost/mpl/or.hpp: - -/usr/include/c++/9/bits/stl_algobase.h: - -/usr/include/boost/type_index/type_index_facade.hpp: - -/usr/include/c++/9/stdlib.h: - -/usr/include/boost/mpl/lambda.hpp: - -/usr/include/c++/9/bits/locale_classes.h: - -/usr/include/boost/mpl/and.hpp: - -/usr/include/boost/mpl/aux_/config/overload_resolution.hpp: - -/usr/include/c++/9/debug/assertions.h: - -/usr/include/boost/preprocessor/empty.hpp: - -/usr/include/c++/9/string: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h: - -/usr/include/boost/type_traits/detail/is_function_cxx_11.hpp: - -/usr/include/c++/9/cwctype: - -/usr/include/asm-generic/param.h: - -/usr/include/c++/9/bits/stl_uninitialized.h: - -/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: - -/usr/include/netinet/tcp.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: - -/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp: - -/usr/include/c++/9/bits/regex.tcc: - -/usr/include/c++/9/bits/std_function.h: - -/usr/include/boost/preprocessor/detail/check.hpp: - -/usr/include/alloca.h: - -/usr/include/boost/range/detail/str_types.hpp: - -/usr/include/c++/9/bits/ostream_insert.h: - -/usr/include/errno.h: - -/usr/include/boost/mpl/aux_/config/msvc.hpp: - -/usr/include/linux/stddef.h: - -/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: - -/usr/include/asm-generic/sockios.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: - -/usr/include/boost/bind/mem_fn.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h: - -/usr/include/boost/config/detail/select_stdlib_config.hpp: - -/usr/include/x86_64-linux-gnu/bits/in.h: - -/usr/include/boost/type_traits/conditional.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: - -/usr/include/linux/falloc.h: - -/usr/include/boost/preprocessor/slot/slot.hpp: - -/usr/include/boost/type_traits/has_plus_assign.hpp: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h: - -/usr/include/boost/mpl/integral_c_tag.hpp: - -/usr/include/boost/preprocessor/punctuation/comma.hpp: - -/usr/include/c++/9/bits/postypes.h: - -/usr/include/boost/preprocessor/tuple/elem.hpp: - -/usr/include/sched.h: - -/usr/include/netdb.h: - -/usr/include/rpc/netdb.h: - -/usr/include/x86_64-linux-gnu/bits/netdb.h: - -/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h: - -/usr/include/x86_64-linux-gnu/sys/param.h: - -/usr/include/boost/preprocessor/list/reverse.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h: - -/usr/include/x86_64-linux-gnu/bits/locale.h: - -/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: - -/usr/include/boost/mpl/aux_/lambda_arity_param.hpp: - -/usr/include/x86_64-linux-gnu/bits/local_lim.h: - -/usr/include/boost/type_traits/is_complete.hpp: - -/usr/include/boost/preprocessor/detail/auto_rec.hpp: - -/usr/include/boost/mpl/always.hpp: - -/usr/include/linux/limits.h: - -/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: - -/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: - -/usr/include/boost/type_traits/is_pod.hpp: - -/usr/include/x86_64-linux-gnu/bits/uio_lim.h: - -/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h: - -/usr/include/boost/algorithm/string/case_conv.hpp: - -/usr/include/x86_64-linux-gnu/bits/ss_flags.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h: - -/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h: - -/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h: - -/usr/include/x86_64-linux-gnu/bits/sigcontext.h: - -/usr/include/x86_64-linux-gnu/bits/types/stack_t.h: - -/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: - -/usr/include/x86_64-linux-gnu/sys/ucontext.h: - -/usr/include/boost/exception/exception.hpp: - -/usr/include/unistd.h: - -/usr/include/x86_64-linux-gnu/bits/posix_opt.h: - -/usr/include/c++/9/bits/regex_scanner.h: - -/usr/include/boost/utility/result_of.hpp: - -/usr/include/x86_64-linux-gnu/bits/getopt_core.h: - -/usr/include/boost/range/config.hpp: - -/usr/include/boost/mpl/aux_/config/nttp.hpp: - -/usr/include/c++/9/bits/hash_bytes.h: - -/usr/include/linux/close_range.h: - -/usr/include/boost/mpl/protect.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigthread.h: - -/usr/include/x86_64-linux-gnu/bits/types.h: - -/usr/include/x86_64-linux-gnu/bits/signal_ext.h: - -/usr/include/boost/type_traits/is_member_function_pointer.hpp: - -/usr/include/boost/preprocessor/logical/bitand.hpp: - -/usr/include/boost/preprocessor/control/while.hpp: - -/usr/include/x86_64-linux-gnu/bits/param.h: - -/usr/include/boost/preprocessor/repetition/enum_params.hpp: - -/usr/include/linux/param.h: - -/usr/include/x86_64-linux-gnu/asm/param.h: - -/usr/include/mysql/plugin_auth_common.h: - -/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp: - -/usr/include/arpa/nameser.h: - -/usr/include/x86_64-linux-gnu/bits/types/res_state.h: - -/usr/include/c++/9/csignal: - -/usr/include/boost/type_traits/alignment_of.hpp: - -/usr/include/c++/9/algorithm: - -/usr/include/c++/9/chrono: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp: - -/usr/include/c++/9/bits/shared_ptr_base.h: - -/usr/include/c++/9/bits/stl_algo.h: - -/usr/include/c++/9/bits/algorithmfwd.h: - -/usr/include/x86_64-linux-gnu/asm/errno.h: - -/usr/include/x86_64-linux-gnu/bits/fcntl.h: - -/usr/include/boost/function/detail/prologue.hpp: - -/usr/include/c++/9/bits/list.tcc: - -/usr/include/boost/type_traits/is_same.hpp: - -/usr/include/boost/mpl/aux_/config/lambda.hpp: - -/usr/include/c++/9/bits/uniform_int_dist.h: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp: - -/usr/include/x86_64-linux-gnu/bits/statx.h: - -/usr/include/c++/9/climits: - -/usr/include/boost/concept/detail/concept_def.hpp: - -/usr/include/c++/9/condition_variable: - -/usr/include/boost/preprocessor/repetition/repeat.hpp: - -/usr/include/c++/9/ratio: - -../comm/httplib.h: - -/usr/include/c++/9/ctime: - -/usr/include/c++/9/bits/parse_numbers.h: - -/usr/include/boost/throw_exception.hpp: - -/usr/include/c++/9/iostream: - -/usr/include/boost/config/stdlib/libstdcpp3.hpp: - -/usr/include/resolv.h: - -../comm/util.hpp: - -/usr/include/fcntl.h: - -/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: - -/usr/include/signal.h: - -/usr/include/x86_64-linux-gnu/bits/struct_stat.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: - -/usr/include/boost/assert.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: - -/usr/include/c++/9/bits/fstream.tcc: - -/usr/include/c++/9/istream: - -/usr/include/c++/9/list: - -/usr/include/c++/9/random: - -/usr/include/c++/9/cmath: - -/usr/include/boost/preprocessor/iterate.hpp: - -/usr/include/x86_64-linux-gnu/bits/flt-eval-method.h: - -/usr/include/c++/9/deque: - -/usr/include/c++/9/bits/stl_function.h: - -/usr/include/x86_64-linux-gnu/bits/fp-logb.h: - -/usr/include/x86_64-linux-gnu/bits/fp-fast.h: - -/usr/include/c++/9/bits/random.tcc: - -/usr/include/mysql/mysql.h: - -/usr/include/boost/config/workaround.hpp: - -/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h: - -/usr/include/x86_64-linux-gnu/bits/endian.h: - -/usr/include/x86_64-linux-gnu/bits/mathcalls.h: - -/usr/include/boost/algorithm/string/trim.hpp: - -/usr/include/x86_64-linux-gnu/bits/iscanonical.h: - -/usr/include/boost/preprocessor/detail/is_binary.hpp: - -/usr/include/x86_64-linux-gnu/bits/select.h: - -/usr/include/c++/9/bits/random.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h: - -/usr/include/boost/mpl/aux_/value_wknd.hpp: - -/usr/include/c++/9/bits/stl_numeric.h: - -/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: - -/usr/include/c++/9/bits/regex_executor.tcc: - -/usr/include/c++/9/regex: - -/usr/include/c++/9/iterator: - -/usr/include/c++/9/bitset: - -/usr/include/c++/9/bits/stream_iterator.h: - -/usr/include/c++/9/locale: - -/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: - -/usr/include/pthread.h: - -/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: - -/usr/include/c++/9/bits/locale_facets_nonio.tcc: - -/usr/include/boost/preprocessor/inc.hpp: - -/usr/include/x86_64-linux-gnu/bits/confname.h: - -/usr/include/c++/9/bits/regex_error.h: - -/usr/include/x86_64-linux-gnu/asm/posix_types.h: - -/usr/include/c++/9/bits/regex_automaton.h: - -/usr/include/boost/mpl/apply_fwd.hpp: - -/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: - -/usr/include/c++/9/bits/stringfwd.h: - -/usr/include/c++/9/bits/regex.h: - -/usr/include/c++/9/bits/regex_executor.h: - -/usr/include/x86_64-linux-gnu/sys/stat.h: - -/usr/include/linux/types.h: - -/usr/include/x86_64-linux-gnu/asm/types.h: - -/usr/include/asm-generic/int-ll64.h: - -/usr/include/boost/preprocessor/debug/error.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: - -/usr/include/boost/range/range_fwd.hpp: - -/usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h: - -/usr/include/mysql/field_types.h: - -/usr/include/mysql/mysql_com.h: - -/usr/include/boost/algorithm/string/constants.hpp: - -/usr/include/mysql/my_compress.h: - -/usr/include/wchar.h: - -/usr/include/x86_64-linux-gnu/bits/statx-generic.h: - -/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: - -/usr/include/c++/9/atomic: - -/usr/include/mysql/client_plugin.h: - -/usr/include/c++/9/bits/alloc_traits.h: - -/usr/include/mysql/mysql_time.h: - -/usr/include/boost/algorithm/string/std_containers_traits.hpp: - -/usr/include/boost/mpl/apply.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: - -/usr/include/boost/config/detail/select_compiler_config.hpp: - -/usr/include/c++/9/debug/debug.h: - -/usr/include/boost/config/detail/select_platform_config.hpp: - -/usr/include/boost/config/platform/linux.hpp: - -/usr/include/boost/config/detail/suffix.hpp: - -/usr/include/boost/config/helper_macros.hpp: - -/usr/include/boost/type_traits/is_constructible.hpp: - -/usr/include/boost/algorithm/string/std/string_traits.hpp: - -/usr/include/boost/algorithm/string/yes_no_type.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: - -/usr/include/boost/mpl/bool.hpp: - -/usr/include/c++/9/bits/unordered_set.h: - -/usr/include/boost/mpl/aux_/config/adl.hpp: - -/usr/include/boost/mpl/aux_/config/gcc.hpp: - -/usr/include/boost/mpl/aux_/config/ttp.hpp: - -/usr/include/boost/detail/workaround.hpp: - -/usr/include/c++/9/bits/regex_compiler.tcc: - -/usr/include/boost/mpl/aux_/config/static_constant.hpp: - -/usr/include/boost/mpl/lambda_fwd.hpp: - -/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp: - -/usr/include/time.h: - -/usr/include/boost/algorithm/string/std/list_traits.hpp: - -/usr/include/c++/9/bits/functexcept.h: - -/usr/include/boost/algorithm/string/std/slist_traits.hpp: - -/usr/include/c++/9/cstddef: - -/usr/include/boost/range/begin.hpp: - -/usr/include/boost/mpl/assert.hpp: - -/usr/include/boost/preprocessor/list/fold_right.hpp: - -/usr/include/boost/range/iterator.hpp: - -/usr/include/c++/9/initializer_list: - -/usr/include/boost/preprocessor/config/config.hpp: - -/usr/include/boost/mpl/has_xxx.hpp: - -/usr/include/c++/9/bits/erase_if.h: - -/usr/include/boost/mpl/aux_/na_spec.hpp: - -/usr/include/boost/preprocessor/list/fold_left.hpp: - -/usr/include/boost/mpl/void_fwd.hpp: - -/usr/include/boost/mpl/aux_/na.hpp: - -/usr/include/c++/9/bits/regex_constants.h: - -/usr/include/boost/mpl/aux_/na_fwd.hpp: - -/usr/include/boost/mpl/int.hpp: - -/usr/include/boost/mpl/aux_/nttp_decl.hpp: - -/usr/include/boost/type_traits/is_scalar.hpp: - -/usr/include/boost/mpl/aux_/integral_wrapper.hpp: - -/usr/include/boost/type_traits/is_convertible.hpp: - -/usr/include/x86_64-linux-gnu/bits/sigstack.h: - -/usr/include/boost/preprocessor/list/detail/fold_right.hpp: - -/usr/include/boost/mpl/aux_/template_arity_fwd.hpp: - -/usr/include/boost/preprocessor/seq/size.hpp: - -/usr/include/boost/mpl/aux_/config/dtp.hpp: - -/usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp: - -/usr/include/boost/mpl/aux_/arg_typedef.hpp: - -/usr/include/boost/preprocessor/comma_if.hpp: - -/usr/include/boost/preprocessor/control/if.hpp: - -/usr/include/boost/preprocessor/control/iif.hpp: - -/usr/include/boost/preprocessor/logical/bool.hpp: - -/usr/include/boost/preprocessor/repeat.hpp: - -/usr/include/boost/preprocessor/array/data.hpp: - -/usr/include/boost/type_traits/remove_reference.hpp: - -/usr/include/boost/preprocessor/tuple/eat.hpp: - -/usr/include/boost/mpl/aux_/config/intel.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/enum.hpp: - -/usr/include/boost/range/detail/extract_optional_type.hpp: - -/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp: - -/usr/include/boost/preprocessor/logical/and.hpp: - -/usr/include/boost/preprocessor/facilities/identity.hpp: - -/usr/include/boost/config/detail/posix_features.hpp: - -/usr/include/boost/preprocessor/arithmetic/add.hpp: - -/usr/include/boost/preprocessor/list/detail/fold_left.hpp: - -/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: - -/usr/include/boost/preprocessor/control/expr_iif.hpp: - -/usr/include/boost/mpl/aux_/type_wrapper.hpp: - -/usr/include/boost/preprocessor/list/adt.hpp: - -/usr/include/boost/preprocessor/control/detail/while.hpp: - -/usr/include/boost/preprocessor/facilities/overload.hpp: - -/usr/include/boost/preprocessor/variadic/size.hpp: - -/usr/include/boost/preprocessor/tuple/rem.hpp: - -/usr/include/jsoncpp/json/json_features.h: - -/usr/include/boost/preprocessor/arithmetic/sub.hpp: - -/usr/include/boost/mpl/aux_/config/arrays.hpp: - -/usr/include/boost/mpl/aux_/config/msvc_typename.hpp: - -/usr/include/c++/9/bits/move.h: - -/usr/include/boost/preprocessor/array/size.hpp: - -/usr/include/boost/algorithm/string/detail/predicate.hpp: - -/usr/include/boost/iterator/iterator_traits.hpp: diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.ts b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.ts deleted file mode 100644 index 6b5fd6f..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/compiler_depend.ts +++ /dev/null @@ -1,2 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Timestamp file for compiler generated dependencies management for data_server. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o deleted file mode 100644 index 998baac..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o.d b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o.d deleted file mode 100644 index 727aa84..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/data_server/data_server.cc.o.d +++ /dev/null @@ -1,711 +0,0 @@ -CMakeFiles/data_server.dir/data_server/data_server.cc.o: \ - /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc \ - /usr/include/stdc-predef.h /usr/include/jsoncpp/json/json.h \ - /usr/include/jsoncpp/json/config.h /usr/include/c++/9/cstddef \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ - /usr/include/features.h /usr/include/features-time64.h \ - /usr/include/x86_64-linux-gnu/bits/wordsize.h \ - /usr/include/x86_64-linux-gnu/bits/timesize.h \ - /usr/include/x86_64-linux-gnu/sys/cdefs.h \ - /usr/include/x86_64-linux-gnu/bits/long-double.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs.h \ - /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ - /usr/include/c++/9/cstdint \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ - /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ - /usr/include/x86_64-linux-gnu/bits/types.h \ - /usr/include/x86_64-linux-gnu/bits/typesizes.h \ - /usr/include/x86_64-linux-gnu/bits/time64.h \ - /usr/include/x86_64-linux-gnu/bits/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ - /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ - /usr/include/c++/9/istream /usr/include/c++/9/ios \ - /usr/include/c++/9/iosfwd /usr/include/c++/9/bits/stringfwd.h \ - /usr/include/c++/9/bits/memoryfwd.h /usr/include/c++/9/bits/postypes.h \ - /usr/include/c++/9/cwchar /usr/include/wchar.h \ - /usr/include/x86_64-linux-gnu/bits/floatn.h \ - /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ - /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ - /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ - /usr/include/c++/9/bits/exception_ptr.h \ - /usr/include/c++/9/bits/exception_defines.h \ - /usr/include/c++/9/bits/cxxabi_init_exception.h \ - /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ - /usr/include/c++/9/new /usr/include/c++/9/bits/move.h \ - /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ - /usr/include/c++/9/bits/nested_exception.h \ - /usr/include/c++/9/bits/char_traits.h \ - /usr/include/c++/9/bits/stl_algobase.h \ - /usr/include/c++/9/bits/functexcept.h \ - /usr/include/c++/9/bits/cpp_type_traits.h \ - /usr/include/c++/9/ext/type_traits.h \ - /usr/include/c++/9/ext/numeric_traits.h \ - /usr/include/c++/9/bits/stl_pair.h \ - /usr/include/c++/9/bits/stl_iterator_base_types.h \ - /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ - /usr/include/c++/9/debug/assertions.h \ - /usr/include/c++/9/bits/stl_iterator.h \ - /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ - /usr/include/c++/9/bits/predefined_ops.h \ - /usr/include/c++/9/bits/localefwd.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ - /usr/include/c++/9/clocale /usr/include/locale.h \ - /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/cctype \ - /usr/include/ctype.h /usr/include/x86_64-linux-gnu/bits/endian.h \ - /usr/include/x86_64-linux-gnu/bits/endianness.h \ - /usr/include/c++/9/bits/ios_base.h /usr/include/c++/9/ext/atomicity.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ - /usr/include/pthread.h /usr/include/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ - /usr/include/x86_64-linux-gnu/bits/sched.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ - /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ - /usr/include/x86_64-linux-gnu/bits/time.h \ - /usr/include/x86_64-linux-gnu/bits/timex.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ - /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ - /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ - /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ - /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ - /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \ - /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ - /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ - /usr/include/x86_64-linux-gnu/bits/setjmp.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \ - /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ - /usr/include/c++/9/bits/locale_classes.h /usr/include/c++/9/string \ - /usr/include/c++/9/bits/allocator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ - /usr/include/c++/9/ext/new_allocator.h \ - /usr/include/c++/9/bits/ostream_insert.h \ - /usr/include/c++/9/bits/cxxabi_forced.h \ - /usr/include/c++/9/bits/stl_function.h \ - /usr/include/c++/9/backward/binders.h \ - /usr/include/c++/9/bits/range_access.h \ - /usr/include/c++/9/initializer_list \ - /usr/include/c++/9/bits/basic_string.h \ - /usr/include/c++/9/ext/alloc_traits.h \ - /usr/include/c++/9/bits/alloc_traits.h \ - /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ - /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ - /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ - /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ - /usr/include/x86_64-linux-gnu/bits/byteswap.h \ - /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ - /usr/include/x86_64-linux-gnu/sys/select.h \ - /usr/include/x86_64-linux-gnu/bits/select.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ - /usr/include/alloca.h /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ - /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ - /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ - /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ - /usr/include/x86_64-linux-gnu/bits/stdio_lim.h /usr/include/c++/9/cerrno \ - /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ - /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ - /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ - /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ - /usr/include/c++/9/bits/functional_hash.h \ - /usr/include/c++/9/bits/basic_string.tcc \ - /usr/include/c++/9/bits/locale_classes.tcc \ - /usr/include/c++/9/system_error \ - /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ - /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ - /usr/include/c++/9/bits/streambuf.tcc \ - /usr/include/c++/9/bits/basic_ios.h \ - /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ - /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ - /usr/include/c++/9/bits/streambuf_iterator.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ - /usr/include/c++/9/bits/locale_facets.tcc \ - /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ - /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ - /usr/include/c++/9/memory /usr/include/c++/9/bits/stl_construct.h \ - /usr/include/c++/9/bits/stl_uninitialized.h \ - /usr/include/c++/9/bits/stl_tempbuf.h \ - /usr/include/c++/9/bits/stl_raw_storage_iter.h \ - /usr/include/c++/9/ext/concurrence.h \ - /usr/include/c++/9/bits/uses_allocator.h \ - /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ - /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ - /usr/include/c++/9/array /usr/include/c++/9/bits/invoke.h \ - /usr/include/c++/9/bits/shared_ptr.h \ - /usr/include/c++/9/bits/shared_ptr_base.h \ - /usr/include/c++/9/bits/allocated_ptr.h \ - /usr/include/c++/9/bits/refwrap.h \ - /usr/include/c++/9/ext/aligned_buffer.h \ - /usr/include/c++/9/bits/shared_ptr_atomic.h \ - /usr/include/c++/9/bits/atomic_base.h \ - /usr/include/c++/9/bits/atomic_lockfree_defines.h \ - /usr/include/c++/9/backward/auto_ptr.h /usr/include/c++/9/sstream \ - /usr/include/c++/9/bits/sstream.tcc \ - /usr/include/jsoncpp/json/allocator.h /usr/include/c++/9/cstring \ - /usr/include/string.h /usr/include/strings.h \ - /usr/include/jsoncpp/json/version.h \ - /usr/include/jsoncpp/json/json_features.h \ - /usr/include/jsoncpp/json/forwards.h /usr/include/jsoncpp/json/reader.h \ - /usr/include/jsoncpp/json/value.h /usr/include/c++/9/map \ - /usr/include/c++/9/bits/stl_tree.h /usr/include/c++/9/bits/stl_map.h \ - /usr/include/c++/9/bits/stl_multimap.h \ - /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/vector \ - /usr/include/c++/9/bits/stl_vector.h \ - /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ - /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ - /usr/include/c++/9/bits/deque.tcc /usr/include/c++/9/stack \ - /usr/include/c++/9/bits/stl_stack.h /usr/include/jsoncpp/json/writer.h \ - /usr/local/include/ctemplate/template.h \ - /usr/local/include/ctemplate/template_cache.h \ - /usr/include/c++/9/unordered_map /usr/include/c++/9/bits/hashtable.h \ - /usr/include/c++/9/bits/hashtable_policy.h /usr/include/c++/9/limits \ - /usr/include/c++/9/bits/unordered_map.h \ - /usr/local/include/ctemplate/template_emitter.h \ - /usr/local/include/ctemplate/template_enums.h \ - /usr/local/include/ctemplate/template_string.h /usr/include/assert.h \ - /usr/local/include/ctemplate/per_expand_data.h \ - /usr/include/c++/9/stdlib.h \ - /usr/local/include/ctemplate/template_dictionary.h \ - /usr/include/c++/9/functional /usr/include/c++/9/bits/std_function.h \ - /usr/local/include/ctemplate/str_ref.h \ - /usr/local/include/ctemplate/template_dictionary_interface.h \ - /usr/local/include/ctemplate/template_modifiers.h \ - /usr/local/include/ctemplate/template_namelist.h \ - /usr/include/c++/9/unordered_set /usr/include/c++/9/bits/unordered_set.h \ - /home/zzy1/2024/my-online-judge/MYOJ/data_server/../comm/httplib.h \ - /usr/include/arpa/inet.h /usr/include/netinet/in.h \ - /usr/include/x86_64-linux-gnu/sys/socket.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ - /usr/include/x86_64-linux-gnu/bits/socket.h \ - /usr/include/x86_64-linux-gnu/bits/socket_type.h \ - /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ - /usr/include/x86_64-linux-gnu/asm/socket.h \ - /usr/include/asm-generic/socket.h /usr/include/linux/posix_types.h \ - /usr/include/linux/stddef.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ - /usr/include/asm-generic/posix_types.h \ - /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ - /usr/include/asm-generic/bitsperlong.h \ - /usr/include/x86_64-linux-gnu/asm/sockios.h \ - /usr/include/asm-generic/sockios.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ - /usr/include/x86_64-linux-gnu/bits/in.h /usr/include/ifaddrs.h \ - /usr/include/netdb.h /usr/include/rpc/netdb.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/netdb.h /usr/include/resolv.h \ - /usr/include/x86_64-linux-gnu/sys/param.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h \ - /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ - /usr/include/x86_64-linux-gnu/bits/local_lim.h \ - /usr/include/linux/limits.h \ - /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ - /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ - /usr/include/x86_64-linux-gnu/bits/uio_lim.h /usr/include/signal.h \ - /usr/include/x86_64-linux-gnu/bits/signum-generic.h \ - /usr/include/x86_64-linux-gnu/bits/signum-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h \ - /usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-arch.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts.h \ - /usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h \ - /usr/include/x86_64-linux-gnu/bits/types/sigval_t.h \ - /usr/include/x86_64-linux-gnu/bits/sigevent-consts.h \ - /usr/include/x86_64-linux-gnu/bits/sigaction.h \ - /usr/include/x86_64-linux-gnu/bits/sigcontext.h \ - /usr/include/x86_64-linux-gnu/bits/types/stack_t.h \ - /usr/include/x86_64-linux-gnu/sys/ucontext.h \ - /usr/include/x86_64-linux-gnu/bits/sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigstksz.h /usr/include/unistd.h \ - /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ - /usr/include/x86_64-linux-gnu/bits/environments.h \ - /usr/include/x86_64-linux-gnu/bits/confname.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ - /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ - /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ - /usr/include/linux/close_range.h \ - /usr/include/x86_64-linux-gnu/bits/ss_flags.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h \ - /usr/include/x86_64-linux-gnu/bits/sigthread.h \ - /usr/include/x86_64-linux-gnu/bits/signal_ext.h \ - /usr/include/x86_64-linux-gnu/bits/param.h /usr/include/linux/param.h \ - /usr/include/x86_64-linux-gnu/asm/param.h \ - /usr/include/asm-generic/param.h /usr/include/arpa/nameser.h \ - /usr/include/arpa/nameser_compat.h \ - /usr/include/x86_64-linux-gnu/bits/types/res_state.h \ - /usr/include/netinet/tcp.h /usr/include/c++/9/csignal \ - /usr/include/c++/9/algorithm /usr/include/c++/9/bits/stl_algo.h \ - /usr/include/c++/9/bits/algorithmfwd.h \ - /usr/include/c++/9/bits/stl_heap.h \ - /usr/include/c++/9/bits/uniform_int_dist.h /usr/include/c++/9/atomic \ - /usr/include/c++/9/cassert /usr/include/c++/9/climits \ - /usr/include/c++/9/condition_variable /usr/include/c++/9/chrono \ - /usr/include/c++/9/ratio /usr/include/c++/9/ctime \ - /usr/include/c++/9/bits/parse_numbers.h \ - /usr/include/c++/9/bits/std_mutex.h \ - /usr/include/c++/9/bits/unique_lock.h /usr/include/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl.h \ - /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ - /usr/include/linux/falloc.h /usr/include/x86_64-linux-gnu/bits/stat.h \ - /usr/include/x86_64-linux-gnu/bits/struct_stat.h \ - /usr/include/c++/9/fstream /usr/include/c++/9/bits/codecvt.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ - /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/iostream \ - /usr/include/c++/9/list /usr/include/c++/9/bits/stl_list.h \ - /usr/include/c++/9/bits/list.tcc /usr/include/c++/9/mutex \ - /usr/include/c++/9/random /usr/include/c++/9/cmath /usr/include/math.h \ - /usr/include/x86_64-linux-gnu/bits/math-vector.h \ - /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ - /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \ - /usr/include/x86_64-linux-gnu/bits/fp-logb.h \ - /usr/include/x86_64-linux-gnu/bits/fp-fast.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ - /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \ - /usr/include/x86_64-linux-gnu/bits/iscanonical.h \ - /usr/include/c++/9/bits/random.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/opt_random.h \ - /usr/include/c++/9/bits/random.tcc /usr/include/c++/9/numeric \ - /usr/include/c++/9/bits/stl_numeric.h /usr/include/c++/9/regex \ - /usr/include/c++/9/bitset /usr/include/c++/9/iterator \ - /usr/include/c++/9/bits/stream_iterator.h /usr/include/c++/9/locale \ - /usr/include/c++/9/bits/locale_facets_nonio.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ - /usr/include/libintl.h /usr/include/c++/9/bits/locale_facets_nonio.tcc \ - /usr/include/c++/9/bits/locale_conv.h \ - /usr/include/c++/9/bits/regex_constants.h \ - /usr/include/c++/9/bits/regex_error.h \ - /usr/include/c++/9/bits/regex_automaton.h \ - /usr/include/c++/9/bits/regex_automaton.tcc \ - /usr/include/c++/9/bits/regex_scanner.h \ - /usr/include/c++/9/bits/regex_scanner.tcc \ - /usr/include/c++/9/bits/regex_compiler.h \ - /usr/include/c++/9/bits/regex_compiler.tcc \ - /usr/include/c++/9/bits/regex.h /usr/include/c++/9/bits/regex.tcc \ - /usr/include/c++/9/bits/regex_executor.h \ - /usr/include/c++/9/bits/regex_executor.tcc \ - /usr/include/x86_64-linux-gnu/sys/stat.h \ - /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ - /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ - /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ - /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ - /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ - /usr/include/c++/9/thread \ - /home/zzy1/2024/my-online-judge/MYOJ/data_server/../comm/Comm_model_MySQL.hpp \ - /usr/include/mysql/mysql.h \ - /usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h \ - /usr/include/mysql/field_types.h /usr/include/mysql/my_list.h \ - /usr/include/mysql/mysql_com.h /usr/include/mysql/my_command.h \ - /usr/include/mysql/my_compress.h \ - /usr/include/mysql/udf_registration_types.h \ - /usr/include/mysql/client_plugin.h \ - /usr/include/mysql/plugin_auth_common.h \ - /usr/include/mysql/mysql_version.h /usr/include/mysql/mysql_time.h \ - /usr/include/mysql/errmsg.h \ - /home/zzy1/2024/my-online-judge/MYOJ/data_server/../comm/util.hpp \ - /usr/include/x86_64-linux-gnu/sys/time.h \ - /usr/include/x86_64-linux-gnu/sys/wait.h \ - /usr/include/boost/algorithm/string.hpp \ - /usr/include/boost/algorithm/string/std_containers_traits.hpp \ - /usr/include/boost/config.hpp /usr/include/boost/config/user.hpp \ - /usr/include/boost/config/detail/select_compiler_config.hpp \ - /usr/include/boost/config/compiler/gcc.hpp \ - /usr/include/boost/config/detail/select_stdlib_config.hpp \ - /usr/include/c++/9/version \ - /usr/include/boost/config/stdlib/libstdcpp3.hpp \ - /usr/include/boost/config/detail/select_platform_config.hpp \ - /usr/include/boost/config/platform/linux.hpp \ - /usr/include/boost/config/detail/posix_features.hpp \ - /usr/include/boost/config/detail/suffix.hpp \ - /usr/include/boost/config/helper_macros.hpp \ - /usr/include/boost/algorithm/string/std/string_traits.hpp \ - /usr/include/boost/algorithm/string/yes_no_type.hpp \ - /usr/include/boost/algorithm/string/sequence_traits.hpp \ - /usr/include/boost/mpl/bool.hpp /usr/include/boost/mpl/bool_fwd.hpp \ - /usr/include/boost/mpl/aux_/adl_barrier.hpp \ - /usr/include/boost/mpl/aux_/config/adl.hpp \ - /usr/include/boost/mpl/aux_/config/msvc.hpp \ - /usr/include/boost/mpl/aux_/config/intel.hpp \ - /usr/include/boost/mpl/aux_/config/gcc.hpp \ - /usr/include/boost/mpl/aux_/config/workaround.hpp \ - /usr/include/boost/detail/workaround.hpp \ - /usr/include/boost/config/workaround.hpp \ - /usr/include/boost/mpl/integral_c_tag.hpp \ - /usr/include/boost/mpl/aux_/config/static_constant.hpp \ - /usr/include/boost/algorithm/string/std/list_traits.hpp \ - /usr/include/boost/algorithm/string/std/slist_traits.hpp \ - /usr/include/boost/algorithm/string/config.hpp \ - /usr/include/c++/9/ext/slist \ - /usr/include/boost/algorithm/string/trim.hpp \ - /usr/include/boost/range/begin.hpp /usr/include/boost/range/config.hpp \ - /usr/include/boost/range/iterator.hpp \ - /usr/include/boost/range/range_fwd.hpp \ - /usr/include/boost/range/mutable_iterator.hpp \ - /usr/include/boost/range/detail/extract_optional_type.hpp \ - /usr/include/boost/preprocessor/cat.hpp \ - /usr/include/boost/preprocessor/config/config.hpp \ - /usr/include/boost/mpl/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/na_spec.hpp \ - /usr/include/boost/mpl/lambda_fwd.hpp \ - /usr/include/boost/mpl/void_fwd.hpp /usr/include/boost/mpl/aux_/na.hpp \ - /usr/include/boost/mpl/aux_/na_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/ctps.hpp \ - /usr/include/boost/mpl/aux_/config/lambda.hpp \ - /usr/include/boost/mpl/aux_/config/ttp.hpp \ - /usr/include/boost/mpl/int.hpp /usr/include/boost/mpl/int_fwd.hpp \ - /usr/include/boost/mpl/aux_/nttp_decl.hpp \ - /usr/include/boost/mpl/aux_/config/nttp.hpp \ - /usr/include/boost/mpl/aux_/integral_wrapper.hpp \ - /usr/include/boost/mpl/aux_/static_cast.hpp \ - /usr/include/boost/mpl/aux_/lambda_arity_param.hpp \ - /usr/include/boost/mpl/aux_/template_arity_fwd.hpp \ - /usr/include/boost/mpl/aux_/arity.hpp \ - /usr/include/boost/mpl/aux_/config/dtp.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/params.hpp \ - /usr/include/boost/mpl/aux_/config/preprocessor.hpp \ - /usr/include/boost/preprocessor/comma_if.hpp \ - /usr/include/boost/preprocessor/punctuation/comma_if.hpp \ - /usr/include/boost/preprocessor/control/if.hpp \ - /usr/include/boost/preprocessor/control/iif.hpp \ - /usr/include/boost/preprocessor/logical/bool.hpp \ - /usr/include/boost/preprocessor/facilities/empty.hpp \ - /usr/include/boost/preprocessor/punctuation/comma.hpp \ - /usr/include/boost/preprocessor/repeat.hpp \ - /usr/include/boost/preprocessor/repetition/repeat.hpp \ - /usr/include/boost/preprocessor/debug/error.hpp \ - /usr/include/boost/preprocessor/detail/auto_rec.hpp \ - /usr/include/boost/preprocessor/tuple/eat.hpp \ - /usr/include/boost/preprocessor/inc.hpp \ - /usr/include/boost/preprocessor/arithmetic/inc.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/enum.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp \ - /usr/include/boost/mpl/limits/arity.hpp \ - /usr/include/boost/preprocessor/logical/and.hpp \ - /usr/include/boost/preprocessor/logical/bitand.hpp \ - /usr/include/boost/preprocessor/identity.hpp \ - /usr/include/boost/preprocessor/facilities/identity.hpp \ - /usr/include/boost/preprocessor/empty.hpp \ - /usr/include/boost/preprocessor/arithmetic/add.hpp \ - /usr/include/boost/preprocessor/arithmetic/dec.hpp \ - /usr/include/boost/preprocessor/control/while.hpp \ - /usr/include/boost/preprocessor/list/fold_left.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_left.hpp \ - /usr/include/boost/preprocessor/control/expr_iif.hpp \ - /usr/include/boost/preprocessor/list/adt.hpp \ - /usr/include/boost/preprocessor/detail/is_binary.hpp \ - /usr/include/boost/preprocessor/detail/check.hpp \ - /usr/include/boost/preprocessor/logical/compl.hpp \ - /usr/include/boost/preprocessor/list/fold_right.hpp \ - /usr/include/boost/preprocessor/list/detail/fold_right.hpp \ - /usr/include/boost/preprocessor/list/reverse.hpp \ - /usr/include/boost/preprocessor/control/detail/while.hpp \ - /usr/include/boost/preprocessor/tuple/elem.hpp \ - /usr/include/boost/preprocessor/facilities/expand.hpp \ - /usr/include/boost/preprocessor/facilities/overload.hpp \ - /usr/include/boost/preprocessor/variadic/size.hpp \ - /usr/include/boost/preprocessor/tuple/rem.hpp \ - /usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp \ - /usr/include/boost/preprocessor/variadic/elem.hpp \ - /usr/include/boost/preprocessor/arithmetic/sub.hpp \ - /usr/include/boost/mpl/aux_/config/eti.hpp \ - /usr/include/boost/mpl/aux_/config/overload_resolution.hpp \ - /usr/include/boost/mpl/aux_/type_wrapper.hpp \ - /usr/include/boost/mpl/aux_/yes_no.hpp \ - /usr/include/boost/mpl/aux_/config/arrays.hpp \ - /usr/include/boost/mpl/aux_/config/has_xxx.hpp \ - /usr/include/boost/mpl/aux_/config/msvc_typename.hpp \ - /usr/include/boost/preprocessor/array/elem.hpp \ - /usr/include/boost/preprocessor/array/data.hpp \ - /usr/include/boost/preprocessor/array/size.hpp \ - /usr/include/boost/preprocessor/repetition/enum_params.hpp \ - /usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp \ - /usr/include/boost/type_traits/remove_reference.hpp \ - /usr/include/boost/iterator/iterator_traits.hpp \ - /usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp \ - /usr/include/boost/range/const_iterator.hpp \ - /usr/include/boost/type_traits/remove_const.hpp \ - /usr/include/boost/type_traits/is_const.hpp \ - /usr/include/boost/type_traits/integral_constant.hpp \ - /usr/include/boost/mpl/eval_if.hpp /usr/include/boost/mpl/if.hpp \ - /usr/include/boost/mpl/aux_/value_wknd.hpp \ - /usr/include/boost/mpl/aux_/config/integral.hpp \ - /usr/include/boost/mpl/aux_/lambda_support.hpp \ - /usr/include/boost/range/end.hpp \ - /usr/include/boost/range/detail/implementation_help.hpp \ - /usr/include/boost/range/detail/common.hpp \ - /usr/include/boost/range/detail/sfinae.hpp \ - /usr/include/boost/type_traits/is_array.hpp \ - /usr/include/boost/type_traits/detail/yes_no_type.hpp \ - /usr/include/boost/type_traits/is_void.hpp \ - /usr/include/boost/type_traits/is_same.hpp \ - /usr/include/boost/range/as_literal.hpp \ - /usr/include/boost/range/iterator_range.hpp \ - /usr/include/boost/range/iterator_range_core.hpp \ - /usr/include/boost/assert.hpp \ - /usr/include/boost/iterator/iterator_facade.hpp \ - /usr/include/boost/iterator/interoperable.hpp \ - /usr/include/boost/mpl/or.hpp \ - /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/nested_type_wknd.hpp \ - /usr/include/boost/mpl/aux_/include_preprocessed.hpp \ - /usr/include/boost/mpl/aux_/config/compiler.hpp \ - /usr/include/boost/preprocessor/stringize.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp \ - /usr/include/boost/type_traits/is_convertible.hpp \ - /usr/include/boost/type_traits/intrinsics.hpp \ - /usr/include/boost/type_traits/detail/config.hpp \ - /usr/include/boost/version.hpp \ - /usr/include/boost/type_traits/is_complete.hpp \ - /usr/include/boost/type_traits/declval.hpp \ - /usr/include/boost/type_traits/add_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_reference.hpp \ - /usr/include/boost/type_traits/is_lvalue_reference.hpp \ - /usr/include/boost/type_traits/is_rvalue_reference.hpp \ - /usr/include/boost/type_traits/is_function.hpp \ - /usr/include/boost/type_traits/detail/is_function_cxx_11.hpp \ - /usr/include/boost/static_assert.hpp \ - /usr/include/boost/type_traits/is_arithmetic.hpp \ - /usr/include/boost/type_traits/is_integral.hpp \ - /usr/include/boost/type_traits/is_floating_point.hpp \ - /usr/include/boost/type_traits/is_abstract.hpp \ - /usr/include/boost/type_traits/add_lvalue_reference.hpp \ - /usr/include/boost/type_traits/add_reference.hpp \ - /usr/include/boost/iterator/detail/config_def.hpp \ - /usr/include/boost/iterator/detail/config_undef.hpp \ - /usr/include/boost/iterator/iterator_categories.hpp \ - /usr/include/boost/mpl/identity.hpp \ - /usr/include/boost/mpl/placeholders.hpp /usr/include/boost/mpl/arg.hpp \ - /usr/include/boost/mpl/arg_fwd.hpp \ - /usr/include/boost/mpl/aux_/na_assert.hpp \ - /usr/include/boost/mpl/assert.hpp /usr/include/boost/mpl/not.hpp \ - /usr/include/boost/mpl/aux_/config/gpu.hpp \ - /usr/include/boost/mpl/aux_/config/pp_counter.hpp \ - /usr/include/boost/mpl/aux_/arity_spec.hpp \ - /usr/include/boost/mpl/aux_/arg_typedef.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp \ - /usr/include/boost/iterator/detail/facade_iterator_category.hpp \ - /usr/include/boost/core/use_default.hpp /usr/include/boost/mpl/and.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp \ - /usr/include/boost/detail/indirect_traits.hpp \ - /usr/include/boost/type_traits/is_pointer.hpp \ - /usr/include/boost/type_traits/is_class.hpp \ - /usr/include/boost/type_traits/is_volatile.hpp \ - /usr/include/boost/type_traits/is_member_function_pointer.hpp \ - /usr/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp \ - /usr/include/boost/type_traits/is_member_pointer.hpp \ - /usr/include/boost/type_traits/remove_cv.hpp \ - /usr/include/boost/type_traits/remove_pointer.hpp \ - /usr/include/boost/detail/select_type.hpp \ - /usr/include/boost/iterator/detail/enable_if.hpp \ - /usr/include/boost/core/addressof.hpp \ - /usr/include/boost/type_traits/add_const.hpp \ - /usr/include/boost/type_traits/add_pointer.hpp \ - /usr/include/boost/type_traits/is_pod.hpp \ - /usr/include/boost/type_traits/is_scalar.hpp \ - /usr/include/boost/type_traits/is_enum.hpp \ - /usr/include/boost/mpl/always.hpp \ - /usr/include/boost/mpl/aux_/preprocessor/default_params.hpp \ - /usr/include/boost/mpl/apply.hpp /usr/include/boost/mpl/apply_fwd.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp \ - /usr/include/boost/mpl/apply_wrap.hpp \ - /usr/include/boost/mpl/aux_/has_apply.hpp \ - /usr/include/boost/mpl/aux_/config/has_apply.hpp \ - /usr/include/boost/mpl/aux_/msvc_never_true.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp \ - /usr/include/boost/mpl/lambda.hpp /usr/include/boost/mpl/bind.hpp \ - /usr/include/boost/mpl/bind_fwd.hpp \ - /usr/include/boost/mpl/aux_/config/bind.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp \ - /usr/include/boost/mpl/next.hpp /usr/include/boost/mpl/next_prior.hpp \ - /usr/include/boost/mpl/aux_/common_name_wknd.hpp \ - /usr/include/boost/mpl/protect.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp \ - /usr/include/boost/mpl/aux_/full_lambda.hpp \ - /usr/include/boost/mpl/quote.hpp /usr/include/boost/mpl/void.hpp \ - /usr/include/boost/mpl/aux_/has_type.hpp \ - /usr/include/boost/mpl/aux_/config/bcc.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp \ - /usr/include/boost/mpl/aux_/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp \ - /usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp \ - /usr/include/boost/type_traits/is_base_and_derived.hpp \ - /usr/include/boost/range/functions.hpp /usr/include/boost/range/size.hpp \ - /usr/include/boost/range/size_type.hpp \ - /usr/include/boost/range/difference_type.hpp \ - /usr/include/boost/range/has_range_iterator.hpp \ - /usr/include/boost/utility/enable_if.hpp \ - /usr/include/boost/core/enable_if.hpp \ - /usr/include/boost/range/concepts.hpp \ - /usr/include/boost/concept_check.hpp \ - /usr/include/boost/concept/assert.hpp \ - /usr/include/boost/concept/detail/general.hpp \ - /usr/include/boost/concept/detail/backward_compatibility.hpp \ - /usr/include/boost/concept/detail/has_constraints.hpp \ - /usr/include/boost/type_traits/conditional.hpp \ - /usr/include/boost/type_traits/conversion_traits.hpp \ - /usr/include/boost/concept/usage.hpp \ - /usr/include/boost/concept/detail/concept_def.hpp \ - /usr/include/boost/preprocessor/seq/for_each_i.hpp \ - /usr/include/boost/preprocessor/repetition/for.hpp \ - /usr/include/boost/preprocessor/repetition/detail/for.hpp \ - /usr/include/boost/preprocessor/seq/seq.hpp \ - /usr/include/boost/preprocessor/seq/elem.hpp \ - /usr/include/boost/preprocessor/seq/size.hpp \ - /usr/include/boost/preprocessor/seq/detail/is_empty.hpp \ - /usr/include/boost/preprocessor/seq/enum.hpp \ - /usr/include/boost/concept/detail/concept_undef.hpp \ - /usr/include/boost/iterator/iterator_concepts.hpp \ - /usr/include/boost/limits.hpp /usr/include/boost/range/value_type.hpp \ - /usr/include/boost/range/detail/misc_concept.hpp \ - /usr/include/boost/type_traits/make_unsigned.hpp \ - /usr/include/boost/type_traits/is_signed.hpp \ - /usr/include/boost/type_traits/is_unsigned.hpp \ - /usr/include/boost/type_traits/add_volatile.hpp \ - /usr/include/boost/range/detail/has_member_size.hpp \ - /usr/include/boost/cstdint.hpp /usr/include/boost/utility.hpp \ - /usr/include/boost/utility/base_from_member.hpp \ - /usr/include/boost/preprocessor/repetition/enum_binary_params.hpp \ - /usr/include/boost/preprocessor/repetition/repeat_from_to.hpp \ - /usr/include/boost/utility/binary.hpp \ - /usr/include/boost/preprocessor/control/deduce_d.hpp \ - /usr/include/boost/preprocessor/seq/cat.hpp \ - /usr/include/boost/preprocessor/seq/fold_left.hpp \ - /usr/include/boost/preprocessor/seq/transform.hpp \ - /usr/include/boost/preprocessor/arithmetic/mod.hpp \ - /usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp \ - /usr/include/boost/preprocessor/comparison/less_equal.hpp \ - /usr/include/boost/preprocessor/logical/not.hpp \ - /usr/include/boost/utility/identity_type.hpp \ - /usr/include/boost/type_traits/function_traits.hpp \ - /usr/include/boost/core/checked_delete.hpp \ - /usr/include/boost/core/noncopyable.hpp \ - /usr/include/boost/range/distance.hpp \ - /usr/include/boost/iterator/distance.hpp \ - /usr/include/boost/range/empty.hpp /usr/include/boost/range/rbegin.hpp \ - /usr/include/boost/range/reverse_iterator.hpp \ - /usr/include/boost/iterator/reverse_iterator.hpp \ - /usr/include/boost/iterator/iterator_adaptor.hpp \ - /usr/include/boost/range/rend.hpp \ - /usr/include/boost/range/algorithm/equal.hpp \ - /usr/include/boost/range/detail/safe_bool.hpp \ - /usr/include/boost/next_prior.hpp \ - /usr/include/boost/type_traits/has_plus.hpp \ - /usr/include/boost/type_traits/detail/has_binary_operator.hpp \ - /usr/include/boost/type_traits/make_void.hpp \ - /usr/include/boost/type_traits/has_plus_assign.hpp \ - /usr/include/boost/type_traits/has_minus.hpp \ - /usr/include/boost/type_traits/has_minus_assign.hpp \ - /usr/include/boost/iterator/advance.hpp \ - /usr/include/boost/range/iterator_range_io.hpp \ - /usr/include/boost/range/detail/str_types.hpp \ - /usr/include/boost/algorithm/string/detail/trim.hpp \ - /usr/include/boost/algorithm/string/classification.hpp \ - /usr/include/boost/algorithm/string/detail/classification.hpp \ - /usr/include/boost/algorithm/string/predicate_facade.hpp \ - /usr/include/boost/algorithm/string/case_conv.hpp \ - /usr/include/boost/iterator/transform_iterator.hpp \ - /usr/include/boost/utility/result_of.hpp \ - /usr/include/boost/preprocessor/iteration/iterate.hpp \ - /usr/include/boost/preprocessor/slot/slot.hpp \ - /usr/include/boost/preprocessor/slot/detail/def.hpp \ - /usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp \ - /usr/include/boost/preprocessor/facilities/intercept.hpp \ - /usr/include/boost/type_traits/type_identity.hpp \ - /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp \ - /usr/include/boost/preprocessor/slot/detail/shared.hpp \ - /usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp \ - /usr/include/boost/utility/detail/result_of_iterate.hpp \ - /usr/include/boost/algorithm/string/detail/case_conv.hpp \ - /usr/include/boost/algorithm/string/predicate.hpp \ - /usr/include/boost/algorithm/string/compare.hpp \ - /usr/include/boost/algorithm/string/find.hpp \ - /usr/include/boost/algorithm/string/finder.hpp \ - /usr/include/boost/algorithm/string/constants.hpp \ - /usr/include/boost/algorithm/string/detail/finder.hpp \ - /usr/include/boost/algorithm/string/detail/predicate.hpp \ - /usr/include/boost/algorithm/string/split.hpp \ - /usr/include/boost/algorithm/string/iter_find.hpp \ - /usr/include/boost/algorithm/string/concept.hpp \ - /usr/include/boost/algorithm/string/find_iterator.hpp \ - /usr/include/boost/algorithm/string/detail/find_iterator.hpp \ - /usr/include/boost/function.hpp \ - /usr/include/boost/preprocessor/iterate.hpp \ - /usr/include/boost/function/detail/prologue.hpp \ - /usr/include/boost/config/no_tr1/functional.hpp \ - /usr/include/boost/throw_exception.hpp \ - /usr/include/boost/assert/source_location.hpp \ - /usr/include/boost/current_function.hpp \ - /usr/include/boost/exception/exception.hpp \ - /usr/include/boost/function/function_base.hpp \ - /usr/include/boost/integer.hpp /usr/include/boost/integer_fwd.hpp \ - /usr/include/boost/integer_traits.hpp /usr/include/boost/type_index.hpp \ - /usr/include/boost/type_index/stl_type_index.hpp \ - /usr/include/boost/type_index/type_index_facade.hpp \ - /usr/include/boost/container_hash/hash_fwd.hpp \ - /usr/include/boost/core/demangle.hpp /usr/include/c++/9/cxxabi.h \ - /usr/include/x86_64-linux-gnu/c++/9/bits/cxxabi_tweaks.h \ - /usr/include/boost/type_traits/has_trivial_copy.hpp \ - /usr/include/boost/type_traits/is_copy_constructible.hpp \ - /usr/include/boost/type_traits/is_constructible.hpp \ - /usr/include/boost/type_traits/is_destructible.hpp \ - /usr/include/boost/type_traits/is_default_constructible.hpp \ - /usr/include/boost/type_traits/has_trivial_destructor.hpp \ - /usr/include/boost/type_traits/composite_traits.hpp \ - /usr/include/boost/type_traits/is_union.hpp /usr/include/boost/ref.hpp \ - /usr/include/boost/core/ref.hpp \ - /usr/include/boost/type_traits/alignment_of.hpp \ - /usr/include/boost/type_traits/enable_if.hpp \ - /usr/include/boost/function_equal.hpp \ - /usr/include/boost/function/function_fwd.hpp \ - /usr/include/boost/mem_fn.hpp /usr/include/boost/bind/mem_fn.hpp \ - /usr/include/boost/get_pointer.hpp \ - /usr/include/boost/config/no_tr1/memory.hpp \ - /usr/include/boost/bind/mem_fn_template.hpp \ - /usr/include/boost/bind/mem_fn_cc.hpp \ - /usr/include/boost/preprocessor/enum.hpp \ - /usr/include/boost/preprocessor/repetition/enum.hpp \ - /usr/include/boost/preprocessor/enum_params.hpp \ - /usr/include/boost/function/detail/function_iterate.hpp \ - /usr/include/boost/function/detail/maybe_include.hpp \ - /usr/include/boost/function/function_template.hpp \ - /usr/include/boost/core/no_exceptions_support.hpp \ - /usr/include/boost/algorithm/string/detail/util.hpp \ - /usr/include/boost/algorithm/string/join.hpp \ - /usr/include/boost/algorithm/string/detail/sequence.hpp \ - /usr/include/boost/mpl/logical.hpp \ - /usr/include/boost/algorithm/string/replace.hpp \ - /usr/include/boost/algorithm/string/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_store.hpp \ - /usr/include/boost/algorithm/string/detail/replace_storage.hpp \ - /usr/include/boost/algorithm/string/detail/find_format_all.hpp \ - /usr/include/boost/algorithm/string/formatter.hpp \ - /usr/include/boost/algorithm/string/detail/formatter.hpp \ - /usr/include/boost/algorithm/string/erase.hpp \ - /home/zzy1/2024/my-online-judge/MYOJ/data_server/../comm/../comm/Log.hpp diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/depend.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/depend.make deleted file mode 100644 index 14f3255..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/depend.make +++ /dev/null @@ -1,2 +0,0 @@ -# Empty dependencies file for data_server. -# This may be replaced when dependencies are built. diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/flags.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/flags.make deleted file mode 100644 index ec0b684..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/flags.make +++ /dev/null @@ -1,10 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# compile CXX with /usr/bin/g++-9 -CXX_DEFINES = - -CXX_INCLUDES = - -CXX_FLAGS = -g -std=gnu++11 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/link.txt b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/link.txt deleted file mode 100644 index 195ed03..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/link.txt +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/g++-9 -g CMakeFiles/data_server.dir/data_server/data_server.cc.o -o output/data_server -ljsoncpp -lctemplate -lmysqlclient diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/progress.make b/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/progress.make deleted file mode 100644 index 3a86673..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/data_server.dir/progress.make +++ /dev/null @@ -1,3 +0,0 @@ -CMAKE_PROGRESS_1 = 5 -CMAKE_PROGRESS_2 = 6 - diff --git a/src/my-online-judge-master/MYOJ/build/CMakeFiles/progress.marks b/src/my-online-judge-master/MYOJ/build/CMakeFiles/progress.marks deleted file mode 100644 index 1e8b314..0000000 --- a/src/my-online-judge-master/MYOJ/build/CMakeFiles/progress.marks +++ /dev/null @@ -1 +0,0 @@ -6 diff --git a/src/my-online-judge-master/MYOJ/build/Makefile b/src/my-online-judge-master/MYOJ/build/Makefile deleted file mode 100644 index b625b40..0000000 --- a/src/my-online-judge-master/MYOJ/build/Makefile +++ /dev/null @@ -1,263 +0,0 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.22 - -# Default target executed when no arguments are given to make. -default_target: all -.PHONY : default_target - -# Allow only one "make -f Makefile2" at a time, but pass parallelism. -.NOTPARALLEL: - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - -# Disable VCS-based implicit rules. -% : %,v - -# Disable VCS-based implicit rules. -% : RCS/% - -# Disable VCS-based implicit rules. -% : RCS/%,v - -# Disable VCS-based implicit rules. -% : SCCS/s.% - -# Disable VCS-based implicit rules. -% : s.% - -.SUFFIXES: .hpux_make_needs_suffix_list - -# Command-line flag to silence nested $(MAKE). -$(VERBOSE)MAKESILENT = -s - -#Suppress display of executed commands. -$(VERBOSE).SILENT: - -# A target that is always out of date. -cmake_force: -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E rm -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/zzy1/2024/my-online-judge/MYOJ - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/zzy1/2024/my-online-judge/MYOJ/build - -#============================================================================= -# Targets provided globally by CMake. - -# Special rule for the target edit_cache -edit_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." - /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. -.PHONY : edit_cache - -# Special rule for the target edit_cache -edit_cache/fast: edit_cache -.PHONY : edit_cache/fast - -# Special rule for the target rebuild_cache -rebuild_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." - /usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -.PHONY : rebuild_cache - -# Special rule for the target rebuild_cache -rebuild_cache/fast: rebuild_cache -.PHONY : rebuild_cache/fast - -# The main all target -all: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles /home/zzy1/2024/my-online-judge/MYOJ/build//CMakeFiles/progress.marks - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all - $(CMAKE_COMMAND) -E cmake_progress_start /home/zzy1/2024/my-online-judge/MYOJ/build/CMakeFiles 0 -.PHONY : all - -# The main clean target -clean: - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean -.PHONY : clean - -# The main clean target -clean/fast: clean -.PHONY : clean/fast - -# Prepare targets for installation. -preinstall: all - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall - -# Prepare targets for installation. -preinstall/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall/fast - -# clear depends -depend: - $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 -.PHONY : depend - -#============================================================================= -# Target rules for targets named OJ_server - -# Build rule for target. -OJ_server: cmake_check_build_system - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 OJ_server -.PHONY : OJ_server - -# fast build rule for target. -OJ_server/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/build -.PHONY : OJ_server/fast - -#============================================================================= -# Target rules for targets named compile_server - -# Build rule for target. -compile_server: cmake_check_build_system - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 compile_server -.PHONY : compile_server - -# fast build rule for target. -compile_server/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/build -.PHONY : compile_server/fast - -#============================================================================= -# Target rules for targets named data_server - -# Build rule for target. -data_server: cmake_check_build_system - $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 data_server -.PHONY : data_server - -# fast build rule for target. -data_server/fast: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/build -.PHONY : data_server/fast - -OJ_server/OJ_server.o: OJ_server/OJ_server.cc.o -.PHONY : OJ_server/OJ_server.o - -# target to build an object file -OJ_server/OJ_server.cc.o: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -.PHONY : OJ_server/OJ_server.cc.o - -OJ_server/OJ_server.i: OJ_server/OJ_server.cc.i -.PHONY : OJ_server/OJ_server.i - -# target to preprocess a source file -OJ_server/OJ_server.cc.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.i -.PHONY : OJ_server/OJ_server.cc.i - -OJ_server/OJ_server.s: OJ_server/OJ_server.cc.s -.PHONY : OJ_server/OJ_server.s - -# target to generate assembly for a file -OJ_server/OJ_server.cc.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles/OJ_server.dir/build.make CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.s -.PHONY : OJ_server/OJ_server.cc.s - -compile_server/compile_server.o: compile_server/compile_server.cc.o -.PHONY : compile_server/compile_server.o - -# target to build an object file -compile_server/compile_server.cc.o: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -.PHONY : compile_server/compile_server.cc.o - -compile_server/compile_server.i: compile_server/compile_server.cc.i -.PHONY : compile_server/compile_server.i - -# target to preprocess a source file -compile_server/compile_server.cc.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/compile_server/compile_server.cc.i -.PHONY : compile_server/compile_server.cc.i - -compile_server/compile_server.s: compile_server/compile_server.cc.s -.PHONY : compile_server/compile_server.s - -# target to generate assembly for a file -compile_server/compile_server.cc.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles/compile_server.dir/build.make CMakeFiles/compile_server.dir/compile_server/compile_server.cc.s -.PHONY : compile_server/compile_server.cc.s - -data_server/data_server.o: data_server/data_server.cc.o -.PHONY : data_server/data_server.o - -# target to build an object file -data_server/data_server.cc.o: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/data_server/data_server.cc.o -.PHONY : data_server/data_server.cc.o - -data_server/data_server.i: data_server/data_server.cc.i -.PHONY : data_server/data_server.i - -# target to preprocess a source file -data_server/data_server.cc.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/data_server/data_server.cc.i -.PHONY : data_server/data_server.cc.i - -data_server/data_server.s: data_server/data_server.cc.s -.PHONY : data_server/data_server.s - -# target to generate assembly for a file -data_server/data_server.cc.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles/data_server.dir/build.make CMakeFiles/data_server.dir/data_server/data_server.cc.s -.PHONY : data_server/data_server.cc.s - -# Help Target -help: - @echo "The following are some of the valid targets for this Makefile:" - @echo "... all (the default if no target is provided)" - @echo "... clean" - @echo "... depend" - @echo "... edit_cache" - @echo "... rebuild_cache" - @echo "... OJ_server" - @echo "... compile_server" - @echo "... data_server" - @echo "... OJ_server/OJ_server.o" - @echo "... OJ_server/OJ_server.i" - @echo "... OJ_server/OJ_server.s" - @echo "... compile_server/compile_server.o" - @echo "... compile_server/compile_server.i" - @echo "... compile_server/compile_server.s" - @echo "... data_server/data_server.o" - @echo "... data_server/data_server.i" - @echo "... data_server/data_server.s" -.PHONY : help - - - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - diff --git a/src/my-online-judge-master/MYOJ/build/cmake_install.cmake b/src/my-online-judge-master/MYOJ/build/cmake_install.cmake deleted file mode 100644 index d7623e6..0000000 --- a/src/my-online-judge-master/MYOJ/build/cmake_install.cmake +++ /dev/null @@ -1,54 +0,0 @@ -# Install script for directory: /home/zzy1/2024/my-online-judge/MYOJ - -# Set the install prefix -if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr/local") -endif() -string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") - -# Set the install configuration name. -if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if(BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else() - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif() - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif() - -# Set the component getting installed. -if(NOT CMAKE_INSTALL_COMPONENT) - if(COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else() - set(CMAKE_INSTALL_COMPONENT) - endif() -endif() - -# Install shared libraries without execute permission? -if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) - set(CMAKE_INSTALL_SO_NO_EXE "1") -endif() - -# Is this installation the result of a crosscompile? -if(NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif() - -# Set default install directory permissions. -if(NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "/usr/bin/objdump") -endif() - -if(CMAKE_INSTALL_COMPONENT) - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") -else() - set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") -endif() - -string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") -file(WRITE "/home/zzy1/2024/my-online-judge/MYOJ/build/${CMAKE_INSTALL_MANIFEST}" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/src/my-online-judge-master/MYOJ/build/compile_commands.json b/src/my-online-judge-master/MYOJ/build/compile_commands.json deleted file mode 100644 index 2c2805a..0000000 --- a/src/my-online-judge-master/MYOJ/build/compile_commands.json +++ /dev/null @@ -1,17 +0,0 @@ -[ -{ - "directory": "/home/zzy1/2024/my-online-judge/MYOJ/build", - "command": "/usr/bin/g++-9 -g -std=gnu++11 -o CMakeFiles/OJ_server.dir/OJ_server/OJ_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc", - "file": "/home/zzy1/2024/my-online-judge/MYOJ/OJ_server/OJ_server.cc" -}, -{ - "directory": "/home/zzy1/2024/my-online-judge/MYOJ/build", - "command": "/usr/bin/g++-9 -g -std=gnu++11 -o CMakeFiles/compile_server.dir/compile_server/compile_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc", - "file": "/home/zzy1/2024/my-online-judge/MYOJ/compile_server/compile_server.cc" -}, -{ - "directory": "/home/zzy1/2024/my-online-judge/MYOJ/build", - "command": "/usr/bin/g++-9 -g -std=gnu++11 -o CMakeFiles/data_server.dir/data_server/data_server.cc.o -c /home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc", - "file": "/home/zzy1/2024/my-online-judge/MYOJ/data_server/data_server.cc" -} -] \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/build/output/OJ_server b/src/my-online-judge-master/MYOJ/build/output/OJ_server deleted file mode 100644 index f39b2e2..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/output/OJ_server and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/output/compile_server b/src/my-online-judge-master/MYOJ/build/output/compile_server deleted file mode 100644 index 6afd943..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/output/compile_server and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/build/output/data_server b/src/my-online-judge-master/MYOJ/build/output/data_server deleted file mode 100644 index a92a9d6..0000000 Binary files a/src/my-online-judge-master/MYOJ/build/output/data_server and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/comm/Comm_model_MySQL.hpp b/src/my-online-judge-master/MYOJ/comm/Comm_model_MySQL.hpp deleted file mode 100644 index 7505f94..0000000 --- a/src/my-online-judge-master/MYOJ/comm/Comm_model_MySQL.hpp +++ /dev/null @@ -1,160 +0,0 @@ -// 该模块负责和数据交互,对题库进行增删改查,对外提供访问数据接口 -// MySQL版本题库 - -// to do... -// 1.增加一个删除指定题号的接口 -// 2.增加一个查询指定题号的接口 -#pragma once - -#include -#include - -#include "util.hpp" - -namespace ns_model_MySQL -{ - struct Question - { - std::string number; // 题目的唯一编号 - std::string title; // 题目的标题 - std::string star; // 题目的难度——简单/中等/困难 - int cpu_limit; // 题目的时间限制(s) - int mem_limit; // 题目的空间限制(KB) - std::string desc; // 题目的题干描述 - std::string header; // 题目预设给用户在线编辑器的代码 - std::string tail; // 题目的测试用例,需要和header拼接,形成完整代码 - }; - - // MySQL中的表名 - const std::string table_name = "oj_questions"; - - // IP地址 - const std::string host = "127.0.0.1"; - - // MySQL用户 - const std::string user = "oj_client"; - - // 用户密码 - const std::string passwd = "ZZYcxrmyh777"; - - // 数据库名称 - const std::string db = "oj"; - - // MySQL服务端口号 - const uint16_t port = 8080; - - class Model - { - public: - Model() - { - } - ~Model() - { - } - - // 查询数据库的接口 - // const std::string& query 为要执行的sql语句 - // std::vector* out 为输出型参数,存放查询的结果 - bool queryMySQL(const std::string &query, std::vector *out) - { - // 1.创建MySQL句柄 - MYSQL *my = mysql_init(nullptr); - - // lg(Debug, "mysql_init finish\n"); - - // 2.连接数据库 - if (nullptr == - mysql_real_connect(my, host.c_str(), user.c_str(), passwd.c_str(), db.c_str(), port, - nullptr, 0)) - { - lg(Fatal, "数据库连接失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - return false; - } - - // 设置字符集,否则传输中文会乱码 - mysql_set_character_set(my, "utf8"); - - lg(Info, "数据库连接成功!\n"); - - // 3.下发SQL命令 - int ret = mysql_query(my, query.c_str()); - if (0 != ret) - { - lg(Error, "%s, \"sql\"语句执行失败, ret: %d, mysql_error: %s\n", - query.c_str(), ret, mysql_error(my)); - return false; - } - - if (out == nullptr) - { - // 如果out为nullptr, 说明并不是查询类sql, 或者不关心查询结果, 故直接返回 - return true; - } - - // 4.提取结果 - MYSQL_RES *res = mysql_store_result(my); - - // 5.分析结果 - int rows = mysql_num_rows(res); // 获得行数量 - int cols = mysql_num_fields(res); // 获得列数量 - - Question q; - - for (int i = 0; i < rows; i++) - { - MYSQL_ROW row = mysql_fetch_row(res); - q.number = row[0]; - q.title = row[1]; - q.star = row[2]; - q.desc = row[3]; - q.header = row[4]; - q.tail = row[5]; - q.cpu_limit = atoi(row[6]); - q.mem_limit = atoi(row[7]); - - out->push_back(q); - } - - - // 6.释放资源 - mysql_free_result(res); - - // 关闭MySQL连接 - mysql_close(my); - return true; - } - - bool getAllQuestions(std::vector *out) - { - std::string sql = "select * from "; - sql += table_name; - sql += ";"; - - return queryMySQL(sql, out); - } - - bool getOneQuestion(const std::string &question_num, Question *out) - { - bool res = false; - std::string sql = "select * from "; - sql += table_name; - sql += " where number="; - sql += question_num; - sql += ";"; - std::vector result; - - if (queryMySQL(sql, &result)) - { - if (result.size() == 1) - { - *out = result[0]; - res = true; - } - } - - return res; - } - }; - -} diff --git a/src/my-online-judge-master/MYOJ/comm/Log.hpp b/src/my-online-judge-master/MYOJ/comm/Log.hpp deleted file mode 100644 index aa250d5..0000000 --- a/src/my-online-judge-master/MYOJ/comm/Log.hpp +++ /dev/null @@ -1,133 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include - - -enum PrintMethods -{ - Screen = 1, - Onefile, - Classfile -}; - -enum LogLevel -{ - Info = 0, - Debug, - Warning, - Error, - Fatal -}; - -std::string defaultPath = "./Log/"; - -class Log -{ -public: - // 初始化日志,默认向屏幕上输出,输出文件路径默认设置为当前路径下Log.txt文件 - Log(const int printMethod = Screen, const std::string &path = defaultPath) - : _path(path), _printMethod(printMethod) - { - } - - // 改变日志的输出方式 - void Enable(int newMethod) - { - _printMethod = newMethod; - } - - std::string LevelToString(int level) - { - switch (level) - { - case Info: - return "Info"; - break; - case Debug: - return "Debug"; - break; - case Warning: - return "Warning"; - break; - case Error: - return "Error"; - break; - case Fatal: - return "Fatal"; - break; - default: - return "None"; - break; - } - } - - void PrintLog(const std::string &LogMessage, int level) - { - switch (_printMethod) - { - case Screen: - printf("%s", LogMessage.c_str()); - break; - case Onefile: - printOnefile("log.txt", LogMessage); - break; - case Classfile: - printClassFile(LogMessage, level); - break; - default: - break; - } - } - - void printOnefile(const std::string &logName, const std::string &LogMessage) - { - std::string fileName = _path; - fileName += logName; - int fd = open(fileName.c_str(), O_APPEND | O_WRONLY | O_CREAT, 0666); - if (fd < 0) - { - perror("printOnefile open"); - return; - } - write(fd, LogMessage.c_str(), LogMessage.size()); - close(fd); - } - - void printClassFile(const std::string &LogMessage, int level) - { - std::string fileName = "log.txt."; - fileName += LevelToString(level); - printOnefile(fileName, LogMessage); - } - - void operator()(int level, const char *format, ...) - { - time_t t; - time(&t); - struct tm *p; - p = localtime(&t); - char leftBuffer[1024]; - snprintf(leftBuffer, sizeof(leftBuffer) - 1, "[%s][%d-%d-%d %d:%d:%d]", LevelToString(level).c_str(), - p->tm_year + 1900, p->tm_mon + 1, p->tm_mday, p->tm_hour, p->tm_min, p->tm_sec); - char rightBuffer[1024]; - va_list ap; - va_start(ap, format); - vsnprintf(rightBuffer, sizeof(rightBuffer) - 1, format, ap); - std::string LogMessage(leftBuffer); - LogMessage += " "; - LogMessage += rightBuffer; - PrintLog(LogMessage, level); - } - -private: - std::string _path; - int _printMethod; -}; - - -Log lg; \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/comm/httplib.h b/src/my-online-judge-master/MYOJ/comm/httplib.h deleted file mode 100644 index 01081d7..0000000 --- a/src/my-online-judge-master/MYOJ/comm/httplib.h +++ /dev/null @@ -1,6708 +0,0 @@ -// -// httplib.h -// -// Copyright (c) 2020 Yuji Hirose. All rights reserved. -// MIT License -// - -#ifndef CPPHTTPLIB_HTTPLIB_H -#define CPPHTTPLIB_HTTPLIB_H - -/* - * Configuration - */ - -#ifndef CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND -#define CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_KEEPALIVE_MAX_COUNT -#define CPPHTTPLIB_KEEPALIVE_MAX_COUNT 5 -#endif - -#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND -#define CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND 300 -#endif - -#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND -#define CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_READ_TIMEOUT_SECOND -#define CPPHTTPLIB_READ_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_READ_TIMEOUT_USECOND -#define CPPHTTPLIB_READ_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_WRITE_TIMEOUT_SECOND -#define CPPHTTPLIB_WRITE_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_WRITE_TIMEOUT_USECOND -#define CPPHTTPLIB_WRITE_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_IDLE_INTERVAL_SECOND -#define CPPHTTPLIB_IDLE_INTERVAL_SECOND 0 -#endif - -#ifndef CPPHTTPLIB_IDLE_INTERVAL_USECOND -#ifdef _WIN32 -#define CPPHTTPLIB_IDLE_INTERVAL_USECOND 10000 -#else -#define CPPHTTPLIB_IDLE_INTERVAL_USECOND 0 -#endif -#endif - -#ifndef CPPHTTPLIB_REQUEST_URI_MAX_LENGTH -#define CPPHTTPLIB_REQUEST_URI_MAX_LENGTH 8192 -#endif - -#ifndef CPPHTTPLIB_REDIRECT_MAX_COUNT -#define CPPHTTPLIB_REDIRECT_MAX_COUNT 20 -#endif - -#ifndef CPPHTTPLIB_PAYLOAD_MAX_LENGTH -#define CPPHTTPLIB_PAYLOAD_MAX_LENGTH ((std::numeric_limits::max)()) -#endif - -#ifndef CPPHTTPLIB_TCP_NODELAY -#define CPPHTTPLIB_TCP_NODELAY false -#endif - -#ifndef CPPHTTPLIB_RECV_BUFSIZ -#define CPPHTTPLIB_RECV_BUFSIZ size_t(4096u) -#endif - -#ifndef CPPHTTPLIB_COMPRESSION_BUFSIZ -#define CPPHTTPLIB_COMPRESSION_BUFSIZ size_t(16384u) -#endif - -#ifndef CPPHTTPLIB_THREAD_POOL_COUNT -#define CPPHTTPLIB_THREAD_POOL_COUNT \ - ((std::max)(8u, std::thread::hardware_concurrency() > 0 \ - ? std::thread::hardware_concurrency() - 1 \ - : 0)) -#endif - -#ifndef CPPHTTPLIB_RECV_FLAGS -#define CPPHTTPLIB_RECV_FLAGS 0 -#endif - -#ifndef CPPHTTPLIB_SEND_FLAGS -#define CPPHTTPLIB_SEND_FLAGS 0 -#endif - -/* - * Headers - */ - -#ifdef _WIN32 -#ifndef _CRT_SECURE_NO_WARNINGS -#define _CRT_SECURE_NO_WARNINGS -#endif //_CRT_SECURE_NO_WARNINGS - -#ifndef _CRT_NONSTDC_NO_DEPRECATE -#define _CRT_NONSTDC_NO_DEPRECATE -#endif //_CRT_NONSTDC_NO_DEPRECATE - -#if defined(_MSC_VER) -#ifdef _WIN64 -using ssize_t = __int64; -#else -using ssize_t = int; -#endif - -#if _MSC_VER < 1900 -#define snprintf _snprintf_s -#endif -#endif // _MSC_VER - -#ifndef S_ISREG -#define S_ISREG(m) (((m)&S_IFREG) == S_IFREG) -#endif // S_ISREG - -#ifndef S_ISDIR -#define S_ISDIR(m) (((m)&S_IFDIR) == S_IFDIR) -#endif // S_ISDIR - -#ifndef NOMINMAX -#define NOMINMAX -#endif // NOMINMAX - -#include -#include - -#include -#include - -#ifndef WSA_FLAG_NO_HANDLE_INHERIT -#define WSA_FLAG_NO_HANDLE_INHERIT 0x80 -#endif - -#ifdef _MSC_VER -#pragma comment(lib, "ws2_32.lib") -#pragma comment(lib, "crypt32.lib") -#pragma comment(lib, "cryptui.lib") -#endif - -#ifndef strcasecmp -#define strcasecmp _stricmp -#endif // strcasecmp - -using socket_t = SOCKET; -#ifdef CPPHTTPLIB_USE_POLL -#define poll(fds, nfds, timeout) WSAPoll(fds, nfds, timeout) -#endif - -#else // not _WIN32 - -#include -#include -#include -#include -#include -#ifdef __linux__ -#include -#endif -#include -#ifdef CPPHTTPLIB_USE_POLL -#include -#endif -#include -#include -#include -#include -#include - -using socket_t = int; -#define INVALID_SOCKET (-1) -#endif //_WIN32 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -#include -#include -#include -#include - -#if defined(_WIN32) && defined(OPENSSL_USE_APPLINK) -#include -#endif - -#include -#include -#include - -#if OPENSSL_VERSION_NUMBER < 0x1010100fL -#error Sorry, OpenSSL versions prior to 1.1.1 are not supported -#endif - -#if OPENSSL_VERSION_NUMBER < 0x10100000L -#include -inline const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) { - return M_ASN1_STRING_data(asn1); -} -#endif -#endif - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT -#include -#endif - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT -#include -#include -#endif - -/* - * Declaration - */ -namespace httplib { - -namespace detail { - -/* - * Backport std::make_unique from C++14. - * - * NOTE: This code came up with the following stackoverflow post: - * https://stackoverflow.com/questions/10149840/c-arrays-and-make-unique - * - */ - -template -typename std::enable_if::value, std::unique_ptr>::type -make_unique(Args &&... args) { - return std::unique_ptr(new T(std::forward(args)...)); -} - -template -typename std::enable_if::value, std::unique_ptr>::type -make_unique(std::size_t n) { - typedef typename std::remove_extent::type RT; - return std::unique_ptr(new RT[n]); -} - -struct ci { - bool operator()(const std::string &s1, const std::string &s2) const { - return std::lexicographical_compare( - s1.begin(), s1.end(), s2.begin(), s2.end(), - [](unsigned char c1, unsigned char c2) { return ::tolower(c1) < ::tolower(c2); }); - } -}; - -} // namespace detail - -using Headers = std::multimap; - -using Params = std::multimap; -using Match = std::smatch; - -using Progress = std::function; - -struct Response; -using ResponseHandler = std::function; - -struct MultipartFormData { - std::string name; - std::string content; - std::string filename; - std::string content_type; -}; -using MultipartFormDataItems = std::vector; -using MultipartFormDataMap = std::multimap; - -class DataSink { -public: - DataSink() : os(&sb_), sb_(*this) {} - - DataSink(const DataSink &) = delete; - DataSink &operator=(const DataSink &) = delete; - DataSink(DataSink &&) = delete; - DataSink &operator=(DataSink &&) = delete; - - std::function write; - std::function done; - std::function is_writable; - std::ostream os; - -private: - class data_sink_streambuf : public std::streambuf { - public: - explicit data_sink_streambuf(DataSink &sink) : sink_(sink) {} - - protected: - std::streamsize xsputn(const char *s, std::streamsize n) { - sink_.write(s, static_cast(n)); - return n; - } - - private: - DataSink &sink_; - }; - - data_sink_streambuf sb_; -}; - -using ContentProvider = - std::function; - -using ContentProviderWithoutLength = - std::function; - -using ContentReceiverWithProgress = - std::function; - -using ContentReceiver = - std::function; - -using MultipartContentHeader = - std::function; - -class ContentReader { -public: - using Reader = std::function; - using MultipartReader = std::function; - - ContentReader(Reader reader, MultipartReader multipart_reader) - : reader_(std::move(reader)), - multipart_reader_(std::move(multipart_reader)) {} - - bool operator()(MultipartContentHeader header, - ContentReceiver receiver) const { - return multipart_reader_(std::move(header), std::move(receiver)); - } - - bool operator()(ContentReceiver receiver) const { - return reader_(std::move(receiver)); - } - - Reader reader_; - MultipartReader multipart_reader_; -}; - -using Range = std::pair; -using Ranges = std::vector; - -struct Request { - std::string method; - std::string path; - Headers headers; - std::string body; - - std::string remote_addr; - int remote_port = -1; - - // for server - std::string version; - std::string target; - Params params; - MultipartFormDataMap files; - Ranges ranges; - Match matches; - - // for client - size_t redirect_count = CPPHTTPLIB_REDIRECT_MAX_COUNT; - ResponseHandler response_handler; - ContentReceiverWithProgress content_receiver; - size_t content_length = 0; - ContentProvider content_provider; - Progress progress; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - const SSL *ssl; -#endif - - bool has_header(const char *key) const; - std::string get_header_value(const char *key, size_t id = 0) const; - template - T get_header_value(const char *key, size_t id = 0) const; - size_t get_header_value_count(const char *key) const; - void set_header(const char *key, const char *val); - void set_header(const char *key, const std::string &val); - - bool has_param(const char *key) const; - std::string get_param_value(const char *key, size_t id = 0) const; - size_t get_param_value_count(const char *key) const; - - bool is_multipart_form_data() const; - - bool has_file(const char *key) const; - MultipartFormData get_file_value(const char *key) const; - - // private members... - size_t authorization_count_ = 0; -}; - -struct Response { - std::string version; - int status = -1; - std::string reason; - Headers headers; - std::string body; - - bool has_header(const char *key) const; - std::string get_header_value(const char *key, size_t id = 0) const; - template - T get_header_value(const char *key, size_t id = 0) const; - size_t get_header_value_count(const char *key) const; - void set_header(const char *key, const char *val); - void set_header(const char *key, const std::string &val); - - void set_redirect(const char *url, int status = 302); - void set_redirect(const std::string &url, int status = 302); - void set_content(const char *s, size_t n, const char *content_type); - void set_content(const std::string &s, const char *content_type); - - void set_content_provider( - size_t length, const char *content_type, ContentProvider provider, - const std::function &resource_releaser = nullptr); - - void set_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser = nullptr); - - void set_chunked_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser = nullptr); - - Response() = default; - Response(const Response &) = default; - Response &operator=(const Response &) = default; - Response(Response &&) = default; - Response &operator=(Response &&) = default; - ~Response() { - if (content_provider_resource_releaser_) { - content_provider_resource_releaser_(); - } - } - - // private members... - size_t content_length_ = 0; - ContentProvider content_provider_; - std::function content_provider_resource_releaser_; - bool is_chunked_content_provider = false; -}; - -class Stream { -public: - virtual ~Stream() = default; - - virtual bool is_readable() const = 0; - virtual bool is_writable() const = 0; - - virtual ssize_t read(char *ptr, size_t size) = 0; - virtual ssize_t write(const char *ptr, size_t size) = 0; - virtual void get_remote_ip_and_port(std::string &ip, int &port) const = 0; - virtual socket_t socket() const = 0; - - template - ssize_t write_format(const char *fmt, const Args &... args); - ssize_t write(const char *ptr); - ssize_t write(const std::string &s); -}; - -class TaskQueue { -public: - TaskQueue() = default; - virtual ~TaskQueue() = default; - - virtual void enqueue(std::function fn) = 0; - virtual void shutdown() = 0; - - virtual void on_idle(){}; -}; - -class ThreadPool : public TaskQueue { -public: - explicit ThreadPool(size_t n) : shutdown_(false) { - while (n) { - threads_.emplace_back(worker(*this)); - n--; - } - } - - ThreadPool(const ThreadPool &) = delete; - ~ThreadPool() override = default; - - void enqueue(std::function fn) override { - std::unique_lock lock(mutex_); - jobs_.push_back(std::move(fn)); - cond_.notify_one(); - } - - void shutdown() override { - // Stop all worker threads... - { - std::unique_lock lock(mutex_); - shutdown_ = true; - } - - cond_.notify_all(); - - // Join... - for (auto &t : threads_) { - t.join(); - } - } - -private: - struct worker { - explicit worker(ThreadPool &pool) : pool_(pool) {} - - void operator()() { - for (;;) { - std::function fn; - { - std::unique_lock lock(pool_.mutex_); - - pool_.cond_.wait( - lock, [&] { return !pool_.jobs_.empty() || pool_.shutdown_; }); - - if (pool_.shutdown_ && pool_.jobs_.empty()) { break; } - - fn = pool_.jobs_.front(); - pool_.jobs_.pop_front(); - } - - assert(true == static_cast(fn)); - fn(); - } - } - - ThreadPool &pool_; - }; - friend struct worker; - - std::vector threads_; - std::list> jobs_; - - bool shutdown_; - - std::condition_variable cond_; - std::mutex mutex_; -}; - -using Logger = std::function; - -using SocketOptions = std::function; - -inline void default_socket_options(socket_t sock) { - int yes = 1; -#ifdef _WIN32 - setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast(&yes), - sizeof(yes)); - setsockopt(sock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, - reinterpret_cast(&yes), sizeof(yes)); -#else -#ifdef SO_REUSEPORT - setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, reinterpret_cast(&yes), - sizeof(yes)); -#else - setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast(&yes), - sizeof(yes)); -#endif -#endif -} - -class Server { -public: - using Handler = std::function; - using HandlerWithContentReader = std::function; - using Expect100ContinueHandler = - std::function; - - Server(); - - virtual ~Server(); - - virtual bool is_valid() const; - - Server &Get(const char *pattern, Handler handler); - Server &Post(const char *pattern, Handler handler); - Server &Post(const char *pattern, HandlerWithContentReader handler); - Server &Put(const char *pattern, Handler handler); - Server &Put(const char *pattern, HandlerWithContentReader handler); - Server &Patch(const char *pattern, Handler handler); - Server &Patch(const char *pattern, HandlerWithContentReader handler); - Server &Delete(const char *pattern, Handler handler); - Server &Delete(const char *pattern, HandlerWithContentReader handler); - Server &Options(const char *pattern, Handler handler); - - bool set_base_dir(const char *dir, const char *mount_point = nullptr); - bool set_mount_point(const char *mount_point, const char *dir, - Headers headers = Headers()); - bool remove_mount_point(const char *mount_point); - void set_file_extension_and_mimetype_mapping(const char *ext, - const char *mime); - void set_file_request_handler(Handler handler); - - void set_error_handler(Handler handler); - void set_expect_100_continue_handler(Expect100ContinueHandler handler); - void set_logger(Logger logger); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_keep_alive_max_count(size_t count); - void set_keep_alive_timeout(time_t sec); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - void set_idle_interval(time_t sec, time_t usec = 0); - - void set_payload_max_length(size_t length); - - bool bind_to_port(const char *host, int port, int socket_flags = 0); - int bind_to_any_port(const char *host, int socket_flags = 0); - bool listen_after_bind(); - - bool listen(const char *host, int port, int socket_flags = 0); - - bool is_running() const; - void stop(); - - std::function new_task_queue; - -protected: - bool process_request(Stream &strm, bool close_connection, - bool &connection_closed, - const std::function &setup_request); - - std::atomic svr_sock_; - size_t keep_alive_max_count_ = CPPHTTPLIB_KEEPALIVE_MAX_COUNT; - time_t keep_alive_timeout_sec_ = CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND; - time_t read_timeout_sec_ = CPPHTTPLIB_READ_TIMEOUT_SECOND; - time_t read_timeout_usec_ = CPPHTTPLIB_READ_TIMEOUT_USECOND; - time_t write_timeout_sec_ = CPPHTTPLIB_WRITE_TIMEOUT_SECOND; - time_t write_timeout_usec_ = CPPHTTPLIB_WRITE_TIMEOUT_USECOND; - time_t idle_interval_sec_ = CPPHTTPLIB_IDLE_INTERVAL_SECOND; - time_t idle_interval_usec_ = CPPHTTPLIB_IDLE_INTERVAL_USECOND; - size_t payload_max_length_ = CPPHTTPLIB_PAYLOAD_MAX_LENGTH; - -private: - using Handlers = std::vector>; - using HandlersForContentReader = - std::vector>; - - socket_t create_server_socket(const char *host, int port, int socket_flags, - SocketOptions socket_options) const; - int bind_internal(const char *host, int port, int socket_flags); - bool listen_internal(); - - bool routing(Request &req, Response &res, Stream &strm); - bool handle_file_request(Request &req, Response &res, bool head = false); - bool dispatch_request(Request &req, Response &res, const Handlers &handlers); - bool - dispatch_request_for_content_reader(Request &req, Response &res, - ContentReader content_reader, - const HandlersForContentReader &handlers); - - bool parse_request_line(const char *s, Request &req); - void apply_ranges(const Request &req, Response &res, - std::string &content_type, std::string &boundary); - bool write_response(Stream &strm, bool close_connection, const Request &req, - Response &res); - bool write_response_with_content(Stream &strm, bool close_connection, - const Request &req, Response &res); - bool write_response_core(Stream &strm, bool close_connection, - const Request &req, Response &res, - bool need_apply_ranges); - bool write_content_with_provider(Stream &strm, const Request &req, - Response &res, const std::string &boundary, - const std::string &content_type); - bool read_content(Stream &strm, Request &req, Response &res); - bool - read_content_with_content_receiver(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader multipart_header, - ContentReceiver multipart_receiver); - bool read_content_core(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader mulitpart_header, - ContentReceiver multipart_receiver); - - virtual bool process_and_close_socket(socket_t sock); - - struct MountPointEntry { - std::string mount_point; - std::string base_dir; - Headers headers; - }; - std::vector base_dirs_; - - std::atomic is_running_; - std::map file_extension_and_mimetype_map_; - Handler file_request_handler_; - Handlers get_handlers_; - Handlers post_handlers_; - HandlersForContentReader post_handlers_for_content_reader_; - Handlers put_handlers_; - HandlersForContentReader put_handlers_for_content_reader_; - Handlers patch_handlers_; - HandlersForContentReader patch_handlers_for_content_reader_; - Handlers delete_handlers_; - HandlersForContentReader delete_handlers_for_content_reader_; - Handlers options_handlers_; - Handler error_handler_; - Logger logger_; - Expect100ContinueHandler expect_100_continue_handler_; - - bool tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY; - SocketOptions socket_options_ = default_socket_options; -}; - -enum Error { - Success = 0, - Unknown, - Connection, - BindIPAddress, - Read, - Write, - ExceedRedirectCount, - Canceled, - SSLConnection, - SSLLoadingCerts, - SSLServerVerification, - UnsupportedMultipartBoundaryChars -}; - -class Result { -public: - Result(std::unique_ptr res, Error err) - : res_(std::move(res)), err_(err) {} - operator bool() const { return res_ != nullptr; } - bool operator==(std::nullptr_t) const { return res_ == nullptr; } - bool operator!=(std::nullptr_t) const { return res_ != nullptr; } - const Response &value() const { return *res_; } - Response &value() { return *res_; } - const Response &operator*() const { return *res_; } - Response &operator*() { return *res_; } - const Response *operator->() const { return res_.get(); } - Response *operator->() { return res_.get(); } - Error error() const { return err_; } - -private: - std::unique_ptr res_; - Error err_; -}; - -class ClientImpl { -public: - explicit ClientImpl(const std::string &host); - - explicit ClientImpl(const std::string &host, int port); - - explicit ClientImpl(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - virtual ~ClientImpl(); - - virtual bool is_valid() const; - - Result Get(const char *path); - Result Get(const char *path, const Headers &headers); - Result Get(const char *path, Progress progress); - Result Get(const char *path, const Headers &headers, Progress progress); - Result Get(const char *path, ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver); - Result Get(const char *path, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, ContentReceiver content_receiver, - Progress progress); - - Result Head(const char *path); - Result Head(const char *path, const Headers &headers); - - Result Post(const char *path); - Result Post(const char *path, const std::string &body, - const char *content_type); - Result Post(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Post(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Params ¶ms); - Result Post(const char *path, const Headers &headers, const Params ¶ms); - Result Post(const char *path, const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, const std::string &boundary); - - Result Put(const char *path); - Result Put(const char *path, const std::string &body, - const char *content_type); - Result Put(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Put(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Params ¶ms); - Result Put(const char *path, const Headers &headers, const Params ¶ms); - - Result Patch(const char *path, const std::string &body, - const char *content_type); - Result Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - Result Patch(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Patch(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - - Result Delete(const char *path); - Result Delete(const char *path, const std::string &body, - const char *content_type); - Result Delete(const char *path, const Headers &headers); - Result Delete(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - - Result Options(const char *path); - Result Options(const char *path, const Headers &headers); - - bool send(const Request &req, Response &res); - - size_t is_socket_open() const; - - void stop(); - - void set_default_headers(Headers headers); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_connection_timeout(time_t sec, time_t usec = 0); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - - void set_basic_auth(const char *username, const char *password); - void set_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_digest_auth(const char *username, const char *password); -#endif - - void set_keep_alive(bool on); - void set_follow_location(bool on); - - void set_compress(bool on); - - void set_decompress(bool on); - - void set_interface(const char *intf); - - void set_proxy(const char *host, int port); - void set_proxy_basic_auth(const char *username, const char *password); - void set_proxy_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_proxy_digest_auth(const char *username, const char *password); -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void enable_server_certificate_verification(bool enabled); -#endif - - void set_logger(Logger logger); - -protected: - struct Socket { - socket_t sock = INVALID_SOCKET; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - SSL *ssl = nullptr; -#endif - - bool is_open() const { return sock != INVALID_SOCKET; } - }; - - virtual bool create_and_connect_socket(Socket &socket); - virtual void close_socket(Socket &socket, bool process_socket_ret); - - bool process_request(Stream &strm, const Request &req, Response &res, - bool close_connection); - - Error get_last_error() const; - - void copy_settings(const ClientImpl &rhs); - - // Error state - mutable Error error_ = Error::Success; - - // Socket endoint information - const std::string host_; - const int port_; - const std::string host_and_port_; - - // Current open socket - Socket socket_; - mutable std::mutex socket_mutex_; - std::recursive_mutex request_mutex_; - - // Default headers - Headers default_headers_; - - // Settings - std::string client_cert_path_; - std::string client_key_path_; - - time_t connection_timeout_sec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND; - time_t connection_timeout_usec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND; - time_t read_timeout_sec_ = CPPHTTPLIB_READ_TIMEOUT_SECOND; - time_t read_timeout_usec_ = CPPHTTPLIB_READ_TIMEOUT_USECOND; - time_t write_timeout_sec_ = CPPHTTPLIB_WRITE_TIMEOUT_SECOND; - time_t write_timeout_usec_ = CPPHTTPLIB_WRITE_TIMEOUT_USECOND; - - std::string basic_auth_username_; - std::string basic_auth_password_; - std::string bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - std::string digest_auth_username_; - std::string digest_auth_password_; -#endif - - bool keep_alive_ = false; - bool follow_location_ = false; - - bool tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY; - SocketOptions socket_options_ = nullptr; - - bool compress_ = false; - bool decompress_ = true; - - std::string interface_; - - std::string proxy_host_; - int proxy_port_ = -1; - - std::string proxy_basic_auth_username_; - std::string proxy_basic_auth_password_; - std::string proxy_bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - std::string proxy_digest_auth_username_; - std::string proxy_digest_auth_password_; -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - bool server_certificate_verification_ = true; -#endif - - Logger logger_; - -private: - socket_t create_client_socket() const; - bool read_response_line(Stream &strm, Response &res); - bool write_request(Stream &strm, const Request &req, bool close_connection); - bool redirect(const Request &req, Response &res); - bool handle_request(Stream &strm, const Request &req, Response &res, - bool close_connection); - void stop_core(); - std::unique_ptr send_with_content_provider( - const char *method, const char *path, const Headers &headers, - const std::string &body, size_t content_length, - ContentProvider content_provider, const char *content_type); - - virtual bool process_socket(Socket &socket, - std::function callback); - virtual bool is_ssl() const; -}; - -class Client { -public: - // Universal interface - explicit Client(const char *scheme_host_port); - - explicit Client(const char *scheme_host_port, - const std::string &client_cert_path, - const std::string &client_key_path); - - // HTTP only interface - explicit Client(const std::string &host, int port); - - explicit Client(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - ~Client(); - - bool is_valid() const; - - Result Get(const char *path); - Result Get(const char *path, const Headers &headers); - Result Get(const char *path, Progress progress); - Result Get(const char *path, const Headers &headers, Progress progress); - Result Get(const char *path, ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver); - Result Get(const char *path, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress); - - Result Head(const char *path); - Result Head(const char *path, const Headers &headers); - - Result Post(const char *path); - Result Post(const char *path, const std::string &body, - const char *content_type); - Result Post(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Post(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Params ¶ms); - Result Post(const char *path, const Headers &headers, const Params ¶ms); - Result Post(const char *path, const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, const std::string &boundary); - Result Put(const char *path); - Result Put(const char *path, const std::string &body, - const char *content_type); - Result Put(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Put(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Params ¶ms); - Result Put(const char *path, const Headers &headers, const Params ¶ms); - Result Patch(const char *path, const std::string &body, - const char *content_type); - Result Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - Result Patch(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Patch(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - - Result Delete(const char *path); - Result Delete(const char *path, const std::string &body, - const char *content_type); - Result Delete(const char *path, const Headers &headers); - Result Delete(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - - Result Options(const char *path); - Result Options(const char *path, const Headers &headers); - - bool send(const Request &req, Response &res); - - size_t is_socket_open() const; - - void stop(); - - void set_default_headers(Headers headers); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_connection_timeout(time_t sec, time_t usec = 0); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - - void set_basic_auth(const char *username, const char *password); - void set_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_digest_auth(const char *username, const char *password); -#endif - - void set_keep_alive(bool on); - void set_follow_location(bool on); - - void set_compress(bool on); - - void set_decompress(bool on); - - void set_interface(const char *intf); - - void set_proxy(const char *host, int port); - void set_proxy_basic_auth(const char *username, const char *password); - void set_proxy_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_proxy_digest_auth(const char *username, const char *password); -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void enable_server_certificate_verification(bool enabled); -#endif - - void set_logger(Logger logger); - - // SSL -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path = nullptr); - - void set_ca_cert_store(X509_STORE *ca_cert_store); - - long get_openssl_verify_result() const; - - SSL_CTX *ssl_context() const; -#endif - -private: - std::unique_ptr cli_; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - bool is_ssl_ = false; -#endif -}; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -class SSLServer : public Server { -public: - SSLServer(const char *cert_path, const char *private_key_path, - const char *client_ca_cert_file_path = nullptr, - const char *client_ca_cert_dir_path = nullptr); - - SSLServer(X509 *cert, EVP_PKEY *private_key, - X509_STORE *client_ca_cert_store = nullptr); - - ~SSLServer() override; - - bool is_valid() const override; - -private: - bool process_and_close_socket(socket_t sock) override; - - SSL_CTX *ctx_; - std::mutex ctx_mutex_; -}; - -class SSLClient : public ClientImpl { -public: - explicit SSLClient(const std::string &host); - - explicit SSLClient(const std::string &host, int port); - - explicit SSLClient(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - explicit SSLClient(const std::string &host, int port, X509 *client_cert, - EVP_PKEY *client_key); - - ~SSLClient() override; - - bool is_valid() const override; - - void set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path = nullptr); - - void set_ca_cert_store(X509_STORE *ca_cert_store); - - long get_openssl_verify_result() const; - - SSL_CTX *ssl_context() const; - -private: - bool create_and_connect_socket(Socket &socket) override; - void close_socket(Socket &socket, bool process_socket_ret) override; - - bool process_socket(Socket &socket, - std::function callback) override; - bool is_ssl() const override; - - bool connect_with_proxy(Socket &sock, Response &res, bool &success); - bool initialize_ssl(Socket &socket); - - bool load_certs(); - - bool verify_host(X509 *server_cert) const; - bool verify_host_with_subject_alt_name(X509 *server_cert) const; - bool verify_host_with_common_name(X509 *server_cert) const; - bool check_host_name(const char *pattern, size_t pattern_len) const; - - SSL_CTX *ctx_; - std::mutex ctx_mutex_; - std::once_flag initialize_cert_; - - std::vector host_components_; - - std::string ca_cert_file_path_; - std::string ca_cert_dir_path_; - long verify_result_ = 0; - - friend class ClientImpl; -}; -#endif - -// ---------------------------------------------------------------------------- - -/* - * Implementation - */ - -namespace detail { - -inline bool is_hex(char c, int &v) { - if (0x20 <= c && isdigit(c)) { - v = c - '0'; - return true; - } else if ('A' <= c && c <= 'F') { - v = c - 'A' + 10; - return true; - } else if ('a' <= c && c <= 'f') { - v = c - 'a' + 10; - return true; - } - return false; -} - -inline bool from_hex_to_i(const std::string &s, size_t i, size_t cnt, - int &val) { - if (i >= s.size()) { return false; } - - val = 0; - for (; cnt; i++, cnt--) { - if (!s[i]) { return false; } - int v = 0; - if (is_hex(s[i], v)) { - val = val * 16 + v; - } else { - return false; - } - } - return true; -} - -inline std::string from_i_to_hex(size_t n) { - const char *charset = "0123456789abcdef"; - std::string ret; - do { - ret = charset[n & 15] + ret; - n >>= 4; - } while (n > 0); - return ret; -} - -inline bool start_with(const std::string &a, const std::string &b) { - if (a.size() < b.size()) { return false; } - for (size_t i = 0; i < b.size(); i++) { - if (::tolower(a[i]) != ::tolower(b[i])) { return false; } - } - return true; -} - -inline size_t to_utf8(int code, char *buff) { - if (code < 0x0080) { - buff[0] = (code & 0x7F); - return 1; - } else if (code < 0x0800) { - buff[0] = static_cast(0xC0 | ((code >> 6) & 0x1F)); - buff[1] = static_cast(0x80 | (code & 0x3F)); - return 2; - } else if (code < 0xD800) { - buff[0] = static_cast(0xE0 | ((code >> 12) & 0xF)); - buff[1] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[2] = static_cast(0x80 | (code & 0x3F)); - return 3; - } else if (code < 0xE000) { // D800 - DFFF is invalid... - return 0; - } else if (code < 0x10000) { - buff[0] = static_cast(0xE0 | ((code >> 12) & 0xF)); - buff[1] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[2] = static_cast(0x80 | (code & 0x3F)); - return 3; - } else if (code < 0x110000) { - buff[0] = static_cast(0xF0 | ((code >> 18) & 0x7)); - buff[1] = static_cast(0x80 | ((code >> 12) & 0x3F)); - buff[2] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[3] = static_cast(0x80 | (code & 0x3F)); - return 4; - } - - // NOTREACHED - return 0; -} - -// NOTE: This code came up with the following stackoverflow post: -// https://stackoverflow.com/questions/180947/base64-decode-snippet-in-c -inline std::string base64_encode(const std::string &in) { - static const auto lookup = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - - std::string out; - out.reserve(in.size()); - - int val = 0; - int valb = -6; - - for (auto c : in) { - val = (val << 8) + static_cast(c); - valb += 8; - while (valb >= 0) { - out.push_back(lookup[(val >> valb) & 0x3F]); - valb -= 6; - } - } - - if (valb > -6) { out.push_back(lookup[((val << 8) >> (valb + 8)) & 0x3F]); } - - while (out.size() % 4) { - out.push_back('='); - } - - return out; -} - -inline bool is_file(const std::string &path) { - struct stat st; - return stat(path.c_str(), &st) >= 0 && S_ISREG(st.st_mode); -} - -inline bool is_dir(const std::string &path) { - struct stat st; - return stat(path.c_str(), &st) >= 0 && S_ISDIR(st.st_mode); -} - -inline bool is_valid_path(const std::string &path) { - size_t level = 0; - size_t i = 0; - - // Skip slash - while (i < path.size() && path[i] == '/') { - i++; - } - - while (i < path.size()) { - // Read component - auto beg = i; - while (i < path.size() && path[i] != '/') { - i++; - } - - auto len = i - beg; - assert(len > 0); - - if (!path.compare(beg, len, ".")) { - ; - } else if (!path.compare(beg, len, "..")) { - if (level == 0) { return false; } - level--; - } else { - level++; - } - - // Skip slash - while (i < path.size() && path[i] == '/') { - i++; - } - } - - return true; -} - -inline std::string encode_url(const std::string &s) { - std::string result; - - for (size_t i = 0; s[i]; i++) { - switch (s[i]) { - case ' ': result += "%20"; break; - case '+': result += "%2B"; break; - case '\r': result += "%0D"; break; - case '\n': result += "%0A"; break; - case '\'': result += "%27"; break; - case ',': result += "%2C"; break; - // case ':': result += "%3A"; break; // ok? probably... - case ';': result += "%3B"; break; - default: - auto c = static_cast(s[i]); - if (c >= 0x80) { - result += '%'; - char hex[4]; - auto len = snprintf(hex, sizeof(hex) - 1, "%02X", c); - assert(len == 2); - result.append(hex, static_cast(len)); - } else { - result += s[i]; - } - break; - } - } - - return result; -} - -inline std::string decode_url(const std::string &s, - bool convert_plus_to_space) { - std::string result; - - for (size_t i = 0; i < s.size(); i++) { - if (s[i] == '%' && i + 1 < s.size()) { - if (s[i + 1] == 'u') { - int val = 0; - if (from_hex_to_i(s, i + 2, 4, val)) { - // 4 digits Unicode codes - char buff[4]; - size_t len = to_utf8(val, buff); - if (len > 0) { result.append(buff, len); } - i += 5; // 'u0000' - } else { - result += s[i]; - } - } else { - int val = 0; - if (from_hex_to_i(s, i + 1, 2, val)) { - // 2 digits hex codes - result += static_cast(val); - i += 2; // '00' - } else { - result += s[i]; - } - } - } else if (convert_plus_to_space && s[i] == '+') { - result += ' '; - } else { - result += s[i]; - } - } - - return result; -} - -inline void read_file(const std::string &path, std::string &out) { - std::ifstream fs(path, std::ios_base::binary); - fs.seekg(0, std::ios_base::end); - auto size = fs.tellg(); - fs.seekg(0); - out.resize(static_cast(size)); - fs.read(&out[0], static_cast(size)); -} - -inline std::string file_extension(const std::string &path) { - std::smatch m; - static auto re = std::regex("\\.([a-zA-Z0-9]+)$"); - if (std::regex_search(path, m, re)) { return m[1].str(); } - return std::string(); -} - -inline bool is_space_or_tab(char c) { return c == ' ' || c == '\t'; } - -inline std::pair trim(const char *b, const char *e, size_t left, - size_t right) { - while (b + left < e && is_space_or_tab(b[left])) { - left++; - } - while (right > 0 && is_space_or_tab(b[right - 1])) { - right--; - } - return std::make_pair(left, right); -} - -inline std::string trim_copy(const std::string &s) { - auto r = trim(s.data(), s.data() + s.size(), 0, s.size()); - return s.substr(r.first, r.second - r.first); -} - -template void split(const char *b, const char *e, char d, Fn fn) { - size_t i = 0; - size_t beg = 0; - - while (e ? (b + i < e) : (b[i] != '\0')) { - if (b[i] == d) { - auto r = trim(b, e, beg, i); - if (r.first < r.second) { fn(&b[r.first], &b[r.second]); } - beg = i + 1; - } - i++; - } - - if (i) { - auto r = trim(b, e, beg, i); - if (r.first < r.second) { fn(&b[r.first], &b[r.second]); } - } -} - -// NOTE: until the read size reaches `fixed_buffer_size`, use `fixed_buffer` -// to store data. The call can set memory on stack for performance. -class stream_line_reader { -public: - stream_line_reader(Stream &strm, char *fixed_buffer, size_t fixed_buffer_size) - : strm_(strm), fixed_buffer_(fixed_buffer), - fixed_buffer_size_(fixed_buffer_size) {} - - const char *ptr() const { - if (glowable_buffer_.empty()) { - return fixed_buffer_; - } else { - return glowable_buffer_.data(); - } - } - - size_t size() const { - if (glowable_buffer_.empty()) { - return fixed_buffer_used_size_; - } else { - return glowable_buffer_.size(); - } - } - - bool end_with_crlf() const { - auto end = ptr() + size(); - return size() >= 2 && end[-2] == '\r' && end[-1] == '\n'; - } - - bool getline() { - fixed_buffer_used_size_ = 0; - glowable_buffer_.clear(); - - for (size_t i = 0;; i++) { - char byte; - auto n = strm_.read(&byte, 1); - - if (n < 0) { - return false; - } else if (n == 0) { - if (i == 0) { - return false; - } else { - break; - } - } - - append(byte); - - if (byte == '\n') { break; } - } - - return true; - } - -private: - void append(char c) { - if (fixed_buffer_used_size_ < fixed_buffer_size_ - 1) { - fixed_buffer_[fixed_buffer_used_size_++] = c; - fixed_buffer_[fixed_buffer_used_size_] = '\0'; - } else { - if (glowable_buffer_.empty()) { - assert(fixed_buffer_[fixed_buffer_used_size_] == '\0'); - glowable_buffer_.assign(fixed_buffer_, fixed_buffer_used_size_); - } - glowable_buffer_ += c; - } - } - - Stream &strm_; - char *fixed_buffer_; - const size_t fixed_buffer_size_; - size_t fixed_buffer_used_size_ = 0; - std::string glowable_buffer_; -}; - -inline int close_socket(socket_t sock) { -#ifdef _WIN32 - return closesocket(sock); -#else - return close(sock); -#endif -} - -template inline ssize_t handle_EINTR(T fn) { - ssize_t res = false; - while (true) { - res = fn(); - if (res < 0 && errno == EINTR) { continue; } - break; - } - return res; -} - -inline ssize_t select_read(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLIN; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return 1; } -#endif - - fd_set fds; - FD_ZERO(&fds); - FD_SET(sock, &fds); - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - return handle_EINTR([&]() { - return select(static_cast(sock + 1), &fds, nullptr, nullptr, &tv); - }); -#endif -} - -inline ssize_t select_write(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLOUT; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return 1; } -#endif - - fd_set fds; - FD_ZERO(&fds); - FD_SET(sock, &fds); - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - return handle_EINTR([&]() { - return select(static_cast(sock + 1), nullptr, &fds, nullptr, &tv); - }); -#endif -} - -inline bool wait_until_socket_is_ready(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLIN | POLLOUT; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - auto poll_res = handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); - - if (poll_res > 0 && pfd_read.revents & (POLLIN | POLLOUT)) { - int error = 0; - socklen_t len = sizeof(error); - auto res = getsockopt(sock, SOL_SOCKET, SO_ERROR, - reinterpret_cast(&error), &len); - return res >= 0 && !error; - } - return false; -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return false; } -#endif - - fd_set fdsr; - FD_ZERO(&fdsr); - FD_SET(sock, &fdsr); - - auto fdsw = fdsr; - auto fdse = fdsr; - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - auto ret = handle_EINTR([&]() { - return select(static_cast(sock + 1), &fdsr, &fdsw, &fdse, &tv); - }); - - if (ret > 0 && (FD_ISSET(sock, &fdsr) || FD_ISSET(sock, &fdsw))) { - int error = 0; - socklen_t len = sizeof(error); - return getsockopt(sock, SOL_SOCKET, SO_ERROR, - reinterpret_cast(&error), &len) >= 0 && - !error; - } - return false; -#endif -} - -class SocketStream : public Stream { -public: - SocketStream(socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec, - time_t write_timeout_sec, time_t write_timeout_usec); - ~SocketStream() override; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - -private: - socket_t sock_; - time_t read_timeout_sec_; - time_t read_timeout_usec_; - time_t write_timeout_sec_; - time_t write_timeout_usec_; -}; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -class SSLSocketStream : public Stream { -public: - SSLSocketStream(socket_t sock, SSL *ssl, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec); - ~SSLSocketStream() override; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - -private: - socket_t sock_; - SSL *ssl_; - time_t read_timeout_sec_; - time_t read_timeout_usec_; - time_t write_timeout_sec_; - time_t write_timeout_usec_; -}; -#endif - -class BufferStream : public Stream { -public: - BufferStream() = default; - ~BufferStream() override = default; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - - const std::string &get_buffer() const; - -private: - std::string buffer; - size_t position = 0; -}; - -inline bool keep_alive(socket_t sock, time_t keep_alive_timeout_sec) { - using namespace std::chrono; - auto start = steady_clock::now(); - while (true) { - auto val = select_read(sock, 0, 10000); - if (val < 0) { - return false; - } else if (val == 0) { - auto current = steady_clock::now(); - auto duration = duration_cast(current - start); - auto timeout = keep_alive_timeout_sec * 1000; - if (duration.count() > timeout) { return false; } - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } else { - return true; - } - } -} - -template -inline bool -process_server_socket_core(socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, T callback) { - assert(keep_alive_max_count > 0); - auto ret = false; - auto count = keep_alive_max_count; - while (count > 0 && keep_alive(sock, keep_alive_timeout_sec)) { - auto close_connection = count == 1; - auto connection_closed = false; - ret = callback(close_connection, connection_closed); - if (!ret || connection_closed) { break; } - count--; - } - return ret; -} - -template -inline bool -process_server_socket(socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - return process_server_socket_core( - sock, keep_alive_max_count, keep_alive_timeout_sec, - [&](bool close_connection, bool &connection_closed) { - SocketStream strm(sock, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm, close_connection, connection_closed); - }); -} - -template -inline bool process_client_socket(socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - SocketStream strm(sock, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm); -} - -inline int shutdown_socket(socket_t sock) { -#ifdef _WIN32 - return shutdown(sock, SD_BOTH); -#else - return shutdown(sock, SHUT_RDWR); -#endif -} - -template -socket_t create_socket(const char *host, int port, int socket_flags, - bool tcp_nodelay, SocketOptions socket_options, - BindOrConnect bind_or_connect) { - // Get address info - struct addrinfo hints; - struct addrinfo *result; - - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = socket_flags; - hints.ai_protocol = 0; - - auto service = std::to_string(port); - - if (getaddrinfo(host, service.c_str(), &hints, &result)) { -#ifdef __linux__ - res_init(); -#endif - return INVALID_SOCKET; - } - - for (auto rp = result; rp; rp = rp->ai_next) { - // Create a socket -#ifdef _WIN32 - auto sock = WSASocketW(rp->ai_family, rp->ai_socktype, rp->ai_protocol, - nullptr, 0, WSA_FLAG_NO_HANDLE_INHERIT); - /** - * Since the WSA_FLAG_NO_HANDLE_INHERIT is only supported on Windows 7 SP1 - * and above the socket creation fails on older Windows Systems. - * - * Let's try to create a socket the old way in this case. - * - * Reference: - * https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketa - * - * WSA_FLAG_NO_HANDLE_INHERIT: - * This flag is supported on Windows 7 with SP1, Windows Server 2008 R2 with - * SP1, and later - * - */ - if (sock == INVALID_SOCKET) { - sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); - } -#else - auto sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); -#endif - if (sock == INVALID_SOCKET) { continue; } - -#ifndef _WIN32 - if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { continue; } -#endif - - if (tcp_nodelay) { - int yes = 1; - setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&yes), - sizeof(yes)); - } - - if (socket_options) { socket_options(sock); } - - if (rp->ai_family == AF_INET6) { - int no = 0; - setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, reinterpret_cast(&no), - sizeof(no)); - } - - // bind or connect - if (bind_or_connect(sock, *rp)) { - freeaddrinfo(result); - return sock; - } - - close_socket(sock); - } - - freeaddrinfo(result); - return INVALID_SOCKET; -} - -inline void set_nonblocking(socket_t sock, bool nonblocking) { -#ifdef _WIN32 - auto flags = nonblocking ? 1UL : 0UL; - ioctlsocket(sock, FIONBIO, &flags); -#else - auto flags = fcntl(sock, F_GETFL, 0); - fcntl(sock, F_SETFL, - nonblocking ? (flags | O_NONBLOCK) : (flags & (~O_NONBLOCK))); -#endif -} - -inline bool is_connection_error() { -#ifdef _WIN32 - return WSAGetLastError() != WSAEWOULDBLOCK; -#else - return errno != EINPROGRESS; -#endif -} - -inline bool bind_ip_address(socket_t sock, const char *host) { - struct addrinfo hints; - struct addrinfo *result; - - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_protocol = 0; - - if (getaddrinfo(host, "0", &hints, &result)) { return false; } - - auto ret = false; - for (auto rp = result; rp; rp = rp->ai_next) { - const auto &ai = *rp; - if (!::bind(sock, ai.ai_addr, static_cast(ai.ai_addrlen))) { - ret = true; - break; - } - } - - freeaddrinfo(result); - return ret; -} - -#if !defined _WIN32 && !defined ANDROID -#define USE_IF2IP -#endif - -#ifdef USE_IF2IP -inline std::string if2ip(const std::string &ifn) { - struct ifaddrs *ifap; - getifaddrs(&ifap); - for (auto ifa = ifap; ifa; ifa = ifa->ifa_next) { - if (ifa->ifa_addr && ifn == ifa->ifa_name) { - if (ifa->ifa_addr->sa_family == AF_INET) { - auto sa = reinterpret_cast(ifa->ifa_addr); - char buf[INET_ADDRSTRLEN]; - if (inet_ntop(AF_INET, &sa->sin_addr, buf, INET_ADDRSTRLEN)) { - freeifaddrs(ifap); - return std::string(buf, INET_ADDRSTRLEN); - } - } - } - } - freeifaddrs(ifap); - return std::string(); -} -#endif - -inline socket_t create_client_socket(const char *host, int port, - bool tcp_nodelay, - SocketOptions socket_options, - time_t timeout_sec, time_t timeout_usec, - const std::string &intf, Error &error) { - auto sock = create_socket( - host, port, 0, tcp_nodelay, std::move(socket_options), - [&](socket_t sock, struct addrinfo &ai) -> bool { - if (!intf.empty()) { -#ifdef USE_IF2IP - auto ip = if2ip(intf); - if (ip.empty()) { ip = intf; } - if (!bind_ip_address(sock, ip.c_str())) { - error = Error::BindIPAddress; - return false; - } -#endif - } - - set_nonblocking(sock, true); - - auto ret = - ::connect(sock, ai.ai_addr, static_cast(ai.ai_addrlen)); - - if (ret < 0) { - if (is_connection_error() || - !wait_until_socket_is_ready(sock, timeout_sec, timeout_usec)) { - close_socket(sock); - error = Error::Connection; - return false; - } - } - - set_nonblocking(sock, false); - error = Error::Success; - return true; - }); - - if (sock != INVALID_SOCKET) { - error = Error::Success; - } else { - if (error == Error::Success) { error = Error::Connection; } - } - - return sock; -} - -inline void get_remote_ip_and_port(const struct sockaddr_storage &addr, - socklen_t addr_len, std::string &ip, - int &port) { - if (addr.ss_family == AF_INET) { - port = ntohs(reinterpret_cast(&addr)->sin_port); - } else if (addr.ss_family == AF_INET6) { - port = - ntohs(reinterpret_cast(&addr)->sin6_port); - } - - std::array ipstr{}; - if (!getnameinfo(reinterpret_cast(&addr), addr_len, - ipstr.data(), static_cast(ipstr.size()), nullptr, - 0, NI_NUMERICHOST)) { - ip = ipstr.data(); - } -} - -inline void get_remote_ip_and_port(socket_t sock, std::string &ip, int &port) { - struct sockaddr_storage addr; - socklen_t addr_len = sizeof(addr); - - if (!getpeername(sock, reinterpret_cast(&addr), - &addr_len)) { - get_remote_ip_and_port(addr, addr_len, ip, port); - } -} - -inline const char * -find_content_type(const std::string &path, - const std::map &user_data) { - auto ext = file_extension(path); - - auto it = user_data.find(ext); - if (it != user_data.end()) { return it->second.c_str(); } - - if (ext == "txt") { - return "text/plain"; - } else if (ext == "html" || ext == "htm") { - return "text/html"; - } else if (ext == "css") { - return "text/css"; - } else if (ext == "jpeg" || ext == "jpg") { - return "image/jpg"; - } else if (ext == "png") { - return "image/png"; - } else if (ext == "gif") { - return "image/gif"; - } else if (ext == "svg") { - return "image/svg+xml"; - } else if (ext == "ico") { - return "image/x-icon"; - } else if (ext == "json") { - return "application/json"; - } else if (ext == "pdf") { - return "application/pdf"; - } else if (ext == "js") { - return "application/javascript"; - } else if (ext == "wasm") { - return "application/wasm"; - } else if (ext == "xml") { - return "application/xml"; - } else if (ext == "xhtml") { - return "application/xhtml+xml"; - } - return nullptr; -} - -inline const char *status_message(int status) { - switch (status) { - case 100: return "Continue"; - case 101: return "Switching Protocol"; - case 102: return "Processing"; - case 103: return "Early Hints"; - case 200: return "OK"; - case 201: return "Created"; - case 202: return "Accepted"; - case 203: return "Non-Authoritative Information"; - case 204: return "No Content"; - case 205: return "Reset Content"; - case 206: return "Partial Content"; - case 207: return "Multi-Status"; - case 208: return "Already Reported"; - case 226: return "IM Used"; - case 300: return "Multiple Choice"; - case 301: return "Moved Permanently"; - case 302: return "Found"; - case 303: return "See Other"; - case 304: return "Not Modified"; - case 305: return "Use Proxy"; - case 306: return "unused"; - case 307: return "Temporary Redirect"; - case 308: return "Permanent Redirect"; - case 400: return "Bad Request"; - case 401: return "Unauthorized"; - case 402: return "Payment Required"; - case 403: return "Forbidden"; - case 404: return "Not Found"; - case 405: return "Method Not Allowed"; - case 406: return "Not Acceptable"; - case 407: return "Proxy Authentication Required"; - case 408: return "Request Timeout"; - case 409: return "Conflict"; - case 410: return "Gone"; - case 411: return "Length Required"; - case 412: return "Precondition Failed"; - case 413: return "Payload Too Large"; - case 414: return "URI Too Long"; - case 415: return "Unsupported Media Type"; - case 416: return "Range Not Satisfiable"; - case 417: return "Expectation Failed"; - case 418: return "I'm a teapot"; - case 421: return "Misdirected Request"; - case 422: return "Unprocessable Entity"; - case 423: return "Locked"; - case 424: return "Failed Dependency"; - case 425: return "Too Early"; - case 426: return "Upgrade Required"; - case 428: return "Precondition Required"; - case 429: return "Too Many Requests"; - case 431: return "Request Header Fields Too Large"; - case 451: return "Unavailable For Legal Reasons"; - case 501: return "Not Implemented"; - case 502: return "Bad Gateway"; - case 503: return "Service Unavailable"; - case 504: return "Gateway Timeout"; - case 505: return "HTTP Version Not Supported"; - case 506: return "Variant Also Negotiates"; - case 507: return "Insufficient Storage"; - case 508: return "Loop Detected"; - case 510: return "Not Extended"; - case 511: return "Network Authentication Required"; - - default: - case 500: return "Internal Server Error"; - } -} - -inline bool can_compress_content_type(const std::string &content_type) { - return (!content_type.find("text/") && content_type != "text/event-stream") || - content_type == "image/svg+xml" || - content_type == "application/javascript" || - content_type == "application/json" || - content_type == "application/xml" || - content_type == "application/xhtml+xml"; -} - -enum class EncodingType { None = 0, Gzip, Brotli }; - -inline EncodingType encoding_type(const Request &req, const Response &res) { - auto ret = - detail::can_compress_content_type(res.get_header_value("Content-Type")); - if (!ret) { return EncodingType::None; } - - const auto &s = req.get_header_value("Accept-Encoding"); - (void)(s); - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - // TODO: 'Accept-Encoding' has br, not br;q=0 - ret = s.find("br") != std::string::npos; - if (ret) { return EncodingType::Brotli; } -#endif - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - // TODO: 'Accept-Encoding' has gzip, not gzip;q=0 - ret = s.find("gzip") != std::string::npos; - if (ret) { return EncodingType::Gzip; } -#endif - - return EncodingType::None; -} - -class compressor { -public: - virtual ~compressor(){}; - - typedef std::function Callback; - virtual bool compress(const char *data, size_t data_length, bool last, - Callback callback) = 0; -}; - -class decompressor { -public: - virtual ~decompressor() {} - - virtual bool is_valid() const = 0; - - typedef std::function Callback; - virtual bool decompress(const char *data, size_t data_length, - Callback callback) = 0; -}; - -class nocompressor : public compressor { -public: - ~nocompressor(){}; - - bool compress(const char *data, size_t data_length, bool /*last*/, - Callback callback) override { - if (!data_length) { return true; } - return callback(data, data_length); - } -}; - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT -class gzip_compressor : public compressor { -public: - gzip_compressor() { - std::memset(&strm_, 0, sizeof(strm_)); - strm_.zalloc = Z_NULL; - strm_.zfree = Z_NULL; - strm_.opaque = Z_NULL; - - is_valid_ = deflateInit2(&strm_, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 8, - Z_DEFAULT_STRATEGY) == Z_OK; - } - - ~gzip_compressor() { deflateEnd(&strm_); } - - bool compress(const char *data, size_t data_length, bool last, - Callback callback) override { - assert(is_valid_); - - auto flush = last ? Z_FINISH : Z_NO_FLUSH; - - strm_.avail_in = static_cast(data_length); - strm_.next_in = const_cast(reinterpret_cast(data)); - - int ret = Z_OK; - - std::array buff{}; - do { - strm_.avail_out = buff.size(); - strm_.next_out = reinterpret_cast(buff.data()); - - ret = deflate(&strm_, flush); - assert(ret != Z_STREAM_ERROR); - - if (!callback(buff.data(), buff.size() - strm_.avail_out)) { - return false; - } - } while (strm_.avail_out == 0); - - assert((last && ret == Z_STREAM_END) || (!last && ret == Z_OK)); - assert(strm_.avail_in == 0); - return true; - } - -private: - bool is_valid_ = false; - z_stream strm_; -}; - -class gzip_decompressor : public decompressor { -public: - gzip_decompressor() { - std::memset(&strm_, 0, sizeof(strm_)); - strm_.zalloc = Z_NULL; - strm_.zfree = Z_NULL; - strm_.opaque = Z_NULL; - - // 15 is the value of wbits, which should be at the maximum possible value - // to ensure that any gzip stream can be decoded. The offset of 32 specifies - // that the stream type should be automatically detected either gzip or - // deflate. - is_valid_ = inflateInit2(&strm_, 32 + 15) == Z_OK; - } - - ~gzip_decompressor() { inflateEnd(&strm_); } - - bool is_valid() const override { return is_valid_; } - - bool decompress(const char *data, size_t data_length, - Callback callback) override { - assert(is_valid_); - - int ret = Z_OK; - - strm_.avail_in = static_cast(data_length); - strm_.next_in = const_cast(reinterpret_cast(data)); - - std::array buff{}; - while (strm_.avail_in > 0) { - strm_.avail_out = buff.size(); - strm_.next_out = reinterpret_cast(buff.data()); - - ret = inflate(&strm_, Z_NO_FLUSH); - assert(ret != Z_STREAM_ERROR); - switch (ret) { - case Z_NEED_DICT: - case Z_DATA_ERROR: - case Z_MEM_ERROR: inflateEnd(&strm_); return false; - } - - if (!callback(buff.data(), buff.size() - strm_.avail_out)) { - return false; - } - } - - return ret == Z_OK || ret == Z_STREAM_END; - } - -private: - bool is_valid_ = false; - z_stream strm_; -}; -#endif - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT -class brotli_compressor : public compressor { -public: - brotli_compressor() { - state_ = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr); - } - - ~brotli_compressor() { BrotliEncoderDestroyInstance(state_); } - - bool compress(const char *data, size_t data_length, bool last, - Callback callback) override { - std::array buff{}; - - auto operation = last ? BROTLI_OPERATION_FINISH : BROTLI_OPERATION_PROCESS; - auto available_in = data_length; - auto next_in = reinterpret_cast(data); - - for (;;) { - if (last) { - if (BrotliEncoderIsFinished(state_)) { break; } - } else { - if (!available_in) { break; } - } - - auto available_out = buff.size(); - auto next_out = buff.data(); - - if (!BrotliEncoderCompressStream(state_, operation, &available_in, - &next_in, &available_out, &next_out, - nullptr)) { - return false; - } - - auto output_bytes = buff.size() - available_out; - if (output_bytes) { - callback(reinterpret_cast(buff.data()), output_bytes); - } - } - - return true; - } - -private: - BrotliEncoderState *state_ = nullptr; -}; - -class brotli_decompressor : public decompressor { -public: - brotli_decompressor() { - decoder_s = BrotliDecoderCreateInstance(0, 0, 0); - decoder_r = decoder_s ? BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT - : BROTLI_DECODER_RESULT_ERROR; - } - - ~brotli_decompressor() { - if (decoder_s) { BrotliDecoderDestroyInstance(decoder_s); } - } - - bool is_valid() const override { return decoder_s; } - - bool decompress(const char *data, size_t data_length, - Callback callback) override { - if (decoder_r == BROTLI_DECODER_RESULT_SUCCESS || - decoder_r == BROTLI_DECODER_RESULT_ERROR) { - return 0; - } - - const uint8_t *next_in = (const uint8_t *)data; - size_t avail_in = data_length; - size_t total_out; - - decoder_r = BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT; - - std::array buff{}; - while (decoder_r == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) { - char *next_out = buff.data(); - size_t avail_out = buff.size(); - - decoder_r = BrotliDecoderDecompressStream( - decoder_s, &avail_in, &next_in, &avail_out, - reinterpret_cast(&next_out), &total_out); - - if (decoder_r == BROTLI_DECODER_RESULT_ERROR) { return false; } - - if (!callback(buff.data(), buff.size() - avail_out)) { return false; } - } - - return decoder_r == BROTLI_DECODER_RESULT_SUCCESS || - decoder_r == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT; - } - -private: - BrotliDecoderResult decoder_r; - BrotliDecoderState *decoder_s = nullptr; -}; -#endif - -inline bool has_header(const Headers &headers, const char *key) { - return headers.find(key) != headers.end(); -} - -inline const char *get_header_value(const Headers &headers, const char *key, - size_t id = 0, const char *def = nullptr) { - auto rng = headers.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { return it->second.c_str(); } - return def; -} - -template -inline T get_header_value(const Headers & /*headers*/, const char * /*key*/, - size_t /*id*/ = 0, uint64_t /*def*/ = 0) {} - -template <> -inline uint64_t get_header_value(const Headers &headers, - const char *key, size_t id, - uint64_t def) { - auto rng = headers.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { - return std::strtoull(it->second.data(), nullptr, 10); - } - return def; -} - -template -inline bool parse_header(const char *beg, const char *end, T fn) { - // Skip trailing spaces and tabs. - while (beg < end && is_space_or_tab(end[-1])) { - end--; - } - - auto p = beg; - while (p < end && *p != ':') { - p++; - } - - if (p == end) { return false; } - - auto key_end = p; - - if (*p++ != ':') { return false; } - - while (p < end && is_space_or_tab(*p)) { - p++; - } - - if (p < end) { - fn(std::string(beg, key_end), decode_url(std::string(p, end), false)); - return true; - } - - return false; -} - -inline bool read_headers(Stream &strm, Headers &headers) { - const auto bufsiz = 2048; - char buf[bufsiz]; - stream_line_reader line_reader(strm, buf, bufsiz); - - for (;;) { - if (!line_reader.getline()) { return false; } - - // Check if the line ends with CRLF. - if (line_reader.end_with_crlf()) { - // Blank line indicates end of headers. - if (line_reader.size() == 2) { break; } - } else { - continue; // Skip invalid line. - } - - // Exclude CRLF - auto end = line_reader.ptr() + line_reader.size() - 2; - - parse_header(line_reader.ptr(), end, - [&](std::string &&key, std::string &&val) { - headers.emplace(std::move(key), std::move(val)); - }); - } - - return true; -} - -inline bool read_content_with_length(Stream &strm, uint64_t len, - Progress progress, - ContentReceiverWithProgress out) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - - uint64_t r = 0; - while (r < len) { - auto read_len = static_cast(len - r); - auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); - if (n <= 0) { return false; } - - if (!out(buf, static_cast(n), r, len)) { return false; } - r += static_cast(n); - - if (progress) { - if (!progress(r, len)) { return false; } - } - } - - return true; -} - -inline void skip_content_with_length(Stream &strm, uint64_t len) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - uint64_t r = 0; - while (r < len) { - auto read_len = static_cast(len - r); - auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); - if (n <= 0) { return; } - r += static_cast(n); - } -} - -inline bool read_content_without_length(Stream &strm, - ContentReceiverWithProgress out) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - uint64_t r = 0; - for (;;) { - auto n = strm.read(buf, CPPHTTPLIB_RECV_BUFSIZ); - if (n < 0) { - return false; - } else if (n == 0) { - return true; - } - - if (!out(buf, static_cast(n), r, 0)) { return false; } - r += static_cast(n); - } - - return true; -} - -inline bool read_content_chunked(Stream &strm, - ContentReceiverWithProgress out) { - const auto bufsiz = 16; - char buf[bufsiz]; - - stream_line_reader line_reader(strm, buf, bufsiz); - - if (!line_reader.getline()) { return false; } - - unsigned long chunk_len; - while (true) { - char *end_ptr; - - chunk_len = std::strtoul(line_reader.ptr(), &end_ptr, 16); - - if (end_ptr == line_reader.ptr()) { return false; } - if (chunk_len == ULONG_MAX) { return false; } - - if (chunk_len == 0) { break; } - - if (!read_content_with_length(strm, chunk_len, nullptr, out)) { - return false; - } - - if (!line_reader.getline()) { return false; } - - if (strcmp(line_reader.ptr(), "\r\n")) { break; } - - if (!line_reader.getline()) { return false; } - } - - if (chunk_len == 0) { - // Reader terminator after chunks - if (!line_reader.getline() || strcmp(line_reader.ptr(), "\r\n")) - return false; - } - - return true; -} - -inline bool is_chunked_transfer_encoding(const Headers &headers) { - return !strcasecmp(get_header_value(headers, "Transfer-Encoding", 0, ""), - "chunked"); -} - -template -bool prepare_content_receiver(T &x, int &status, - ContentReceiverWithProgress receiver, - bool decompress, U callback) { - if (decompress) { - std::string encoding = x.get_header_value("Content-Encoding"); - std::unique_ptr decompressor; - - if (encoding.find("gzip") != std::string::npos || - encoding.find("deflate") != std::string::npos) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - decompressor = detail::make_unique(); -#else - status = 415; - return false; -#endif - } else if (encoding.find("br") != std::string::npos) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - decompressor = detail::make_unique(); -#else - status = 415; - return false; -#endif - } - - if (decompressor) { - if (decompressor->is_valid()) { - ContentReceiverWithProgress out = [&](const char *buf, size_t n, - uint64_t off, uint64_t len) { - return decompressor->decompress(buf, n, - [&](const char *buf, size_t n) { - return receiver(buf, n, off, len); - }); - }; - return callback(std::move(out)); - } else { - status = 500; - return false; - } - } - } - - ContentReceiverWithProgress out = [&](const char *buf, size_t n, uint64_t off, - uint64_t len) { - return receiver(buf, n, off, len); - }; - return callback(std::move(out)); -} - -template -bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status, - Progress progress, ContentReceiverWithProgress receiver, - bool decompress) { - return prepare_content_receiver( - x, status, std::move(receiver), decompress, - [&](const ContentReceiverWithProgress &out) { - auto ret = true; - auto exceed_payload_max_length = false; - - if (is_chunked_transfer_encoding(x.headers)) { - ret = read_content_chunked(strm, out); - } else if (!has_header(x.headers, "Content-Length")) { - ret = read_content_without_length(strm, out); - } else { - auto len = get_header_value(x.headers, "Content-Length"); - if (len > payload_max_length) { - exceed_payload_max_length = true; - skip_content_with_length(strm, len); - ret = false; - } else if (len > 0) { - ret = read_content_with_length(strm, len, std::move(progress), out); - } - } - - if (!ret) { status = exceed_payload_max_length ? 413 : 400; } - return ret; - }); -} - -template -inline ssize_t write_headers(Stream &strm, const T &info, - const Headers &headers) { - ssize_t write_len = 0; - for (const auto &x : info.headers) { - if (x.first == "EXCEPTION_WHAT") { continue; } - auto len = - strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str()); - if (len < 0) { return len; } - write_len += len; - } - for (const auto &x : headers) { - auto len = - strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str()); - if (len < 0) { return len; } - write_len += len; - } - auto len = strm.write("\r\n"); - if (len < 0) { return len; } - write_len += len; - return write_len; -} - -inline bool write_data(Stream &strm, const char *d, size_t l) { - size_t offset = 0; - while (offset < l) { - auto length = strm.write(d + offset, l - offset); - if (length < 0) { return false; } - offset += static_cast(length); - } - return true; -} - -template -inline ssize_t write_content(Stream &strm, ContentProvider content_provider, - size_t offset, size_t length, T is_shutting_down) { - size_t begin_offset = offset; - size_t end_offset = offset + length; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - offset += l; - if (!write_data(strm, d, l)) { ok = false; } - } - }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (offset < end_offset && !is_shutting_down()) { - if (!content_provider(offset, end_offset - offset, data_sink)) { - return -1; - } - if (!ok) { return -1; } - } - - return static_cast(offset - begin_offset); -} - -template -inline ssize_t write_content_without_length(Stream &strm, - ContentProvider content_provider, - T is_shutting_down) { - size_t offset = 0; - auto data_available = true; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - offset += l; - if (!write_data(strm, d, l)) { ok = false; } - } - }; - - data_sink.done = [&](void) { data_available = false; }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (data_available && !is_shutting_down()) { - if (!content_provider(offset, 0, data_sink)) { return -1; } - if (!ok) { return -1; } - } - - return static_cast(offset); -} - -template -inline ssize_t write_content_chunked(Stream &strm, - ContentProvider content_provider, - T is_shutting_down, U &compressor) { - size_t offset = 0; - auto data_available = true; - ssize_t total_written_length = 0; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (!ok) { return; } - - data_available = l > 0; - offset += l; - - std::string payload; - if (!compressor.compress(d, l, false, - [&](const char *data, size_t data_len) { - payload.append(data, data_len); - return true; - })) { - ok = false; - return; - } - - if (!payload.empty()) { - // Emit chunked response header and footer for each chunk - auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; - if (write_data(strm, chunk.data(), chunk.size())) { - total_written_length += chunk.size(); - } else { - ok = false; - return; - } - } - }; - - data_sink.done = [&](void) { - if (!ok) { return; } - - data_available = false; - - std::string payload; - if (!compressor.compress(nullptr, 0, true, - [&](const char *data, size_t data_len) { - payload.append(data, data_len); - return true; - })) { - ok = false; - return; - } - - if (!payload.empty()) { - // Emit chunked response header and footer for each chunk - auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; - if (write_data(strm, chunk.data(), chunk.size())) { - total_written_length += chunk.size(); - } else { - ok = false; - return; - } - } - - static const std::string done_marker("0\r\n\r\n"); - if (write_data(strm, done_marker.data(), done_marker.size())) { - total_written_length += done_marker.size(); - } else { - ok = false; - } - }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (data_available && !is_shutting_down()) { - if (!content_provider(offset, 0, data_sink)) { return -1; } - if (!ok) { return -1; } - } - - return total_written_length; -} - -template -inline bool redirect(T &cli, const Request &req, Response &res, - const std::string &path) { - Request new_req = req; - new_req.path = path; - new_req.redirect_count -= 1; - - if (res.status == 303 && (req.method != "GET" && req.method != "HEAD")) { - new_req.method = "GET"; - new_req.body.clear(); - new_req.headers.clear(); - } - - Response new_res; - - auto ret = cli.send(new_req, new_res); - if (ret) { res = new_res; } - return ret; -} - -inline std::string params_to_query_str(const Params ¶ms) { - std::string query; - - for (auto it = params.begin(); it != params.end(); ++it) { - if (it != params.begin()) { query += "&"; } - query += it->first; - query += "="; - query += encode_url(it->second); - } - return query; -} - -inline void parse_query_text(const std::string &s, Params ¶ms) { - split(s.data(), s.data() + s.size(), '&', [&](const char *b, const char *e) { - std::string key; - std::string val; - split(b, e, '=', [&](const char *b2, const char *e2) { - if (key.empty()) { - key.assign(b2, e2); - } else { - val.assign(b2, e2); - } - }); - - if (!key.empty()) { - params.emplace(decode_url(key, true), decode_url(val, true)); - } - }); -} - -inline bool parse_multipart_boundary(const std::string &content_type, - std::string &boundary) { - auto pos = content_type.find("boundary="); - if (pos == std::string::npos) { return false; } - boundary = content_type.substr(pos + 9); - if (boundary.length() >= 2 && boundary.front() == '"' && - boundary.back() == '"') { - boundary = boundary.substr(1, boundary.size() - 2); - } - return !boundary.empty(); -} - -inline bool parse_range_header(const std::string &s, Ranges &ranges) try { - static auto re_first_range = std::regex(R"(bytes=(\d*-\d*(?:,\s*\d*-\d*)*))"); - std::smatch m; - if (std::regex_match(s, m, re_first_range)) { - auto pos = static_cast(m.position(1)); - auto len = static_cast(m.length(1)); - bool all_valid_ranges = true; - split(&s[pos], &s[pos + len], ',', [&](const char *b, const char *e) { - if (!all_valid_ranges) return; - static auto re_another_range = std::regex(R"(\s*(\d*)-(\d*))"); - std::cmatch cm; - if (std::regex_match(b, e, cm, re_another_range)) { - ssize_t first = -1; - if (!cm.str(1).empty()) { - first = static_cast(std::stoll(cm.str(1))); - } - - ssize_t last = -1; - if (!cm.str(2).empty()) { - last = static_cast(std::stoll(cm.str(2))); - } - - if (first != -1 && last != -1 && first > last) { - all_valid_ranges = false; - return; - } - ranges.emplace_back(std::make_pair(first, last)); - } - }); - return all_valid_ranges; - } - return false; -} catch (...) { return false; } - -class MultipartFormDataParser { -public: - MultipartFormDataParser() = default; - - void set_boundary(std::string &&boundary) { boundary_ = boundary; } - - bool is_valid() const { return is_valid_; } - - bool parse(const char *buf, size_t n, const ContentReceiver &content_callback, - const MultipartContentHeader &header_callback) { - - static const std::regex re_content_disposition( - "^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename=" - "\"(.*?)\")?\\s*$", - std::regex_constants::icase); - static const std::string dash_ = "--"; - static const std::string crlf_ = "\r\n"; - - buf_.append(buf, n); // TODO: performance improvement - - while (!buf_.empty()) { - switch (state_) { - case 0: { // Initial boundary - auto pattern = dash_ + boundary_ + crlf_; - if (pattern.size() > buf_.size()) { return true; } - auto pos = buf_.find(pattern); - if (pos != 0) { return false; } - buf_.erase(0, pattern.size()); - off_ += pattern.size(); - state_ = 1; - break; - } - case 1: { // New entry - clear_file_info(); - state_ = 2; - break; - } - case 2: { // Headers - auto pos = buf_.find(crlf_); - while (pos != std::string::npos) { - // Empty line - if (pos == 0) { - if (!header_callback(file_)) { - is_valid_ = false; - return false; - } - buf_.erase(0, crlf_.size()); - off_ += crlf_.size(); - state_ = 3; - break; - } - - static const std::string header_name = "content-type:"; - const auto header = buf_.substr(0, pos); - if (start_with(header, header_name)) { - file_.content_type = trim_copy(header.substr(header_name.size())); - } else { - std::smatch m; - if (std::regex_match(header, m, re_content_disposition)) { - file_.name = m[1]; - file_.filename = m[2]; - } - } - - buf_.erase(0, pos + crlf_.size()); - off_ += pos + crlf_.size(); - pos = buf_.find(crlf_); - } - if (state_ != 3) { return true; } - break; - } - case 3: { // Body - { - auto pattern = crlf_ + dash_; - if (pattern.size() > buf_.size()) { return true; } - - auto pos = buf_.find(pattern); - if (pos == std::string::npos) { - pos = buf_.size(); - while (pos > 0) { - auto c = buf_[pos - 1]; - if (c != '\r' && c != '\n' && c != '-') { break; } - pos--; - } - } - - if (!content_callback(buf_.data(), pos)) { - is_valid_ = false; - return false; - } - - off_ += pos; - buf_.erase(0, pos); - } - - { - auto pattern = crlf_ + dash_ + boundary_; - if (pattern.size() > buf_.size()) { return true; } - - auto pos = buf_.find(pattern); - if (pos != std::string::npos) { - if (!content_callback(buf_.data(), pos)) { - is_valid_ = false; - return false; - } - - off_ += pos + pattern.size(); - buf_.erase(0, pos + pattern.size()); - state_ = 4; - } else { - if (!content_callback(buf_.data(), pattern.size())) { - is_valid_ = false; - return false; - } - - off_ += pattern.size(); - buf_.erase(0, pattern.size()); - } - } - break; - } - case 4: { // Boundary - if (crlf_.size() > buf_.size()) { return true; } - if (buf_.compare(0, crlf_.size(), crlf_) == 0) { - buf_.erase(0, crlf_.size()); - off_ += crlf_.size(); - state_ = 1; - } else { - auto pattern = dash_ + crlf_; - if (pattern.size() > buf_.size()) { return true; } - if (buf_.compare(0, pattern.size(), pattern) == 0) { - buf_.erase(0, pattern.size()); - off_ += pattern.size(); - is_valid_ = true; - state_ = 5; - } else { - return true; - } - } - break; - } - case 5: { // Done - is_valid_ = false; - return false; - } - } - } - - return true; - } - -private: - void clear_file_info() { - file_.name.clear(); - file_.filename.clear(); - file_.content_type.clear(); - } - - std::string boundary_; - - std::string buf_; - size_t state_ = 0; - bool is_valid_ = false; - size_t off_ = 0; - MultipartFormData file_; -}; - -inline std::string to_lower(const char *beg, const char *end) { - std::string out; - auto it = beg; - while (it != end) { - out += static_cast(::tolower(*it)); - it++; - } - return out; -} - -inline std::string make_multipart_data_boundary() { - static const char data[] = - "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; - - // std::random_device might actually be deterministic on some - // platforms, but due to lack of support in the c++ standard library, - // doing better requires either some ugly hacks or breaking portability. - std::random_device seed_gen; - // Request 128 bits of entropy for initialization - std::seed_seq seed_sequence{seed_gen(), seed_gen(), seed_gen(), seed_gen()}; - std::mt19937 engine(seed_sequence); - - std::string result = "--cpp-httplib-multipart-data-"; - - for (auto i = 0; i < 16; i++) { - result += data[engine() % (sizeof(data) - 1)]; - } - - return result; -} - -inline std::pair -get_range_offset_and_length(const Request &req, size_t content_length, - size_t index) { - auto r = req.ranges[index]; - - if (r.first == -1 && r.second == -1) { - return std::make_pair(0, content_length); - } - - auto slen = static_cast(content_length); - - if (r.first == -1) { - r.first = (std::max)(static_cast(0), slen - r.second); - r.second = slen - 1; - } - - if (r.second == -1) { r.second = slen - 1; } - return std::make_pair(r.first, static_cast(r.second - r.first) + 1); -} - -inline std::string make_content_range_header_field(size_t offset, size_t length, - size_t content_length) { - std::string field = "bytes "; - field += std::to_string(offset); - field += "-"; - field += std::to_string(offset + length - 1); - field += "/"; - field += std::to_string(content_length); - return field; -} - -template -bool process_multipart_ranges_data(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type, - SToken stoken, CToken ctoken, - Content content) { - for (size_t i = 0; i < req.ranges.size(); i++) { - ctoken("--"); - stoken(boundary); - ctoken("\r\n"); - if (!content_type.empty()) { - ctoken("Content-Type: "); - stoken(content_type); - ctoken("\r\n"); - } - - auto offsets = get_range_offset_and_length(req, res.body.size(), i); - auto offset = offsets.first; - auto length = offsets.second; - - ctoken("Content-Range: "); - stoken(make_content_range_header_field(offset, length, res.body.size())); - ctoken("\r\n"); - ctoken("\r\n"); - if (!content(offset, length)) { return false; } - ctoken("\r\n"); - } - - ctoken("--"); - stoken(boundary); - ctoken("--\r\n"); - - return true; -} - -inline bool make_multipart_ranges_data(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type, - std::string &data) { - return process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { data += token; }, - [&](const char *token) { data += token; }, - [&](size_t offset, size_t length) { - if (offset < res.body.size()) { - data += res.body.substr(offset, length); - return true; - } - return false; - }); -} - -inline size_t -get_multipart_ranges_data_length(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type) { - size_t data_length = 0; - - process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { data_length += token.size(); }, - [&](const char *token) { data_length += strlen(token); }, - [&](size_t /*offset*/, size_t length) { - data_length += length; - return true; - }); - - return data_length; -} - -template -inline bool write_multipart_ranges_data(Stream &strm, const Request &req, - Response &res, - const std::string &boundary, - const std::string &content_type, - T is_shutting_down) { - return process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { strm.write(token); }, - [&](const char *token) { strm.write(token); }, - [&](size_t offset, size_t length) { - return write_content(strm, res.content_provider_, offset, length, - is_shutting_down) >= 0; - }); -} - -inline std::pair -get_range_offset_and_length(const Request &req, const Response &res, - size_t index) { - auto r = req.ranges[index]; - - if (r.second == -1) { - r.second = static_cast(res.content_length_) - 1; - } - - return std::make_pair(r.first, r.second - r.first + 1); -} - -inline bool expect_content(const Request &req) { - if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH" || - req.method == "PRI" || req.method == "DELETE") { - return true; - } - // TODO: check if Content-Length is set - return false; -} - -inline bool has_crlf(const char *s) { - auto p = s; - while (*p) { - if (*p == '\r' || *p == '\n') { return true; } - p++; - } - return false; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -template -inline std::string message_digest(const std::string &s, Init init, - Update update, Final final, - size_t digest_length) { - using namespace std; - - std::vector md(digest_length, 0); - CTX ctx; - init(&ctx); - update(&ctx, s.data(), s.size()); - final(md.data(), &ctx); - - stringstream ss; - for (auto c : md) { - ss << setfill('0') << setw(2) << hex << (unsigned int)c; - } - return ss.str(); -} - -inline std::string MD5(const std::string &s) { - return message_digest(s, MD5_Init, MD5_Update, MD5_Final, - MD5_DIGEST_LENGTH); -} - -inline std::string SHA_256(const std::string &s) { - return message_digest(s, SHA256_Init, SHA256_Update, SHA256_Final, - SHA256_DIGEST_LENGTH); -} - -inline std::string SHA_512(const std::string &s) { - return message_digest(s, SHA512_Init, SHA512_Update, SHA512_Final, - SHA512_DIGEST_LENGTH); -} -#endif - -#ifdef _WIN32 -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -// NOTE: This code came up with the following stackoverflow post: -// https://stackoverflow.com/questions/9507184/can-openssl-on-windows-use-the-system-certificate-store -inline bool load_system_certs_on_windows(X509_STORE *store) { - auto hStore = CertOpenSystemStoreW((HCRYPTPROV_LEGACY)NULL, L"ROOT"); - - if (!hStore) { return false; } - - PCCERT_CONTEXT pContext = NULL; - while (pContext = CertEnumCertificatesInStore(hStore, pContext)) { - auto encoded_cert = - static_cast(pContext->pbCertEncoded); - - auto x509 = d2i_X509(NULL, &encoded_cert, pContext->cbCertEncoded); - if (x509) { - X509_STORE_add_cert(store, x509); - X509_free(x509); - } - } - - CertFreeCertificateContext(pContext); - CertCloseStore(hStore, 0); - - return true; -} -#endif - -class WSInit { -public: - WSInit() { - WSADATA wsaData; - WSAStartup(0x0002, &wsaData); - } - - ~WSInit() { WSACleanup(); } -}; - -static WSInit wsinit_; -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline std::pair make_digest_authentication_header( - const Request &req, const std::map &auth, - size_t cnonce_count, const std::string &cnonce, const std::string &username, - const std::string &password, bool is_proxy = false) { - using namespace std; - - string nc; - { - stringstream ss; - ss << setfill('0') << setw(8) << hex << cnonce_count; - nc = ss.str(); - } - - auto qop = auth.at("qop"); - if (qop.find("auth-int") != std::string::npos) { - qop = "auth-int"; - } else { - qop = "auth"; - } - - std::string algo = "MD5"; - if (auth.find("algorithm") != auth.end()) { algo = auth.at("algorithm"); } - - string response; - { - auto H = algo == "SHA-256" - ? detail::SHA_256 - : algo == "SHA-512" ? detail::SHA_512 : detail::MD5; - - auto A1 = username + ":" + auth.at("realm") + ":" + password; - - auto A2 = req.method + ":" + req.path; - if (qop == "auth-int") { A2 += ":" + H(req.body); } - - response = H(H(A1) + ":" + auth.at("nonce") + ":" + nc + ":" + cnonce + - ":" + qop + ":" + H(A2)); - } - - auto field = "Digest username=\"" + username + "\", realm=\"" + - auth.at("realm") + "\", nonce=\"" + auth.at("nonce") + - "\", uri=\"" + req.path + "\", algorithm=" + algo + - ", qop=" + qop + ", nc=\"" + nc + "\", cnonce=\"" + cnonce + - "\", response=\"" + response + "\""; - - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, field); -} -#endif - -inline bool parse_www_authenticate(const Response &res, - std::map &auth, - bool is_proxy) { - auto auth_key = is_proxy ? "Proxy-Authenticate" : "WWW-Authenticate"; - if (res.has_header(auth_key)) { - static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~"); - auto s = res.get_header_value(auth_key); - auto pos = s.find(' '); - if (pos != std::string::npos) { - auto type = s.substr(0, pos); - if (type == "Basic") { - return false; - } else if (type == "Digest") { - s = s.substr(pos + 1); - auto beg = std::sregex_iterator(s.begin(), s.end(), re); - for (auto i = beg; i != std::sregex_iterator(); ++i) { - auto m = *i; - auto key = s.substr(static_cast(m.position(1)), - static_cast(m.length(1))); - auto val = m.length(2) > 0 - ? s.substr(static_cast(m.position(2)), - static_cast(m.length(2))) - : s.substr(static_cast(m.position(3)), - static_cast(m.length(3))); - auth[key] = val; - } - return true; - } - } - } - return false; -} - -// https://stackoverflow.com/questions/440133/how-do-i-create-a-random-alpha-numeric-string-in-c/440240#answer-440240 -inline std::string random_string(size_t length) { - auto randchar = []() -> char { - const char charset[] = "0123456789" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz"; - const size_t max_index = (sizeof(charset) - 1); - return charset[static_cast(rand()) % max_index]; - }; - std::string str(length, 0); - std::generate_n(str.begin(), length, randchar); - return str; -} - -class ContentProviderAdapter { -public: - explicit ContentProviderAdapter( - ContentProviderWithoutLength &&content_provider) - : content_provider_(content_provider) {} - - bool operator()(size_t offset, size_t, DataSink &sink) { - return content_provider_(offset, sink); - } - -private: - ContentProviderWithoutLength content_provider_; -}; - -} // namespace detail - -// Header utilities -inline std::pair make_range_header(Ranges ranges) { - std::string field = "bytes="; - auto i = 0; - for (auto r : ranges) { - if (i != 0) { field += ", "; } - if (r.first != -1) { field += std::to_string(r.first); } - field += '-'; - if (r.second != -1) { field += std::to_string(r.second); } - i++; - } - return std::make_pair("Range", std::move(field)); -} - -inline std::pair -make_basic_authentication_header(const std::string &username, - const std::string &password, - bool is_proxy = false) { - auto field = "Basic " + detail::base64_encode(username + ":" + password); - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, std::move(field)); -} - -inline std::pair -make_bearer_token_authentication_header(const std::string &token, - bool is_proxy = false) { - auto field = "Bearer " + token; - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, std::move(field)); -} - -// Request implementation -inline bool Request::has_header(const char *key) const { - return detail::has_header(headers, key); -} - -inline std::string Request::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, ""); -} - -template -inline T Request::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, 0); -} - -inline size_t Request::get_header_value_count(const char *key) const { - auto r = headers.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline void Request::set_header(const char *key, const char *val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val)) { - headers.emplace(key, val); - } -} - -inline void Request::set_header(const char *key, const std::string &val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val.c_str())) { - headers.emplace(key, val); - } -} - -inline bool Request::has_param(const char *key) const { - return params.find(key) != params.end(); -} - -inline std::string Request::get_param_value(const char *key, size_t id) const { - auto rng = params.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { return it->second; } - return std::string(); -} - -inline size_t Request::get_param_value_count(const char *key) const { - auto r = params.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline bool Request::is_multipart_form_data() const { - const auto &content_type = get_header_value("Content-Type"); - return !content_type.find("multipart/form-data"); -} - -inline bool Request::has_file(const char *key) const { - return files.find(key) != files.end(); -} - -inline MultipartFormData Request::get_file_value(const char *key) const { - auto it = files.find(key); - if (it != files.end()) { return it->second; } - return MultipartFormData(); -} - -// Response implementation -inline bool Response::has_header(const char *key) const { - return headers.find(key) != headers.end(); -} - -inline std::string Response::get_header_value(const char *key, - size_t id) const { - return detail::get_header_value(headers, key, id, ""); -} - -template -inline T Response::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, 0); -} - -inline size_t Response::get_header_value_count(const char *key) const { - auto r = headers.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline void Response::set_header(const char *key, const char *val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val)) { - headers.emplace(key, val); - } -} - -inline void Response::set_header(const char *key, const std::string &val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val.c_str())) { - headers.emplace(key, val); - } -} - -inline void Response::set_redirect(const char *url, int stat) { - if (!detail::has_crlf(url)) { - set_header("Location", url); - if (300 <= stat && stat < 400) { - this->status = stat; - } else { - this->status = 302; - } - } -} - -inline void Response::set_redirect(const std::string &url, int stat) { - set_redirect(url.c_str(), stat); -} - -inline void Response::set_content(const char *s, size_t n, - const char *content_type) { - body.assign(s, n); - - auto rng = headers.equal_range("Content-Type"); - headers.erase(rng.first, rng.second); - set_header("Content-Type", content_type); -} - -inline void Response::set_content(const std::string &s, - const char *content_type) { - set_content(s.data(), s.size(), content_type); -} - -inline void -Response::set_content_provider(size_t in_length, const char *content_type, - ContentProvider provider, - const std::function &resource_releaser) { - assert(in_length > 0); - set_header("Content-Type", content_type); - content_length_ = in_length; - content_provider_ = std::move(provider); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = false; -} - -inline void -Response::set_content_provider(const char *content_type, - ContentProviderWithoutLength provider, - const std::function &resource_releaser) { - set_header("Content-Type", content_type); - content_length_ = 0; - content_provider_ = detail::ContentProviderAdapter(std::move(provider)); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = false; -} - -inline void Response::set_chunked_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser) { - set_header("Content-Type", content_type); - content_length_ = 0; - content_provider_ = detail::ContentProviderAdapter(std::move(provider)); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = true; -} - -// Rstream implementation -inline ssize_t Stream::write(const char *ptr) { - return write(ptr, strlen(ptr)); -} - -inline ssize_t Stream::write(const std::string &s) { - return write(s.data(), s.size()); -} - -template -inline ssize_t Stream::write_format(const char *fmt, const Args &... args) { - const auto bufsiz = 2048; - std::array buf; - -#if defined(_MSC_VER) && _MSC_VER < 1900 - auto sn = _snprintf_s(buf.data(), bufsiz - 1, buf.size() - 1, fmt, args...); -#else - auto sn = snprintf(buf.data(), buf.size() - 1, fmt, args...); -#endif - if (sn <= 0) { return sn; } - - auto n = static_cast(sn); - - if (n >= buf.size() - 1) { - std::vector glowable_buf(buf.size()); - - while (n >= glowable_buf.size() - 1) { - glowable_buf.resize(glowable_buf.size() * 2); -#if defined(_MSC_VER) && _MSC_VER < 1900 - n = static_cast(_snprintf_s(&glowable_buf[0], glowable_buf.size(), - glowable_buf.size() - 1, fmt, - args...)); -#else - n = static_cast( - snprintf(&glowable_buf[0], glowable_buf.size() - 1, fmt, args...)); -#endif - } - return write(&glowable_buf[0], n); - } else { - return write(buf.data(), n); - } -} - -namespace detail { - -// Socket stream implementation -inline SocketStream::SocketStream(socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec) - : sock_(sock), read_timeout_sec_(read_timeout_sec), - read_timeout_usec_(read_timeout_usec), - write_timeout_sec_(write_timeout_sec), - write_timeout_usec_(write_timeout_usec) {} - -inline SocketStream::~SocketStream() {} - -inline bool SocketStream::is_readable() const { - return select_read(sock_, read_timeout_sec_, read_timeout_usec_) > 0; -} - -inline bool SocketStream::is_writable() const { - return select_write(sock_, write_timeout_sec_, write_timeout_usec_) > 0; -} - -inline ssize_t SocketStream::read(char *ptr, size_t size) { - if (!is_readable()) { return -1; } - -#ifdef _WIN32 - if (size > static_cast((std::numeric_limits::max)())) { - return -1; - } - return recv(sock_, ptr, static_cast(size), CPPHTTPLIB_RECV_FLAGS); -#else - return handle_EINTR( - [&]() { return recv(sock_, ptr, size, CPPHTTPLIB_RECV_FLAGS); }); -#endif -} - -inline ssize_t SocketStream::write(const char *ptr, size_t size) { - if (!is_writable()) { return -1; } - -#ifdef _WIN32 - if (size > static_cast((std::numeric_limits::max)())) { - return -1; - } - return send(sock_, ptr, static_cast(size), CPPHTTPLIB_SEND_FLAGS); -#else - return handle_EINTR( - [&]() { return send(sock_, ptr, size, CPPHTTPLIB_SEND_FLAGS); }); -#endif -} - -inline void SocketStream::get_remote_ip_and_port(std::string &ip, - int &port) const { - return detail::get_remote_ip_and_port(sock_, ip, port); -} - -inline socket_t SocketStream::socket() const { return sock_; } - -// Buffer stream implementation -inline bool BufferStream::is_readable() const { return true; } - -inline bool BufferStream::is_writable() const { return true; } - -inline ssize_t BufferStream::read(char *ptr, size_t size) { -#if defined(_MSC_VER) && _MSC_VER <= 1900 - auto len_read = buffer._Copy_s(ptr, size, size, position); -#else - auto len_read = buffer.copy(ptr, size, position); -#endif - position += static_cast(len_read); - return static_cast(len_read); -} - -inline ssize_t BufferStream::write(const char *ptr, size_t size) { - buffer.append(ptr, size); - return static_cast(size); -} - -inline void BufferStream::get_remote_ip_and_port(std::string & /*ip*/, - int & /*port*/) const {} - -inline socket_t BufferStream::socket() const { return 0; } - -inline const std::string &BufferStream::get_buffer() const { return buffer; } - -} // namespace detail - -// HTTP server implementation -inline Server::Server() - : new_task_queue( - [] { return new ThreadPool(CPPHTTPLIB_THREAD_POOL_COUNT); }), - svr_sock_(INVALID_SOCKET), is_running_(false) { -#ifndef _WIN32 - signal(SIGPIPE, SIG_IGN); -#endif -} - -inline Server::~Server() {} - -inline Server &Server::Get(const char *pattern, Handler handler) { - get_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Post(const char *pattern, Handler handler) { - post_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Post(const char *pattern, - HandlerWithContentReader handler) { - post_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Put(const char *pattern, Handler handler) { - put_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Put(const char *pattern, - HandlerWithContentReader handler) { - put_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Patch(const char *pattern, Handler handler) { - patch_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Patch(const char *pattern, - HandlerWithContentReader handler) { - patch_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Delete(const char *pattern, Handler handler) { - delete_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Delete(const char *pattern, - HandlerWithContentReader handler) { - delete_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Options(const char *pattern, Handler handler) { - options_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline bool Server::set_base_dir(const char *dir, const char *mount_point) { - return set_mount_point(mount_point, dir); -} - -inline bool Server::set_mount_point(const char *mount_point, const char *dir, - Headers headers) { - if (detail::is_dir(dir)) { - std::string mnt = mount_point ? mount_point : "/"; - if (!mnt.empty() && mnt[0] == '/') { - base_dirs_.push_back({mnt, dir, std::move(headers)}); - return true; - } - } - return false; -} - -inline bool Server::remove_mount_point(const char *mount_point) { - for (auto it = base_dirs_.begin(); it != base_dirs_.end(); ++it) { - if (it->mount_point == mount_point) { - base_dirs_.erase(it); - return true; - } - } - return false; -} - -inline void Server::set_file_extension_and_mimetype_mapping(const char *ext, - const char *mime) { - file_extension_and_mimetype_map_[ext] = mime; -} - -inline void Server::set_file_request_handler(Handler handler) { - file_request_handler_ = std::move(handler); -} - -inline void Server::set_error_handler(Handler handler) { - error_handler_ = std::move(handler); -} - -inline void Server::set_tcp_nodelay(bool on) { tcp_nodelay_ = on; } - -inline void Server::set_socket_options(SocketOptions socket_options) { - socket_options_ = std::move(socket_options); -} - -inline void Server::set_logger(Logger logger) { logger_ = std::move(logger); } - -inline void -Server::set_expect_100_continue_handler(Expect100ContinueHandler handler) { - expect_100_continue_handler_ = std::move(handler); -} - -inline void Server::set_keep_alive_max_count(size_t count) { - keep_alive_max_count_ = count; -} - -inline void Server::set_keep_alive_timeout(time_t sec) { - keep_alive_timeout_sec_ = sec; -} - -inline void Server::set_read_timeout(time_t sec, time_t usec) { - read_timeout_sec_ = sec; - read_timeout_usec_ = usec; -} - -inline void Server::set_write_timeout(time_t sec, time_t usec) { - write_timeout_sec_ = sec; - write_timeout_usec_ = usec; -} - -inline void Server::set_idle_interval(time_t sec, time_t usec) { - idle_interval_sec_ = sec; - idle_interval_usec_ = usec; -} - -inline void Server::set_payload_max_length(size_t length) { - payload_max_length_ = length; -} - -inline bool Server::bind_to_port(const char *host, int port, int socket_flags) { - if (bind_internal(host, port, socket_flags) < 0) return false; - return true; -} -inline int Server::bind_to_any_port(const char *host, int socket_flags) { - return bind_internal(host, 0, socket_flags); -} - -inline bool Server::listen_after_bind() { return listen_internal(); } - -inline bool Server::listen(const char *host, int port, int socket_flags) { - return bind_to_port(host, port, socket_flags) && listen_internal(); -} - -inline bool Server::is_running() const { return is_running_; } - -inline void Server::stop() { - if (is_running_) { - assert(svr_sock_ != INVALID_SOCKET); - std::atomic sock(svr_sock_.exchange(INVALID_SOCKET)); - detail::shutdown_socket(sock); - detail::close_socket(sock); - } -} - -inline bool Server::parse_request_line(const char *s, Request &req) { - const static std::regex re( - "(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) " - "(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n"); - - std::cmatch m; - if (std::regex_match(s, m, re)) { - req.version = std::string(m[5]); - req.method = std::string(m[1]); - req.target = std::string(m[2]); - req.path = detail::decode_url(m[3], false); - - // Parse query text - auto len = std::distance(m[4].first, m[4].second); - if (len > 0) { detail::parse_query_text(m[4], req.params); } - - return true; - } - - return false; -} - -inline bool Server::write_response(Stream &strm, bool close_connection, - const Request &req, Response &res) { - return write_response_core(strm, close_connection, req, res, false); -} - -inline bool Server::write_response_with_content(Stream &strm, - bool close_connection, - const Request &req, - Response &res) { - return write_response_core(strm, close_connection, req, res, true); -} - -inline bool Server::write_response_core(Stream &strm, bool close_connection, - const Request &req, Response &res, - bool need_apply_ranges) { - assert(res.status != -1); - - if (400 <= res.status && error_handler_) { error_handler_(req, res); } - - std::string content_type; - std::string boundary; - if (need_apply_ranges) { apply_ranges(req, res, content_type, boundary); } - - // Headers - if (close_connection || req.get_header_value("Connection") == "close") { - res.set_header("Connection", "close"); - } else { - std::stringstream ss; - ss << "timeout=" << keep_alive_timeout_sec_ - << ", max=" << keep_alive_max_count_; - res.set_header("Keep-Alive", ss.str()); - } - - if (!res.has_header("Content-Type") && - (!res.body.empty() || res.content_length_ > 0 || res.content_provider_)) { - res.set_header("Content-Type", "text/plain"); - } - - if (!res.has_header("Content-Length") && res.body.empty() && - !res.content_length_ && !res.content_provider_) { - res.set_header("Content-Length", "0"); - } - - if (!res.has_header("Accept-Ranges") && req.method == "HEAD") { - res.set_header("Accept-Ranges", "bytes"); - } - - detail::BufferStream bstrm; - - // Response line - if (!bstrm.write_format("HTTP/1.1 %d %s\r\n", res.status, - detail::status_message(res.status))) { - return false; - } - - if (!detail::write_headers(bstrm, res, Headers())) { return false; } - - // Flush buffer - auto &data = bstrm.get_buffer(); - strm.write(data.data(), data.size()); - - // Body - auto ret = true; - if (req.method != "HEAD") { - if (!res.body.empty()) { - if (!strm.write(res.body)) { ret = false; } - } else if (res.content_provider_) { - if (!write_content_with_provider(strm, req, res, boundary, - content_type)) { - ret = false; - } - } - } - - // Log - if (logger_) { logger_(req, res); } - - return ret; -} - -inline bool -Server::write_content_with_provider(Stream &strm, const Request &req, - Response &res, const std::string &boundary, - const std::string &content_type) { - auto is_shutting_down = [this]() { - return this->svr_sock_ == INVALID_SOCKET; - }; - - if (res.content_length_ > 0) { - if (req.ranges.empty()) { - if (detail::write_content(strm, res.content_provider_, 0, - res.content_length_, is_shutting_down) < 0) { - return false; - } - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.content_length_, 0); - auto offset = offsets.first; - auto length = offsets.second; - if (detail::write_content(strm, res.content_provider_, offset, length, - is_shutting_down) < 0) { - return false; - } - } else { - if (!detail::write_multipart_ranges_data( - strm, req, res, boundary, content_type, is_shutting_down)) { - return false; - } - } - } else { - if (res.is_chunked_content_provider) { - auto type = detail::encoding_type(req, res); - - std::unique_ptr compressor; - if (type == detail::EncodingType::Gzip) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - compressor = detail::make_unique(); -#endif - } else if (type == detail::EncodingType::Brotli) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - compressor = detail::make_unique(); -#endif - } else { - compressor = detail::make_unique(); - } - assert(compressor != nullptr); - - if (detail::write_content_chunked(strm, res.content_provider_, - is_shutting_down, *compressor) < 0) { - return false; - } - } else { - if (detail::write_content_without_length(strm, res.content_provider_, - is_shutting_down) < 0) { - return false; - } - } - } - return true; -} - -inline bool Server::read_content(Stream &strm, Request &req, Response &res) { - MultipartFormDataMap::iterator cur; - if (read_content_core( - strm, req, res, - // Regular - [&](const char *buf, size_t n) { - if (req.body.size() + n > req.body.max_size()) { return false; } - req.body.append(buf, n); - return true; - }, - // Multipart - [&](const MultipartFormData &file) { - cur = req.files.emplace(file.name, file); - return true; - }, - [&](const char *buf, size_t n) { - auto &content = cur->second.content; - if (content.size() + n > content.max_size()) { return false; } - content.append(buf, n); - return true; - })) { - const auto &content_type = req.get_header_value("Content-Type"); - if (!content_type.find("application/x-www-form-urlencoded")) { - detail::parse_query_text(req.body, req.params); - } - return true; - } - return false; -} - -inline bool Server::read_content_with_content_receiver( - Stream &strm, Request &req, Response &res, ContentReceiver receiver, - MultipartContentHeader multipart_header, - ContentReceiver multipart_receiver) { - return read_content_core(strm, req, res, std::move(receiver), - std::move(multipart_header), - std::move(multipart_receiver)); -} - -inline bool Server::read_content_core(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader mulitpart_header, - ContentReceiver multipart_receiver) { - detail::MultipartFormDataParser multipart_form_data_parser; - ContentReceiverWithProgress out; - - if (req.is_multipart_form_data()) { - const auto &content_type = req.get_header_value("Content-Type"); - std::string boundary; - if (!detail::parse_multipart_boundary(content_type, boundary)) { - res.status = 400; - return false; - } - - multipart_form_data_parser.set_boundary(std::move(boundary)); - out = [&](const char *buf, size_t n, uint64_t /*off*/, uint64_t /*len*/) { - /* For debug - size_t pos = 0; - while (pos < n) { - auto read_size = std::min(1, n - pos); - auto ret = multipart_form_data_parser.parse( - buf + pos, read_size, multipart_receiver, mulitpart_header); - if (!ret) { return false; } - pos += read_size; - } - return true; - */ - return multipart_form_data_parser.parse(buf, n, multipart_receiver, - mulitpart_header); - }; - } else { - out = [receiver](const char *buf, size_t n, uint64_t /*off*/, - uint64_t /*len*/) { return receiver(buf, n); }; - } - - if (req.method == "DELETE" && !req.has_header("Content-Length")) { - return true; - } - - if (!detail::read_content(strm, req, payload_max_length_, res.status, nullptr, - out, true)) { - return false; - } - - if (req.is_multipart_form_data()) { - if (!multipart_form_data_parser.is_valid()) { - res.status = 400; - return false; - } - } - - return true; -} - -inline bool Server::handle_file_request(Request &req, Response &res, - bool head) { - for (const auto &entry : base_dirs_) { - // Prefix match - if (!req.path.compare(0, entry.mount_point.size(), entry.mount_point)) { - std::string sub_path = "/" + req.path.substr(entry.mount_point.size()); - if (detail::is_valid_path(sub_path)) { - auto path = entry.base_dir + sub_path; - if (path.back() == '/') { path += "index.html"; } - - if (detail::is_file(path)) { - detail::read_file(path, res.body); - auto type = - detail::find_content_type(path, file_extension_and_mimetype_map_); - if (type) { res.set_header("Content-Type", type); } - for (const auto &kv : entry.headers) { - res.set_header(kv.first.c_str(), kv.second); - } - res.status = 200; - if (!head && file_request_handler_) { - file_request_handler_(req, res); - } - return true; - } - } - } - } - return false; -} - -inline socket_t -Server::create_server_socket(const char *host, int port, int socket_flags, - SocketOptions socket_options) const { - return detail::create_socket( - host, port, socket_flags, tcp_nodelay_, std::move(socket_options), - [](socket_t sock, struct addrinfo &ai) -> bool { - if (::bind(sock, ai.ai_addr, static_cast(ai.ai_addrlen))) { - return false; - } - if (::listen(sock, 5)) { // Listen through 5 channels - return false; - } - return true; - }); -} - -inline int Server::bind_internal(const char *host, int port, int socket_flags) { - if (!is_valid()) { return -1; } - - svr_sock_ = create_server_socket(host, port, socket_flags, socket_options_); - if (svr_sock_ == INVALID_SOCKET) { return -1; } - - if (port == 0) { - struct sockaddr_storage addr; - socklen_t addr_len = sizeof(addr); - if (getsockname(svr_sock_, reinterpret_cast(&addr), - &addr_len) == -1) { - return -1; - } - if (addr.ss_family == AF_INET) { - return ntohs(reinterpret_cast(&addr)->sin_port); - } else if (addr.ss_family == AF_INET6) { - return ntohs(reinterpret_cast(&addr)->sin6_port); - } else { - return -1; - } - } else { - return port; - } -} - -inline bool Server::listen_internal() { - auto ret = true; - is_running_ = true; - - { - std::unique_ptr task_queue(new_task_queue()); - - while (svr_sock_ != INVALID_SOCKET) { -#ifndef _WIN32 - if (idle_interval_sec_ > 0 || idle_interval_usec_ > 0) { -#endif - auto val = detail::select_read(svr_sock_, idle_interval_sec_, - idle_interval_usec_); - if (val == 0) { // Timeout - task_queue->on_idle(); - continue; - } -#ifndef _WIN32 - } -#endif - socket_t sock = accept(svr_sock_, nullptr, nullptr); - - if (sock == INVALID_SOCKET) { - if (errno == EMFILE) { - // The per-process limit of open file descriptors has been reached. - // Try to accept new connections after a short sleep. - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - continue; - } - if (svr_sock_ != INVALID_SOCKET) { - detail::close_socket(svr_sock_); - ret = false; - } else { - ; // The server socket was closed by user. - } - break; - } - -#if __cplusplus > 201703L - task_queue->enqueue([=, this]() { process_and_close_socket(sock); }); -#else - task_queue->enqueue([=]() { process_and_close_socket(sock); }); -#endif - } - - task_queue->shutdown(); - } - - is_running_ = false; - return ret; -} - -inline bool Server::routing(Request &req, Response &res, Stream &strm) { - // File handler - bool is_head_request = req.method == "HEAD"; - if ((req.method == "GET" || is_head_request) && - handle_file_request(req, res, is_head_request)) { - return true; - } - - if (detail::expect_content(req)) { - // Content reader handler - { - ContentReader reader( - [&](ContentReceiver receiver) { - return read_content_with_content_receiver( - strm, req, res, std::move(receiver), nullptr, nullptr); - }, - [&](MultipartContentHeader header, ContentReceiver receiver) { - return read_content_with_content_receiver(strm, req, res, nullptr, - std::move(header), - std::move(receiver)); - }); - - if (req.method == "POST") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - post_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "PUT") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - put_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "PATCH") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - patch_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "DELETE") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - delete_handlers_for_content_reader_)) { - return true; - } - } - } - - // Read content into `req.body` - if (!read_content(strm, req, res)) { return false; } - } - - // Regular handler - if (req.method == "GET" || req.method == "HEAD") { - return dispatch_request(req, res, get_handlers_); - } else if (req.method == "POST") { - return dispatch_request(req, res, post_handlers_); - } else if (req.method == "PUT") { - return dispatch_request(req, res, put_handlers_); - } else if (req.method == "DELETE") { - return dispatch_request(req, res, delete_handlers_); - } else if (req.method == "OPTIONS") { - return dispatch_request(req, res, options_handlers_); - } else if (req.method == "PATCH") { - return dispatch_request(req, res, patch_handlers_); - } - - res.status = 400; - return false; -} - -inline bool Server::dispatch_request(Request &req, Response &res, - const Handlers &handlers) { - try { - for (const auto &x : handlers) { - const auto &pattern = x.first; - const auto &handler = x.second; - - if (std::regex_match(req.path, req.matches, pattern)) { - handler(req, res); - return true; - } - } - } catch (const std::exception &ex) { - res.status = 500; - res.set_header("EXCEPTION_WHAT", ex.what()); - } catch (...) { - res.status = 500; - res.set_header("EXCEPTION_WHAT", "UNKNOWN"); - } - return false; -} - -inline void Server::apply_ranges(const Request &req, Response &res, - std::string &content_type, - std::string &boundary) { - if (req.ranges.size() > 1) { - boundary = detail::make_multipart_data_boundary(); - - auto it = res.headers.find("Content-Type"); - if (it != res.headers.end()) { - content_type = it->second; - res.headers.erase(it); - } - - res.headers.emplace("Content-Type", - "multipart/byteranges; boundary=" + boundary); - } - - auto type = detail::encoding_type(req, res); - - if (res.body.empty()) { - if (res.content_length_ > 0) { - size_t length = 0; - if (req.ranges.empty()) { - length = res.content_length_; - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.content_length_, 0); - auto offset = offsets.first; - length = offsets.second; - auto content_range = detail::make_content_range_header_field( - offset, length, res.content_length_); - res.set_header("Content-Range", content_range); - } else { - length = detail::get_multipart_ranges_data_length(req, res, boundary, - content_type); - } - res.set_header("Content-Length", std::to_string(length)); - } else { - if (res.content_provider_) { - if (res.is_chunked_content_provider) { - res.set_header("Transfer-Encoding", "chunked"); - if (type == detail::EncodingType::Gzip) { - res.set_header("Content-Encoding", "gzip"); - } else if (type == detail::EncodingType::Brotli) { - res.set_header("Content-Encoding", "br"); - } - } - } - } - } else { - if (req.ranges.empty()) { - ; - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.body.size(), 0); - auto offset = offsets.first; - auto length = offsets.second; - auto content_range = detail::make_content_range_header_field( - offset, length, res.body.size()); - res.set_header("Content-Range", content_range); - if (offset < res.body.size()) { - res.body = res.body.substr(offset, length); - } else { - res.body.clear(); - res.status = 416; - } - } else { - std::string data; - if (detail::make_multipart_ranges_data(req, res, boundary, content_type, - data)) { - res.body.swap(data); - } else { - res.body.clear(); - res.status = 416; - } - } - - if (type != detail::EncodingType::None) { - std::unique_ptr compressor; - std::string content_encoding; - - if (type == detail::EncodingType::Gzip) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - compressor = detail::make_unique(); - content_encoding = "gzip"; -#endif - } else if (type == detail::EncodingType::Brotli) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - compressor = detail::make_unique(); - content_encoding = "brotli"; -#endif - } - - if (compressor) { - std::string compressed; - if (compressor->compress(res.body.data(), res.body.size(), true, - [&](const char *data, size_t data_len) { - compressed.append(data, data_len); - return true; - })) { - res.body.swap(compressed); - res.set_header("Content-Encoding", content_encoding); - } - } - } - - auto length = std::to_string(res.body.size()); - res.set_header("Content-Length", length); - } -} - -inline bool Server::dispatch_request_for_content_reader( - Request &req, Response &res, ContentReader content_reader, - const HandlersForContentReader &handlers) { - for (const auto &x : handlers) { - const auto &pattern = x.first; - const auto &handler = x.second; - - if (std::regex_match(req.path, req.matches, pattern)) { - handler(req, res, content_reader); - return true; - } - } - return false; -} - -inline bool -Server::process_request(Stream &strm, bool close_connection, - bool &connection_closed, - const std::function &setup_request) { - std::array buf{}; - - detail::stream_line_reader line_reader(strm, buf.data(), buf.size()); - - // Connection has been closed on client - if (!line_reader.getline()) { return false; } - - Request req; - Response res; - - res.version = "HTTP/1.1"; - -#ifdef _WIN32 - // TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL). -#else -#ifndef CPPHTTPLIB_USE_POLL - // Socket file descriptor exceeded FD_SETSIZE... - if (strm.socket() >= FD_SETSIZE) { - Headers dummy; - detail::read_headers(strm, dummy); - res.status = 500; - return write_response(strm, close_connection, req, res); - } -#endif -#endif - - // Check if the request URI doesn't exceed the limit - if (line_reader.size() > CPPHTTPLIB_REQUEST_URI_MAX_LENGTH) { - Headers dummy; - detail::read_headers(strm, dummy); - res.status = 414; - return write_response(strm, close_connection, req, res); - } - - // Request line and headers - if (!parse_request_line(line_reader.ptr(), req) || - !detail::read_headers(strm, req.headers)) { - res.status = 400; - return write_response(strm, close_connection, req, res); - } - - if (req.get_header_value("Connection") == "close") { - connection_closed = true; - } - - if (req.version == "HTTP/1.0" && - req.get_header_value("Connection") != "Keep-Alive") { - connection_closed = true; - } - - strm.get_remote_ip_and_port(req.remote_addr, req.remote_port); - req.set_header("REMOTE_ADDR", req.remote_addr); - req.set_header("REMOTE_PORT", std::to_string(req.remote_port)); - - if (req.has_header("Range")) { - const auto &range_header_value = req.get_header_value("Range"); - if (!detail::parse_range_header(range_header_value, req.ranges)) { - res.status = 416; - return write_response(strm, close_connection, req, res); - } - } - - if (setup_request) { setup_request(req); } - - if (req.get_header_value("Expect") == "100-continue") { - auto status = 100; - if (expect_100_continue_handler_) { - status = expect_100_continue_handler_(req, res); - } - switch (status) { - case 100: - case 417: - strm.write_format("HTTP/1.1 %d %s\r\n\r\n", status, - detail::status_message(status)); - break; - default: return write_response(strm, close_connection, req, res); - } - } - - // Rounting - if (routing(req, res, strm)) { - if (res.status == -1) { res.status = req.ranges.empty() ? 200 : 206; } - return write_response_with_content(strm, close_connection, req, res); - } else { - if (res.status == -1) { res.status = 404; } - return write_response(strm, close_connection, req, res); - } -} - -inline bool Server::is_valid() const { return true; } - -inline bool Server::process_and_close_socket(socket_t sock) { - auto ret = detail::process_server_socket( - sock, keep_alive_max_count_, keep_alive_timeout_sec_, read_timeout_sec_, - read_timeout_usec_, write_timeout_sec_, write_timeout_usec_, - [this](Stream &strm, bool close_connection, bool &connection_closed) { - return process_request(strm, close_connection, connection_closed, - nullptr); - }); - - detail::shutdown_socket(sock); - detail::close_socket(sock); - return ret; -} - -// HTTP client implementation -inline ClientImpl::ClientImpl(const std::string &host) - : ClientImpl(host, 80, std::string(), std::string()) {} - -inline ClientImpl::ClientImpl(const std::string &host, int port) - : ClientImpl(host, port, std::string(), std::string()) {} - -inline ClientImpl::ClientImpl(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : host_(host), port_(port), - host_and_port_(host_ + ":" + std::to_string(port_)), - client_cert_path_(client_cert_path), client_key_path_(client_key_path) {} - -inline ClientImpl::~ClientImpl() { stop_core(); } - -inline bool ClientImpl::is_valid() const { return true; } - -inline Error ClientImpl::get_last_error() const { return error_; } - -inline void ClientImpl::copy_settings(const ClientImpl &rhs) { - client_cert_path_ = rhs.client_cert_path_; - client_key_path_ = rhs.client_key_path_; - connection_timeout_sec_ = rhs.connection_timeout_sec_; - read_timeout_sec_ = rhs.read_timeout_sec_; - read_timeout_usec_ = rhs.read_timeout_usec_; - write_timeout_sec_ = rhs.write_timeout_sec_; - write_timeout_usec_ = rhs.write_timeout_usec_; - basic_auth_username_ = rhs.basic_auth_username_; - basic_auth_password_ = rhs.basic_auth_password_; - bearer_token_auth_token_ = rhs.bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - digest_auth_username_ = rhs.digest_auth_username_; - digest_auth_password_ = rhs.digest_auth_password_; -#endif - keep_alive_ = rhs.keep_alive_; - follow_location_ = rhs.follow_location_; - tcp_nodelay_ = rhs.tcp_nodelay_; - socket_options_ = rhs.socket_options_; - compress_ = rhs.compress_; - decompress_ = rhs.decompress_; - interface_ = rhs.interface_; - proxy_host_ = rhs.proxy_host_; - proxy_port_ = rhs.proxy_port_; - proxy_basic_auth_username_ = rhs.proxy_basic_auth_username_; - proxy_basic_auth_password_ = rhs.proxy_basic_auth_password_; - proxy_bearer_token_auth_token_ = rhs.proxy_bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - proxy_digest_auth_username_ = rhs.proxy_digest_auth_username_; - proxy_digest_auth_password_ = rhs.proxy_digest_auth_password_; -#endif -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - server_certificate_verification_ = rhs.server_certificate_verification_; -#endif - logger_ = rhs.logger_; -} - -inline socket_t ClientImpl::create_client_socket() const { - if (!proxy_host_.empty() && proxy_port_ != -1) { - return detail::create_client_socket( - proxy_host_.c_str(), proxy_port_, tcp_nodelay_, socket_options_, - connection_timeout_sec_, connection_timeout_usec_, interface_, error_); - } - return detail::create_client_socket( - host_.c_str(), port_, tcp_nodelay_, socket_options_, - connection_timeout_sec_, connection_timeout_usec_, interface_, error_); -} - -inline bool ClientImpl::create_and_connect_socket(Socket &socket) { - auto sock = create_client_socket(); - if (sock == INVALID_SOCKET) { return false; } - socket.sock = sock; - return true; -} - -inline void ClientImpl::close_socket(Socket &socket, - bool /*process_socket_ret*/) { - detail::close_socket(socket.sock); - socket_.sock = INVALID_SOCKET; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - socket_.ssl = nullptr; -#endif -} - -inline bool ClientImpl::read_response_line(Stream &strm, Response &res) { - std::array buf; - - detail::stream_line_reader line_reader(strm, buf.data(), buf.size()); - - if (!line_reader.getline()) { return false; } - - const static std::regex re("(HTTP/1\\.[01]) (\\d+) (.*?)\r\n"); - - std::cmatch m; - if (!std::regex_match(line_reader.ptr(), m, re)) { return true; } - res.version = std::string(m[1]); - res.status = std::stoi(std::string(m[2])); - res.reason = std::string(m[3]); - - // Ignore '100 Continue' - while (res.status == 100) { - if (!line_reader.getline()) { return false; } // CRLF - if (!line_reader.getline()) { return false; } // next response line - - if (!std::regex_match(line_reader.ptr(), m, re)) { return false; } - res.version = std::string(m[1]); - res.status = std::stoi(std::string(m[2])); - res.reason = std::string(m[3]); - } - - return true; -} - -inline bool ClientImpl::send(const Request &req, Response &res) { - std::lock_guard request_mutex_guard(request_mutex_); - - { - std::lock_guard guard(socket_mutex_); - - auto is_alive = false; - if (socket_.is_open()) { - is_alive = detail::select_write(socket_.sock, 0, 0) > 0; - if (!is_alive) { close_socket(socket_, false); } - } - - if (!is_alive) { - if (!create_and_connect_socket(socket_)) { return false; } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - // TODO: refactoring - if (is_ssl()) { - auto &scli = static_cast(*this); - if (!proxy_host_.empty() && proxy_port_ != -1) { - bool success = false; - if (!scli.connect_with_proxy(socket_, res, success)) { - return success; - } - } - - if (!scli.initialize_ssl(socket_)) { return false; } - } -#endif - } - } - - auto close_connection = !keep_alive_; - - auto ret = process_socket(socket_, [&](Stream &strm) { - return handle_request(strm, req, res, close_connection); - }); - - if (close_connection || !ret) { stop_core(); } - - if (!ret) { - if (error_ == Error::Success) { error_ = Error::Unknown; } - } - - return ret; -} - -inline bool ClientImpl::handle_request(Stream &strm, const Request &req, - Response &res, bool close_connection) { - if (req.path.empty()) { - error_ = Error::Connection; - return false; - } - - bool ret; - - if (!is_ssl() && !proxy_host_.empty() && proxy_port_ != -1) { - auto req2 = req; - req2.path = "http://" + host_and_port_ + req.path; - ret = process_request(strm, req2, res, close_connection); - } else { - ret = process_request(strm, req, res, close_connection); - } - - if (!ret) { return false; } - - if (300 < res.status && res.status < 400 && follow_location_) { - ret = redirect(req, res); - } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - if ((res.status == 401 || res.status == 407) && - req.authorization_count_ < 5) { - auto is_proxy = res.status == 407; - const auto &username = - is_proxy ? proxy_digest_auth_username_ : digest_auth_username_; - const auto &password = - is_proxy ? proxy_digest_auth_password_ : digest_auth_password_; - - if (!username.empty() && !password.empty()) { - std::map auth; - if (detail::parse_www_authenticate(res, auth, is_proxy)) { - Request new_req = req; - new_req.authorization_count_ += 1; - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - new_req.headers.erase(key); - new_req.headers.insert(detail::make_digest_authentication_header( - req, auth, new_req.authorization_count_, detail::random_string(10), - username, password, is_proxy)); - - Response new_res; - - ret = send(new_req, new_res); - if (ret) { res = new_res; } - } - } - } -#endif - - return ret; -} - -inline bool ClientImpl::redirect(const Request &req, Response &res) { - if (req.redirect_count == 0) { - error_ = Error::ExceedRedirectCount; - return false; - } - - auto location = detail::decode_url(res.get_header_value("location"), true); - if (location.empty()) { return false; } - - const static std::regex re( - R"(^(?:(https?):)?(?://([^:/?#]*)(?::(\d+))?)?([^?#]*(?:\?[^#]*)?)(?:#.*)?)"); - - std::smatch m; - if (!std::regex_match(location, m, re)) { return false; } - - auto scheme = is_ssl() ? "https" : "http"; - - auto next_scheme = m[1].str(); - auto next_host = m[2].str(); - auto port_str = m[3].str(); - auto next_path = m[4].str(); - - auto next_port = port_; - if (!port_str.empty()) { - next_port = std::stoi(port_str); - } else if (!next_scheme.empty()) { - next_port = next_scheme == "https" ? 443 : 80; - } - - if (next_scheme.empty()) { next_scheme = scheme; } - if (next_host.empty()) { next_host = host_; } - if (next_path.empty()) { next_path = "/"; } - - if (next_scheme == scheme && next_host == host_ && next_port == port_) { - return detail::redirect(*this, req, res, next_path); - } else { - if (next_scheme == "https") { -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - SSLClient cli(next_host.c_str(), next_port); - cli.copy_settings(*this); - auto ret = detail::redirect(cli, req, res, next_path); - if (!ret) { error_ = cli.get_last_error(); } - return ret; -#else - return false; -#endif - } else { - ClientImpl cli(next_host.c_str(), next_port); - cli.copy_settings(*this); - auto ret = detail::redirect(cli, req, res, next_path); - if (!ret) { error_ = cli.get_last_error(); } - return ret; - } - } -} - -inline bool ClientImpl::write_request(Stream &strm, const Request &req, - bool close_connection) { - detail::BufferStream bstrm; - - // Request line - const auto &path = detail::encode_url(req.path); - - bstrm.write_format("%s %s HTTP/1.1\r\n", req.method.c_str(), path.c_str()); - - // Additonal headers - Headers headers; - if (close_connection) { headers.emplace("Connection", "close"); } - - if (!req.has_header("Host")) { - if (is_ssl()) { - if (port_ == 443) { - headers.emplace("Host", host_); - } else { - headers.emplace("Host", host_and_port_); - } - } else { - if (port_ == 80) { - headers.emplace("Host", host_); - } else { - headers.emplace("Host", host_and_port_); - } - } - } - - if (!req.has_header("Accept")) { headers.emplace("Accept", "*/*"); } - - if (!req.has_header("User-Agent")) { - headers.emplace("User-Agent", "cpp-httplib/0.7"); - } - - if (req.body.empty()) { - if (req.content_provider) { - auto length = std::to_string(req.content_length); - headers.emplace("Content-Length", length); - } else { - if (req.method == "POST" || req.method == "PUT" || - req.method == "PATCH") { - headers.emplace("Content-Length", "0"); - } - } - } else { - if (!req.has_header("Content-Type")) { - headers.emplace("Content-Type", "text/plain"); - } - - if (!req.has_header("Content-Length")) { - auto length = std::to_string(req.body.size()); - headers.emplace("Content-Length", length); - } - } - - if (!basic_auth_password_.empty()) { - headers.insert(make_basic_authentication_header( - basic_auth_username_, basic_auth_password_, false)); - } - - if (!proxy_basic_auth_username_.empty() && - !proxy_basic_auth_password_.empty()) { - headers.insert(make_basic_authentication_header( - proxy_basic_auth_username_, proxy_basic_auth_password_, true)); - } - - if (!bearer_token_auth_token_.empty()) { - headers.insert(make_bearer_token_authentication_header( - bearer_token_auth_token_, false)); - } - - if (!proxy_bearer_token_auth_token_.empty()) { - headers.insert(make_bearer_token_authentication_header( - proxy_bearer_token_auth_token_, true)); - } - - detail::write_headers(bstrm, req, headers); - - // Flush buffer - auto &data = bstrm.get_buffer(); - if (!detail::write_data(strm, data.data(), data.size())) { - error_ = Error::Write; - return false; - } - - // Body - if (req.body.empty()) { - if (req.content_provider) { - size_t offset = 0; - size_t end_offset = req.content_length; - - bool ok = true; - - DataSink data_sink; - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - if (detail::write_data(strm, d, l)) { - offset += l; - } else { - ok = false; - } - } - }; - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (offset < end_offset) { - if (!req.content_provider(offset, end_offset - offset, data_sink)) { - error_ = Error::Canceled; - return false; - } - if (!ok) { - error_ = Error::Write; - return false; - } - } - } - } else { - return detail::write_data(strm, req.body.data(), req.body.size()); - } - - return true; -} - -inline std::unique_ptr ClientImpl::send_with_content_provider( - const char *method, const char *path, const Headers &headers, - const std::string &body, size_t content_length, - ContentProvider content_provider, const char *content_type) { - - Request req; - req.method = method; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - if (content_type) { req.headers.emplace("Content-Type", content_type); } - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - if (compress_) { - detail::gzip_compressor compressor; - - if (content_provider) { - auto ok = true; - size_t offset = 0; - - DataSink data_sink; - data_sink.write = [&](const char *data, size_t data_len) { - if (ok) { - auto last = offset + data_len == content_length; - - auto ret = compressor.compress( - data, data_len, last, [&](const char *data, size_t data_len) { - req.body.append(data, data_len); - return true; - }); - - if (ret) { - offset += data_len; - } else { - ok = false; - } - } - }; - data_sink.is_writable = [&](void) { return ok && true; }; - - while (ok && offset < content_length) { - if (!content_provider(offset, content_length - offset, data_sink)) { - error_ = Error::Canceled; - return nullptr; - } - } - } else { - if (!compressor.compress(body.data(), body.size(), true, - [&](const char *data, size_t data_len) { - req.body.append(data, data_len); - return true; - })) { - return nullptr; - } - } - - req.headers.emplace("Content-Encoding", "gzip"); - } else -#endif - { - if (content_provider) { - req.content_length = content_length; - req.content_provider = std::move(content_provider); - } else { - req.body = body; - } - } - - auto res = detail::make_unique(); - - return send(req, *res) ? std::move(res) : nullptr; -} - -inline bool ClientImpl::process_request(Stream &strm, const Request &req, - Response &res, bool close_connection) { - // Send request - if (!write_request(strm, req, close_connection)) { return false; } - - // Receive response and headers - if (!read_response_line(strm, res) || - !detail::read_headers(strm, res.headers)) { - error_ = Error::Read; - return false; - } - - if (req.response_handler) { - if (!req.response_handler(res)) { - error_ = Error::Canceled; - return false; - } - } - - // Body - if (req.method != "HEAD" && req.method != "CONNECT") { - auto out = - req.content_receiver - ? static_cast( - [&](const char *buf, size_t n, uint64_t off, uint64_t len) { - auto ret = req.content_receiver(buf, n, off, len); - if (!ret) { error_ = Error::Canceled; } - return ret; - }) - : static_cast( - [&](const char *buf, size_t n, uint64_t /*off*/, - uint64_t /*len*/) { - if (res.body.size() + n > res.body.max_size()) { - return false; - } - res.body.append(buf, n); - return true; - }); - - auto progress = [&](uint64_t current, uint64_t total) { - if (!req.progress) { return true; } - auto ret = req.progress(current, total); - if (!ret) { error_ = Error::Canceled; } - return ret; - }; - - int dummy_status; - if (!detail::read_content(strm, res, (std::numeric_limits::max)(), - dummy_status, std::move(progress), std::move(out), - decompress_)) { - if (error_ != Error::Canceled) { error_ = Error::Read; } - return false; - } - } - - if (res.get_header_value("Connection") == "close" || - (res.version == "HTTP/1.0" && res.reason != "Connection established")) { - stop_core(); - } - - // Log - if (logger_) { logger_(req, res); } - - return true; -} - -inline bool -ClientImpl::process_socket(Socket &socket, - std::function callback) { - return detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, - write_timeout_usec_, std::move(callback)); -} - -inline bool ClientImpl::is_ssl() const { return false; } - -inline Result ClientImpl::Get(const char *path) { - return Get(path, Headers(), Progress()); -} - -inline Result ClientImpl::Get(const char *path, Progress progress) { - return Get(path, Headers(), std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers) { - return Get(path, headers, Progress()); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - Progress progress) { - Request req; - req.method = "GET"; - req.path = path; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.progress = std::move(progress); - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Get(const char *path, - ContentReceiver content_receiver) { - return Get(path, Headers(), nullptr, std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, Headers(), nullptr, std::move(content_receiver), - std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver) { - return Get(path, headers, nullptr, std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, headers, nullptr, std::move(content_receiver), - std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return Get(path, Headers(), std::move(response_handler), - std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return Get(path, headers, std::move(response_handler), - std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, - ResponseHandler response_handler, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, Headers(), std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver, - Progress progress) { - Request req; - req.method = "GET"; - req.path = path; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.response_handler = std::move(response_handler); - req.content_receiver = - [content_receiver](const char *data, size_t data_length, - uint64_t /*offset*/, uint64_t /*total_length*/) { - return content_receiver(data, data_length); - }; - req.progress = std::move(progress); - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Head(const char *path) { - return Head(path, Headers()); -} - -inline Result ClientImpl::Head(const char *path, const Headers &headers) { - Request req; - req.method = "HEAD"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path) { - return Post(path, std::string(), nullptr); -} - -inline Result ClientImpl::Post(const char *path, const std::string &body, - const char *content_type) { - return Post(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("POST", path, headers, body, 0, nullptr, - content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path, const Params ¶ms) { - return Post(path, Headers(), params); -} - -inline Result ClientImpl::Post(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Post(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "POST", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const Params ¶ms) { - auto query = detail::params_to_query_str(params); - return Post(path, headers, query, "application/x-www-form-urlencoded"); -} - -inline Result ClientImpl::Post(const char *path, - const MultipartFormDataItems &items) { - return Post(path, Headers(), items); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items) { - return Post(path, headers, items, detail::make_multipart_data_boundary()); -} -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, - const std::string &boundary) { - for (size_t i = 0; i < boundary.size(); i++) { - char c = boundary[i]; - if (!std::isalnum(c) && c != '-' && c != '_') { - error_ = Error::UnsupportedMultipartBoundaryChars; - return Result{nullptr, error_}; - } - } - - std::string body; - - for (const auto &item : items) { - body += "--" + boundary + "\r\n"; - body += "Content-Disposition: form-data; name=\"" + item.name + "\""; - if (!item.filename.empty()) { - body += "; filename=\"" + item.filename + "\""; - } - body += "\r\n"; - if (!item.content_type.empty()) { - body += "Content-Type: " + item.content_type + "\r\n"; - } - body += "\r\n"; - body += item.content + "\r\n"; - } - - body += "--" + boundary + "--\r\n"; - - std::string content_type = "multipart/form-data; boundary=" + boundary; - return Post(path, headers, body, content_type.c_str()); -} - -inline Result ClientImpl::Put(const char *path) { - return Put(path, std::string(), nullptr); -} - -inline Result ClientImpl::Put(const char *path, const std::string &body, - const char *content_type) { - return Put(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("PUT", path, headers, body, 0, nullptr, - content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Put(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Put(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "PUT", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Put(const char *path, const Params ¶ms) { - return Put(path, Headers(), params); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - const Params ¶ms) { - auto query = detail::params_to_query_str(params); - return Put(path, headers, query, "application/x-www-form-urlencoded"); -} - -inline Result ClientImpl::Patch(const char *path, const std::string &body, - const char *content_type) { - return Patch(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Patch(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("PATCH", path, headers, body, 0, - nullptr, content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Patch(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Patch(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Patch(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "PATCH", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Delete(const char *path) { - return Delete(path, Headers(), std::string(), nullptr); -} - -inline Result ClientImpl::Delete(const char *path, const std::string &body, - const char *content_type) { - return Delete(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Delete(const char *path, const Headers &headers) { - return Delete(path, headers, std::string(), nullptr); -} - -inline Result ClientImpl::Delete(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - Request req; - req.method = "DELETE"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - if (content_type) { req.headers.emplace("Content-Type", content_type); } - req.body = body; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Options(const char *path) { - return Options(path, Headers()); -} - -inline Result ClientImpl::Options(const char *path, const Headers &headers) { - Request req; - req.method = "OPTIONS"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline size_t ClientImpl::is_socket_open() const { - std::lock_guard guard(socket_mutex_); - return socket_.is_open(); -} - -inline void ClientImpl::stop() { - stop_core(); - error_ = Error::Canceled; -} - -inline void ClientImpl::stop_core() { - std::lock_guard guard(socket_mutex_); - if (socket_.is_open()) { - detail::shutdown_socket(socket_.sock); - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - close_socket(socket_, true); - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } -} - -inline void ClientImpl::set_connection_timeout(time_t sec, time_t usec) { - connection_timeout_sec_ = sec; - connection_timeout_usec_ = usec; -} - -inline void ClientImpl::set_read_timeout(time_t sec, time_t usec) { - read_timeout_sec_ = sec; - read_timeout_usec_ = usec; -} - -inline void ClientImpl::set_write_timeout(time_t sec, time_t usec) { - write_timeout_sec_ = sec; - write_timeout_usec_ = usec; -} - -inline void ClientImpl::set_basic_auth(const char *username, - const char *password) { - basic_auth_username_ = username; - basic_auth_password_ = password; -} - -inline void ClientImpl::set_bearer_token_auth(const char *token) { - bearer_token_auth_token_ = token; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::set_digest_auth(const char *username, - const char *password) { - digest_auth_username_ = username; - digest_auth_password_ = password; -} -#endif - -inline void ClientImpl::set_keep_alive(bool on) { keep_alive_ = on; } - -inline void ClientImpl::set_follow_location(bool on) { follow_location_ = on; } - -inline void ClientImpl::set_default_headers(Headers headers) { - default_headers_ = std::move(headers); -} - -inline void ClientImpl::set_tcp_nodelay(bool on) { tcp_nodelay_ = on; } - -inline void ClientImpl::set_socket_options(SocketOptions socket_options) { - socket_options_ = std::move(socket_options); -} - -inline void ClientImpl::set_compress(bool on) { compress_ = on; } - -inline void ClientImpl::set_decompress(bool on) { decompress_ = on; } - -inline void ClientImpl::set_interface(const char *intf) { interface_ = intf; } - -inline void ClientImpl::set_proxy(const char *host, int port) { - proxy_host_ = host; - proxy_port_ = port; -} - -inline void ClientImpl::set_proxy_basic_auth(const char *username, - const char *password) { - proxy_basic_auth_username_ = username; - proxy_basic_auth_password_ = password; -} - -inline void ClientImpl::set_proxy_bearer_token_auth(const char *token) { - proxy_bearer_token_auth_token_ = token; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::set_proxy_digest_auth(const char *username, - const char *password) { - proxy_digest_auth_username_ = username; - proxy_digest_auth_password_ = password; -} -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::enable_server_certificate_verification(bool enabled) { - server_certificate_verification_ = enabled; -} -#endif - -inline void ClientImpl::set_logger(Logger logger) { - logger_ = std::move(logger); -} - -/* - * SSL Implementation - */ -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -namespace detail { - -template -inline SSL *ssl_new(socket_t sock, SSL_CTX *ctx, std::mutex &ctx_mutex, - U SSL_connect_or_accept, V setup) { - SSL *ssl = nullptr; - { - std::lock_guard guard(ctx_mutex); - ssl = SSL_new(ctx); - } - - if (ssl) { - set_nonblocking(sock, true); - auto bio = BIO_new_socket(static_cast(sock), BIO_NOCLOSE); - BIO_set_nbio(bio, 1); - SSL_set_bio(ssl, bio, bio); - - if (!setup(ssl) || SSL_connect_or_accept(ssl) != 1) { - SSL_shutdown(ssl); - { - std::lock_guard guard(ctx_mutex); - SSL_free(ssl); - } - set_nonblocking(sock, false); - return nullptr; - } - BIO_set_nbio(bio, 0); - set_nonblocking(sock, false); - } - - return ssl; -} - -inline void ssl_delete(std::mutex &ctx_mutex, SSL *ssl, - bool process_socket_ret) { - if (process_socket_ret) { - SSL_shutdown(ssl); // shutdown only if not already closed by remote - } - - std::lock_guard guard(ctx_mutex); - SSL_free(ssl); -} - -template -bool ssl_connect_or_accept_nonblocking(socket_t sock, SSL *ssl, - U ssl_connect_or_accept, - time_t timeout_sec, - time_t timeout_usec) { - int res = 0; - while ((res = ssl_connect_or_accept(ssl)) != 1) { - auto err = SSL_get_error(ssl, res); - switch (err) { - case SSL_ERROR_WANT_READ: - if (select_read(sock, timeout_sec, timeout_usec) > 0) { continue; } - break; - case SSL_ERROR_WANT_WRITE: - if (select_write(sock, timeout_sec, timeout_usec) > 0) { continue; } - break; - default: break; - } - return false; - } - return true; -} - -template -inline bool -process_server_socket_ssl(SSL *ssl, socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, - time_t read_timeout_sec, time_t read_timeout_usec, - time_t write_timeout_sec, time_t write_timeout_usec, - T callback) { - return process_server_socket_core( - sock, keep_alive_max_count, keep_alive_timeout_sec, - [&](bool close_connection, bool &connection_closed) { - SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm, close_connection, connection_closed); - }); -} - -template -inline bool -process_client_socket_ssl(SSL *ssl, socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm); -} - -#if OPENSSL_VERSION_NUMBER < 0x10100000L -static std::shared_ptr> openSSL_locks_; - -class SSLThreadLocks { -public: - SSLThreadLocks() { - openSSL_locks_ = - std::make_shared>(CRYPTO_num_locks()); - CRYPTO_set_locking_callback(locking_callback); - } - - ~SSLThreadLocks() { CRYPTO_set_locking_callback(nullptr); } - -private: - static void locking_callback(int mode, int type, const char * /*file*/, - int /*line*/) { - auto &lk = (*openSSL_locks_)[static_cast(type)]; - if (mode & CRYPTO_LOCK) { - lk.lock(); - } else { - lk.unlock(); - } - } -}; - -#endif - -class SSLInit { -public: - SSLInit() { -#if OPENSSL_VERSION_NUMBER < 0x1010001fL - SSL_load_error_strings(); - SSL_library_init(); -#else - OPENSSL_init_ssl( - OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); -#endif - } - - ~SSLInit() { -#if OPENSSL_VERSION_NUMBER < 0x1010001fL - ERR_free_strings(); -#endif - } - -private: -#if OPENSSL_VERSION_NUMBER < 0x10100000L - SSLThreadLocks thread_init_; -#endif -}; - -// SSL socket stream implementation -inline SSLSocketStream::SSLSocketStream(socket_t sock, SSL *ssl, - time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec) - : sock_(sock), ssl_(ssl), read_timeout_sec_(read_timeout_sec), - read_timeout_usec_(read_timeout_usec), - write_timeout_sec_(write_timeout_sec), - write_timeout_usec_(write_timeout_usec) { - SSL_clear_mode(ssl, SSL_MODE_AUTO_RETRY); -} - -inline SSLSocketStream::~SSLSocketStream() {} - -inline bool SSLSocketStream::is_readable() const { - return detail::select_read(sock_, read_timeout_sec_, read_timeout_usec_) > 0; -} - -inline bool SSLSocketStream::is_writable() const { - return detail::select_write(sock_, write_timeout_sec_, write_timeout_usec_) > - 0; -} - -inline ssize_t SSLSocketStream::read(char *ptr, size_t size) { - if (SSL_pending(ssl_) > 0) { - return SSL_read(ssl_, ptr, static_cast(size)); - } else if (is_readable()) { - auto ret = SSL_read(ssl_, ptr, static_cast(size)); - if (ret < 0) { - auto err = SSL_get_error(ssl_, ret); - while (err == SSL_ERROR_WANT_READ) { - if (SSL_pending(ssl_) > 0) { - return SSL_read(ssl_, ptr, static_cast(size)); - } else if (is_readable()) { - ret = SSL_read(ssl_, ptr, static_cast(size)); - if (ret >= 0) { return ret; } - err = SSL_get_error(ssl_, ret); - } else { - return -1; - } - } - } - return ret; - } - return -1; -} - -inline ssize_t SSLSocketStream::write(const char *ptr, size_t size) { - if (is_writable()) { return SSL_write(ssl_, ptr, static_cast(size)); } - return -1; -} - -inline void SSLSocketStream::get_remote_ip_and_port(std::string &ip, - int &port) const { - detail::get_remote_ip_and_port(sock_, ip, port); -} - -inline socket_t SSLSocketStream::socket() const { return sock_; } - -static SSLInit sslinit_; - -} // namespace detail - -// SSL HTTP server implementation -inline SSLServer::SSLServer(const char *cert_path, const char *private_key_path, - const char *client_ca_cert_file_path, - const char *client_ca_cert_dir_path) { - ctx_ = SSL_CTX_new(SSLv23_server_method()); - - if (ctx_) { - SSL_CTX_set_options(ctx_, - SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | - SSL_OP_NO_COMPRESSION | - SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); - - // auto ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); - // SSL_CTX_set_tmp_ecdh(ctx_, ecdh); - // EC_KEY_free(ecdh); - - if (SSL_CTX_use_certificate_chain_file(ctx_, cert_path) != 1 || - SSL_CTX_use_PrivateKey_file(ctx_, private_key_path, SSL_FILETYPE_PEM) != - 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } else if (client_ca_cert_file_path || client_ca_cert_dir_path) { - // if (client_ca_cert_file_path) { - // auto list = SSL_load_client_CA_file(client_ca_cert_file_path); - // SSL_CTX_set_client_CA_list(ctx_, list); - // } - - SSL_CTX_load_verify_locations(ctx_, client_ca_cert_file_path, - client_ca_cert_dir_path); - - SSL_CTX_set_verify( - ctx_, - SSL_VERIFY_PEER | - SSL_VERIFY_FAIL_IF_NO_PEER_CERT, // SSL_VERIFY_CLIENT_ONCE, - nullptr); - } - } -} - -inline SSLServer::SSLServer(X509 *cert, EVP_PKEY *private_key, - X509_STORE *client_ca_cert_store) { - ctx_ = SSL_CTX_new(SSLv23_server_method()); - - if (ctx_) { - SSL_CTX_set_options(ctx_, - SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | - SSL_OP_NO_COMPRESSION | - SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); - - if (SSL_CTX_use_certificate(ctx_, cert) != 1 || - SSL_CTX_use_PrivateKey(ctx_, private_key) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } else if (client_ca_cert_store) { - - SSL_CTX_set_cert_store(ctx_, client_ca_cert_store); - - SSL_CTX_set_verify( - ctx_, - SSL_VERIFY_PEER | - SSL_VERIFY_FAIL_IF_NO_PEER_CERT, // SSL_VERIFY_CLIENT_ONCE, - nullptr); - } - } -} - -inline SSLServer::~SSLServer() { - if (ctx_) { SSL_CTX_free(ctx_); } -} - -inline bool SSLServer::is_valid() const { return ctx_; } - -inline bool SSLServer::process_and_close_socket(socket_t sock) { - auto ssl = detail::ssl_new( - sock, ctx_, ctx_mutex_, - [&](SSL *ssl) { - return detail::ssl_connect_or_accept_nonblocking( - sock, ssl, SSL_accept, read_timeout_sec_, read_timeout_usec_); - }, - [](SSL * /*ssl*/) { return true; }); - - if (ssl) { - auto ret = detail::process_server_socket_ssl( - ssl, sock, keep_alive_max_count_, keep_alive_timeout_sec_, - read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, - write_timeout_usec_, - [this, ssl](Stream &strm, bool close_connection, - bool &connection_closed) { - return process_request(strm, close_connection, connection_closed, - [&](Request &req) { req.ssl = ssl; }); - }); - - detail::ssl_delete(ctx_mutex_, ssl, ret); - detail::shutdown_socket(sock); - detail::close_socket(sock); - return ret; - } - - detail::shutdown_socket(sock); - detail::close_socket(sock); - return false; -} - -// SSL HTTP client implementation -inline SSLClient::SSLClient(const std::string &host) - : SSLClient(host, 443, std::string(), std::string()) {} - -inline SSLClient::SSLClient(const std::string &host, int port) - : SSLClient(host, port, std::string(), std::string()) {} - -inline SSLClient::SSLClient(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : ClientImpl(host, port, client_cert_path, client_key_path) { - ctx_ = SSL_CTX_new(SSLv23_client_method()); - - detail::split(&host_[0], &host_[host_.size()], '.', - [&](const char *b, const char *e) { - host_components_.emplace_back(std::string(b, e)); - }); - if (!client_cert_path.empty() && !client_key_path.empty()) { - if (SSL_CTX_use_certificate_file(ctx_, client_cert_path.c_str(), - SSL_FILETYPE_PEM) != 1 || - SSL_CTX_use_PrivateKey_file(ctx_, client_key_path.c_str(), - SSL_FILETYPE_PEM) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } - } -} - -inline SSLClient::SSLClient(const std::string &host, int port, - X509 *client_cert, EVP_PKEY *client_key) - : ClientImpl(host, port) { - ctx_ = SSL_CTX_new(SSLv23_client_method()); - - detail::split(&host_[0], &host_[host_.size()], '.', - [&](const char *b, const char *e) { - host_components_.emplace_back(std::string(b, e)); - }); - if (client_cert != nullptr && client_key != nullptr) { - if (SSL_CTX_use_certificate(ctx_, client_cert) != 1 || - SSL_CTX_use_PrivateKey(ctx_, client_key) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } - } -} - -inline SSLClient::~SSLClient() { - if (ctx_) { SSL_CTX_free(ctx_); } -} - -inline bool SSLClient::is_valid() const { return ctx_; } - -inline void SSLClient::set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path) { - if (ca_cert_file_path) { ca_cert_file_path_ = ca_cert_file_path; } - if (ca_cert_dir_path) { ca_cert_dir_path_ = ca_cert_dir_path; } -} - -inline void SSLClient::set_ca_cert_store(X509_STORE *ca_cert_store) { - if (ca_cert_store) { - if (ctx_) { - if (SSL_CTX_get_cert_store(ctx_) != ca_cert_store) { - // Free memory allocated for old cert and use new store `ca_cert_store` - SSL_CTX_set_cert_store(ctx_, ca_cert_store); - } - } else { - X509_STORE_free(ca_cert_store); - } - } -} - -inline long SSLClient::get_openssl_verify_result() const { - return verify_result_; -} - -inline SSL_CTX *SSLClient::ssl_context() const { return ctx_; } - -inline bool SSLClient::create_and_connect_socket(Socket &socket) { - return is_valid() && ClientImpl::create_and_connect_socket(socket); -} - -inline bool SSLClient::connect_with_proxy(Socket &socket, Response &res, - bool &success) { - success = true; - Response res2; - - if (!detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, [&](Stream &strm) { - Request req2; - req2.method = "CONNECT"; - req2.path = host_and_port_; - return process_request(strm, req2, res2, false); - })) { - close_socket(socket, true); - success = false; - return false; - } - - if (res2.status == 407) { - if (!proxy_digest_auth_username_.empty() && - !proxy_digest_auth_password_.empty()) { - std::map auth; - if (detail::parse_www_authenticate(res2, auth, true)) { - Response res3; - if (!detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, [&](Stream &strm) { - Request req3; - req3.method = "CONNECT"; - req3.path = host_and_port_; - req3.headers.insert(detail::make_digest_authentication_header( - req3, auth, 1, detail::random_string(10), - proxy_digest_auth_username_, proxy_digest_auth_password_, - true)); - return process_request(strm, req3, res3, false); - })) { - close_socket(socket, true); - success = false; - return false; - } - } - } else { - res = res2; - return false; - } - } - - return true; -} - -inline bool SSLClient::load_certs() { - bool ret = true; - - std::call_once(initialize_cert_, [&]() { - std::lock_guard guard(ctx_mutex_); - if (!ca_cert_file_path_.empty()) { - if (!SSL_CTX_load_verify_locations(ctx_, ca_cert_file_path_.c_str(), - nullptr)) { - ret = false; - } - } else if (!ca_cert_dir_path_.empty()) { - if (!SSL_CTX_load_verify_locations(ctx_, nullptr, - ca_cert_dir_path_.c_str())) { - ret = false; - } - } else { -#ifdef _WIN32 - detail::load_system_certs_on_windows(SSL_CTX_get_cert_store(ctx_)); -#else - SSL_CTX_set_default_verify_paths(ctx_); -#endif - } - }); - - return ret; -} - -inline bool SSLClient::initialize_ssl(Socket &socket) { - auto ssl = detail::ssl_new( - socket.sock, ctx_, ctx_mutex_, - [&](SSL *ssl) { - if (server_certificate_verification_) { - if (!load_certs()) { - error_ = Error::SSLLoadingCerts; - return false; - } - SSL_set_verify(ssl, SSL_VERIFY_NONE, nullptr); - } - - if (!detail::ssl_connect_or_accept_nonblocking( - socket.sock, ssl, SSL_connect, connection_timeout_sec_, - connection_timeout_usec_)) { - error_ = Error::SSLConnection; - return false; - } - - if (server_certificate_verification_) { - verify_result_ = SSL_get_verify_result(ssl); - - if (verify_result_ != X509_V_OK) { - error_ = Error::SSLServerVerification; - return false; - } - - auto server_cert = SSL_get_peer_certificate(ssl); - - if (server_cert == nullptr) { - error_ = Error::SSLServerVerification; - return false; - } - - if (!verify_host(server_cert)) { - X509_free(server_cert); - error_ = Error::SSLServerVerification; - return false; - } - X509_free(server_cert); - } - - return true; - }, - [&](SSL *ssl) { - SSL_set_tlsext_host_name(ssl, host_.c_str()); - return true; - }); - - if (ssl) { - socket.ssl = ssl; - return true; - } - - close_socket(socket, false); - return false; -} - -inline void SSLClient::close_socket(Socket &socket, bool process_socket_ret) { - detail::close_socket(socket.sock); - socket_.sock = INVALID_SOCKET; - if (socket.ssl) { - detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret); - socket_.ssl = nullptr; - } -} - -inline bool -SSLClient::process_socket(Socket &socket, - std::function callback) { - assert(socket.ssl); - return detail::process_client_socket_ssl( - socket.ssl, socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, std::move(callback)); -} - -inline bool SSLClient::is_ssl() const { return true; } - -inline bool SSLClient::verify_host(X509 *server_cert) const { - /* Quote from RFC2818 section 3.1 "Server Identity" - - If a subjectAltName extension of type dNSName is present, that MUST - be used as the identity. Otherwise, the (most specific) Common Name - field in the Subject field of the certificate MUST be used. Although - the use of the Common Name is existing practice, it is deprecated and - Certification Authorities are encouraged to use the dNSName instead. - - Matching is performed using the matching rules specified by - [RFC2459]. If more than one identity of a given type is present in - the certificate (e.g., more than one dNSName name, a match in any one - of the set is considered acceptable.) Names may contain the wildcard - character * which is considered to match any single domain name - component or component fragment. E.g., *.a.com matches foo.a.com but - not bar.foo.a.com. f*.com matches foo.com but not bar.com. - - In some cases, the URI is specified as an IP address rather than a - hostname. In this case, the iPAddress subjectAltName must be present - in the certificate and must exactly match the IP in the URI. - - */ - return verify_host_with_subject_alt_name(server_cert) || - verify_host_with_common_name(server_cert); -} - -inline bool -SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const { - auto ret = false; - - auto type = GEN_DNS; - - struct in6_addr addr6; - struct in_addr addr; - size_t addr_len = 0; - -#ifndef __MINGW32__ - if (inet_pton(AF_INET6, host_.c_str(), &addr6)) { - type = GEN_IPADD; - addr_len = sizeof(struct in6_addr); - } else if (inet_pton(AF_INET, host_.c_str(), &addr)) { - type = GEN_IPADD; - addr_len = sizeof(struct in_addr); - } -#endif - - auto alt_names = static_cast( - X509_get_ext_d2i(server_cert, NID_subject_alt_name, nullptr, nullptr)); - - if (alt_names) { - auto dsn_matched = false; - auto ip_mached = false; - - auto count = sk_GENERAL_NAME_num(alt_names); - - for (decltype(count) i = 0; i < count && !dsn_matched; i++) { - auto val = sk_GENERAL_NAME_value(alt_names, i); - if (val->type == type) { - auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5); - auto name_len = (size_t)ASN1_STRING_length(val->d.ia5); - - switch (type) { - case GEN_DNS: dsn_matched = check_host_name(name, name_len); break; - - case GEN_IPADD: - if (!memcmp(&addr6, name, addr_len) || - !memcmp(&addr, name, addr_len)) { - ip_mached = true; - } - break; - } - } - } - - if (dsn_matched || ip_mached) { ret = true; } - } - - GENERAL_NAMES_free((STACK_OF(GENERAL_NAME) *)alt_names); - return ret; -} - -inline bool SSLClient::verify_host_with_common_name(X509 *server_cert) const { - const auto subject_name = X509_get_subject_name(server_cert); - - if (subject_name != nullptr) { - char name[BUFSIZ]; - auto name_len = X509_NAME_get_text_by_NID(subject_name, NID_commonName, - name, sizeof(name)); - - if (name_len != -1) { - return check_host_name(name, static_cast(name_len)); - } - } - - return false; -} - -inline bool SSLClient::check_host_name(const char *pattern, - size_t pattern_len) const { - if (host_.size() == pattern_len && host_ == pattern) { return true; } - - // Wildcard match - // https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/376484 - std::vector pattern_components; - detail::split(&pattern[0], &pattern[pattern_len], '.', - [&](const char *b, const char *e) { - pattern_components.emplace_back(std::string(b, e)); - }); - - if (host_components_.size() != pattern_components.size()) { return false; } - - auto itr = pattern_components.begin(); - for (const auto &h : host_components_) { - auto &p = *itr; - if (p != h && p != "*") { - auto partial_match = (p.size() > 0 && p[p.size() - 1] == '*' && - !p.compare(0, p.size() - 1, h)); - if (!partial_match) { return false; } - } - ++itr; - } - - return true; -} -#endif - -// Universal client implementation -inline Client::Client(const char *scheme_host_port) - : Client(scheme_host_port, std::string(), std::string()) {} - -inline Client::Client(const char *scheme_host_port, - const std::string &client_cert_path, - const std::string &client_key_path) { - const static std::regex re(R"(^(?:([a-z]+)://)?([^:/?#]+)(?::(\d+))?)"); - - std::cmatch m; - if (std::regex_match(scheme_host_port, m, re)) { - auto scheme = m[1].str(); - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - if (!scheme.empty() && (scheme != "http" && scheme != "https")) { -#else - if (!scheme.empty() && scheme != "http") { -#endif - std::string msg = "'" + scheme + "' scheme is not supported."; - throw std::invalid_argument(msg); - return; - } - - auto is_ssl = scheme == "https"; - - auto host = m[2].str(); - - auto port_str = m[3].str(); - auto port = !port_str.empty() ? std::stoi(port_str) : (is_ssl ? 443 : 80); - - if (is_ssl) { -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - cli_ = detail::make_unique(host.c_str(), port, - client_cert_path, client_key_path); - is_ssl_ = is_ssl; -#endif - } else { - cli_ = detail::make_unique(host.c_str(), port, - client_cert_path, client_key_path); - } - } else { - cli_ = detail::make_unique(scheme_host_port, 80, - client_cert_path, client_key_path); - } -} - -inline Client::Client(const std::string &host, int port) - : cli_(detail::make_unique(host, port)) {} - -inline Client::Client(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : cli_(detail::make_unique(host, port, client_cert_path, - client_key_path)) {} - -inline Client::~Client() {} - -inline bool Client::is_valid() const { - return cli_ != nullptr && cli_->is_valid(); -} - -inline Result Client::Get(const char *path) { return cli_->Get(path); } -inline Result Client::Get(const char *path, const Headers &headers) { - return cli_->Get(path, headers); -} -inline Result Client::Get(const char *path, Progress progress) { - return cli_->Get(path, std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - Progress progress) { - return cli_->Get(path, headers, std::move(progress)); -} -inline Result Client::Get(const char *path, ContentReceiver content_receiver) { - return cli_->Get(path, std::move(content_receiver)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver) { - return cli_->Get(path, headers, std::move(content_receiver)); -} -inline Result Client::Get(const char *path, ContentReceiver content_receiver, - Progress progress) { - return cli_->Get(path, std::move(content_receiver), std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, headers, std::move(content_receiver), - std::move(progress)); -} -inline Result Client::Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver) { - return cli_->Get(path, std::move(response_handler), - std::move(content_receiver)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return cli_->Get(path, headers, std::move(response_handler), - std::move(content_receiver)); -} -inline Result Client::Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, headers, std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} - -inline Result Client::Head(const char *path) { return cli_->Head(path); } -inline Result Client::Head(const char *path, const Headers &headers) { - return cli_->Head(path, headers); -} - -inline Result Client::Post(const char *path) { return cli_->Post(path); } -inline Result Client::Post(const char *path, const std::string &body, - const char *content_type) { - return cli_->Post(path, body, content_type); -} -inline Result Client::Post(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Post(path, headers, body, content_type); -} -inline Result Client::Post(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Post(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Post(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Post(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Post(const char *path, const Params ¶ms) { - return cli_->Post(path, params); -} -inline Result Client::Post(const char *path, const Headers &headers, - const Params ¶ms) { - return cli_->Post(path, headers, params); -} -inline Result Client::Post(const char *path, - const MultipartFormDataItems &items) { - return cli_->Post(path, items); -} -inline Result Client::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items) { - return cli_->Post(path, headers, items); -} -inline Result Client::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, - const std::string &boundary) { - return cli_->Post(path, headers, items, boundary); -} -inline Result Client::Put(const char *path) { return cli_->Put(path); } -inline Result Client::Put(const char *path, const std::string &body, - const char *content_type) { - return cli_->Put(path, body, content_type); -} -inline Result Client::Put(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Put(path, headers, body, content_type); -} -inline Result Client::Put(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Put(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Put(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Put(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Put(const char *path, const Params ¶ms) { - return cli_->Put(path, params); -} -inline Result Client::Put(const char *path, const Headers &headers, - const Params ¶ms) { - return cli_->Put(path, headers, params); -} -inline Result Client::Patch(const char *path, const std::string &body, - const char *content_type) { - return cli_->Patch(path, body, content_type); -} -inline Result Client::Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Patch(path, headers, body, content_type); -} -inline Result Client::Patch(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Patch(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Patch(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Patch(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Delete(const char *path) { return cli_->Delete(path); } -inline Result Client::Delete(const char *path, const std::string &body, - const char *content_type) { - return cli_->Delete(path, body, content_type); -} -inline Result Client::Delete(const char *path, const Headers &headers) { - return cli_->Delete(path, headers); -} -inline Result Client::Delete(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - return cli_->Delete(path, headers, body, content_type); -} -inline Result Client::Options(const char *path) { return cli_->Options(path); } -inline Result Client::Options(const char *path, const Headers &headers) { - return cli_->Options(path, headers); -} - -inline bool Client::send(const Request &req, Response &res) { - return cli_->send(req, res); -} - -inline size_t Client::is_socket_open() const { return cli_->is_socket_open(); } - -inline void Client::stop() { cli_->stop(); } - -inline void Client::set_default_headers(Headers headers) { - cli_->set_default_headers(std::move(headers)); -} - -inline void Client::set_tcp_nodelay(bool on) { cli_->set_tcp_nodelay(on); } -inline void Client::set_socket_options(SocketOptions socket_options) { - cli_->set_socket_options(std::move(socket_options)); -} - -inline void Client::set_connection_timeout(time_t sec, time_t usec) { - cli_->set_connection_timeout(sec, usec); -} -inline void Client::set_read_timeout(time_t sec, time_t usec) { - cli_->set_read_timeout(sec, usec); -} -inline void Client::set_write_timeout(time_t sec, time_t usec) { - cli_->set_write_timeout(sec, usec); -} - -inline void Client::set_basic_auth(const char *username, const char *password) { - cli_->set_basic_auth(username, password); -} -inline void Client::set_bearer_token_auth(const char *token) { - cli_->set_bearer_token_auth(token); -} -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_digest_auth(const char *username, - const char *password) { - cli_->set_digest_auth(username, password); -} -#endif - -inline void Client::set_keep_alive(bool on) { cli_->set_keep_alive(on); } -inline void Client::set_follow_location(bool on) { - cli_->set_follow_location(on); -} - -inline void Client::set_compress(bool on) { cli_->set_compress(on); } - -inline void Client::set_decompress(bool on) { cli_->set_decompress(on); } - -inline void Client::set_interface(const char *intf) { - cli_->set_interface(intf); -} - -inline void Client::set_proxy(const char *host, int port) { - cli_->set_proxy(host, port); -} -inline void Client::set_proxy_basic_auth(const char *username, - const char *password) { - cli_->set_proxy_basic_auth(username, password); -} -inline void Client::set_proxy_bearer_token_auth(const char *token) { - cli_->set_proxy_bearer_token_auth(token); -} -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_proxy_digest_auth(const char *username, - const char *password) { - cli_->set_proxy_digest_auth(username, password); -} -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::enable_server_certificate_verification(bool enabled) { - cli_->enable_server_certificate_verification(enabled); -} -#endif - -inline void Client::set_logger(Logger logger) { cli_->set_logger(logger); } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path) { - if (is_ssl_) { - static_cast(*cli_).set_ca_cert_path(ca_cert_file_path, - ca_cert_dir_path); - } -} - -inline void Client::set_ca_cert_store(X509_STORE *ca_cert_store) { - if (is_ssl_) { - static_cast(*cli_).set_ca_cert_store(ca_cert_store); - } -} - -inline long Client::get_openssl_verify_result() const { - if (is_ssl_) { - return static_cast(*cli_).get_openssl_verify_result(); - } - return -1; // NOTE: -1 doesn't match any of X509_V_ERR_??? -} - -inline SSL_CTX *Client::ssl_context() const { - if (is_ssl_) { return static_cast(*cli_).ssl_context(); } - return nullptr; -} -#endif - -// ---------------------------------------------------------------------------- - -} // namespace httplib - -#endif // CPPHTTPLIB_HTTPLIB_H diff --git a/src/my-online-judge-master/MYOJ/comm/util.hpp b/src/my-online-judge-master/MYOJ/comm/util.hpp deleted file mode 100644 index b160001..0000000 --- a/src/my-online-judge-master/MYOJ/comm/util.hpp +++ /dev/null @@ -1,202 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "../comm/Log.hpp" - -namespace ns_util -{ - // 公共编译路径 - const std::string defaultTempPath = "./temp/"; - - // 给文件名加路径和后缀 - class pathUtil - { - public: - pathUtil() - { - } - ~pathUtil() - { - } - - // 给要文件添加后缀,路径 - static std::string addSuffix(const std::string &file_name, const std::string &suffix) - { - return defaultTempPath + file_name + suffix; - } - - // 程序编译时的三个临时文件 - // 生成源文件 - static std::string src(const std::string &file_name) - { - return addSuffix(file_name, ".cpp"); - } - - // 生成可执行文件 - static std::string exe(const std::string &file_name) - { - return addSuffix(file_name, ".exe"); - } - - // 生成编译错误的完整文件名 - static std::string compilerError(const std::string &file_name) - { - return addSuffix(file_name, ".compile_error"); - } - - // 程序运行时的三个临时文件 - // 生成标准输入的完整文件名(标准输入所在路径+后缀)(这个地方函数名必须大写,否则命名冲突) - static std::string Stdin(const std::string &file_name) - { - return addSuffix(file_name, ".stdin"); - } - // 生成标准输出的完整文件名(标准输出所在路径+后缀) - static std::string Stdout(const std::string &file_name) - { - return addSuffix(file_name, ".stdout"); - } - // 生成标准错误的完整文件名(标准错误所在路径+后缀) - static std::string Stderr(const std::string &file_name) - { - return addSuffix(file_name, ".stderr"); - } - }; - - // 判断文件是否存在 - class fileUtil - { - public: - fileUtil() - { - } - ~fileUtil() - { - } - static bool isFileExist(const std::string &file_name) - { - struct stat buffer; - return (stat(file_name.c_str(), &buffer) == 0); - } - - // keep表示是否需要\n换行符 - static bool readFile(const std::string &file_name, std::string *input, bool keep = false) - { - input->clear(); - - std::ifstream in(file_name); - if (!in.is_open()) - { - return false; - } - - std::string line; - - while (getline(in, line)) - { - *input += line; - *input += (keep ? "\n" : ""); - } - - in.close(); - return true; - } - - static bool writeFile(const std::string &file_name, const std::string &output) - { - std::ofstream out(file_name); - if (!out.is_open()) - { - return false; - } - - out.write(output.c_str(), output.size()); - out.close(); - return true; - } - }; - - class TimeUtil - { - public: - // 获取时间戳(秒级) - static std::string GetTimeStamp() - { - struct timeval _time; - gettimeofday(&_time, nullptr); - return std::to_string(_time.tv_sec); // 累积到现在的秒数 - } - // 获取时间戳(毫秒级) - static std::string GetTimeMs() - { - struct timeval _time; - gettimeofday(&_time, nullptr); - return std::to_string(_time.tv_sec * 1000 + _time.tv_usec / 1000); - } - }; - - // 生成唯一的文件名 - class nameUtil - { - public: - nameUtil() - { - } - ~nameUtil() - { - } - static std::string getUniqueName() - { - static std::atomic_uint id(0); // atomic是C++提供的原子性计数器 - id++; - std::string ms = TimeUtil::GetTimeMs(); - std::string uniq_id = to_string(id); - return ms + "-" + uniq_id; - // // 获取当前时间戳 - // auto now = std::chrono::system_clock::now(); - // auto millis = std::chrono::duration_cast(now.time_since_epoch()).count(); - - // // 使用随机数生成器 - // std::random_device rd; // 非确定性随机数生成器 - // std::mt19937 gen(rd()); // 使用Mersenne Twister算法的伪随机数生成器 - // std::uniform_int_distribution<> dis(1000, 9999); - - // // 生成唯一的文件名 - // std::stringstream ss; - // ss << millis; - // ss << "_"; - // ss << dis(gen); // 添加一个随机数来进一步确保唯一性 - - // return ss.str(); - } - }; - - // 切分字符串工具 - class splitUtil - { - public: - splitUtil() - { - } - ~splitUtil() - { - } - static void splitString(const std::string& src, const std::string& sep, std::vector* tokens) - { - tokens->clear(); - boost::split(*tokens, src, boost::is_any_of(sep), boost::algorithm::token_compress_on); - } - }; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/compile_server/Runner.hpp b/src/my-online-judge-master/MYOJ/compile_server/Runner.hpp deleted file mode 100644 index 8ef8fbe..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/Runner.hpp +++ /dev/null @@ -1,141 +0,0 @@ -// 运行模块 -#pragma once -#include - -#include "./comm/util.hpp" -#include "./comm/Log.hpp" - -namespace ns_run -{ - // 提供运行接口,限制资源接口 - class Runner - { - public: - Runner() - { - } - ~Runner() - { - } - - static void setProLimit(const rlim_t cpu_limit, const rlim_t mem_limit) - { - struct rlimit cl; - cl.rlim_cur = cpu_limit; - cl.rlim_max = RLIM_INFINITY; - - // std::cout << "cpu_limit: " << cpu_limit << std::endl; - - if (setrlimit(RLIMIT_CPU, &cl) != 0) - { - lg(Error, "设置CPU资源限制失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - exit(6); - } - - // 内存是按照KB为单位的 - struct rlimit ml; - ml.rlim_cur = mem_limit * 1024; - ml.rlim_max = RLIM_INFINITY; - - if (setrlimit(RLIMIT_AS, &ml) != 0) - { - lg(Error, "设置MEM资源限制失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - exit(7); - } - } - - // 需要返回运行的状态码 - static int run(const std::string &file_name, const rlim_t cpu_limit, const rlim_t mem_limit) - { - std::string _exe = ns_util::pathUtil::exe(file_name); - std::string _stdin = ns_util::pathUtil::Stdin(file_name); - std::string _stdout = ns_util::pathUtil::Stdout(file_name); - std::string _stderr = ns_util::pathUtil::Stderr(file_name); - - umask(0); - int _stdinfd = open(_stdin.c_str(), O_CREAT | O_RDONLY, 0664); - int _stdoutfd = open(_stdout.c_str(), O_CREAT | O_WRONLY, 0664); - int _stderrfd = open(_stderr.c_str(), O_CREAT | O_WRONLY, 0664); - - if (_stdinfd < 0 || _stdoutfd < 0 || _stderrfd < 0) - { - lg(Error, "运行时打开文件描述符失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - exit(-2); - } - - pid_t pid = fork(); - if (pid == 0) - { - // child - // 重定向0,1,2到_stdinfd,_stdoutfd,_stderrfd - - // for debug - // dup2(debug_fd, 1); - - if (dup2(_stdinfd, 0) < 0 || - dup2(_stdoutfd, 1) < 0 || - dup2(_stderrfd, 2) < 0) - { - close(_stdinfd); - close(_stdoutfd); - close(_stderrfd); - - lg(Error, "运行时文件描述符重定向失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - exit(-3); - } - setProLimit(cpu_limit, mem_limit); - // std::cout<<"子进程执行程序替换"<< _exe << std::endl; - execlp(_exe.c_str(), _exe.c_str(), nullptr); - - lg(Error, "运行时程序替换失败, errno: %d, strerror: %s\n", errno, strerror(errno)); - // ns_util::fileUtil::writeFile("./debugErrorLog.txt", ) - // open("./debugErrorLog.txt", O_CREAT, 0664); - close(_stdinfd); - close(_stdoutfd); - close(_stderrfd); - - exit(-1); - } - else if (pid > 0) - { - // parent - close(_stdinfd); - close(_stdoutfd); - close(_stderrfd); - - int status = 0; - waitpid(pid, &status, 0); - // 子进程运行完毕 - // 1.子进程正常退出,run_res会为0 - // 2.子进程异常终止,run_res会存储异常退出的信号 - // std::cout << status << std::endl; - if (WIFEXITED(status)) - { - int exit_code = WEXITSTATUS(status); - lg(Info, "%s 正常退出, exit_code = %d\n", _exe.c_str(), exit_code); - // std::cout << "进入WIFEXITED(status)" << std::endl; - return exit_code; - } - else if (WIFSIGNALED(status)) - { - int term_signal = WTERMSIG(status); - lg(Error, "%s 被信号终止, signal = %d\n", _exe.c_str(), term_signal); - // std::cout << "进入WIFSIGNALED(status),打印:" << status << std::endl; - return term_signal; - } - - // int run_res = status & 0x7f; - // lg(Info, "%s 运行完毕, run_res = %d\n", _exe.c_str(), run_res); - // return run_res; // for debug - - return status & 0x7f; - } - else - { - // 创建子进程失败 - lg(Error, "运行文件时创建子进程失败, errno:%d, strerror:%s\n", errno, strerror(errno)); - exit(8); - } - } - }; -} diff --git a/src/my-online-judge-master/MYOJ/compile_server/comm/Log.hpp b/src/my-online-judge-master/MYOJ/compile_server/comm/Log.hpp deleted file mode 100644 index aa250d5..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/comm/Log.hpp +++ /dev/null @@ -1,133 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include - - -enum PrintMethods -{ - Screen = 1, - Onefile, - Classfile -}; - -enum LogLevel -{ - Info = 0, - Debug, - Warning, - Error, - Fatal -}; - -std::string defaultPath = "./Log/"; - -class Log -{ -public: - // 初始化日志,默认向屏幕上输出,输出文件路径默认设置为当前路径下Log.txt文件 - Log(const int printMethod = Screen, const std::string &path = defaultPath) - : _path(path), _printMethod(printMethod) - { - } - - // 改变日志的输出方式 - void Enable(int newMethod) - { - _printMethod = newMethod; - } - - std::string LevelToString(int level) - { - switch (level) - { - case Info: - return "Info"; - break; - case Debug: - return "Debug"; - break; - case Warning: - return "Warning"; - break; - case Error: - return "Error"; - break; - case Fatal: - return "Fatal"; - break; - default: - return "None"; - break; - } - } - - void PrintLog(const std::string &LogMessage, int level) - { - switch (_printMethod) - { - case Screen: - printf("%s", LogMessage.c_str()); - break; - case Onefile: - printOnefile("log.txt", LogMessage); - break; - case Classfile: - printClassFile(LogMessage, level); - break; - default: - break; - } - } - - void printOnefile(const std::string &logName, const std::string &LogMessage) - { - std::string fileName = _path; - fileName += logName; - int fd = open(fileName.c_str(), O_APPEND | O_WRONLY | O_CREAT, 0666); - if (fd < 0) - { - perror("printOnefile open"); - return; - } - write(fd, LogMessage.c_str(), LogMessage.size()); - close(fd); - } - - void printClassFile(const std::string &LogMessage, int level) - { - std::string fileName = "log.txt."; - fileName += LevelToString(level); - printOnefile(fileName, LogMessage); - } - - void operator()(int level, const char *format, ...) - { - time_t t; - time(&t); - struct tm *p; - p = localtime(&t); - char leftBuffer[1024]; - snprintf(leftBuffer, sizeof(leftBuffer) - 1, "[%s][%d-%d-%d %d:%d:%d]", LevelToString(level).c_str(), - p->tm_year + 1900, p->tm_mon + 1, p->tm_mday, p->tm_hour, p->tm_min, p->tm_sec); - char rightBuffer[1024]; - va_list ap; - va_start(ap, format); - vsnprintf(rightBuffer, sizeof(rightBuffer) - 1, format, ap); - std::string LogMessage(leftBuffer); - LogMessage += " "; - LogMessage += rightBuffer; - PrintLog(LogMessage, level); - } - -private: - std::string _path; - int _printMethod; -}; - - -Log lg; \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/compile_server/comm/httplib.h b/src/my-online-judge-master/MYOJ/compile_server/comm/httplib.h deleted file mode 100644 index 01081d7..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/comm/httplib.h +++ /dev/null @@ -1,6708 +0,0 @@ -// -// httplib.h -// -// Copyright (c) 2020 Yuji Hirose. All rights reserved. -// MIT License -// - -#ifndef CPPHTTPLIB_HTTPLIB_H -#define CPPHTTPLIB_HTTPLIB_H - -/* - * Configuration - */ - -#ifndef CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND -#define CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_KEEPALIVE_MAX_COUNT -#define CPPHTTPLIB_KEEPALIVE_MAX_COUNT 5 -#endif - -#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND -#define CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND 300 -#endif - -#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND -#define CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_READ_TIMEOUT_SECOND -#define CPPHTTPLIB_READ_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_READ_TIMEOUT_USECOND -#define CPPHTTPLIB_READ_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_WRITE_TIMEOUT_SECOND -#define CPPHTTPLIB_WRITE_TIMEOUT_SECOND 5 -#endif - -#ifndef CPPHTTPLIB_WRITE_TIMEOUT_USECOND -#define CPPHTTPLIB_WRITE_TIMEOUT_USECOND 0 -#endif - -#ifndef CPPHTTPLIB_IDLE_INTERVAL_SECOND -#define CPPHTTPLIB_IDLE_INTERVAL_SECOND 0 -#endif - -#ifndef CPPHTTPLIB_IDLE_INTERVAL_USECOND -#ifdef _WIN32 -#define CPPHTTPLIB_IDLE_INTERVAL_USECOND 10000 -#else -#define CPPHTTPLIB_IDLE_INTERVAL_USECOND 0 -#endif -#endif - -#ifndef CPPHTTPLIB_REQUEST_URI_MAX_LENGTH -#define CPPHTTPLIB_REQUEST_URI_MAX_LENGTH 8192 -#endif - -#ifndef CPPHTTPLIB_REDIRECT_MAX_COUNT -#define CPPHTTPLIB_REDIRECT_MAX_COUNT 20 -#endif - -#ifndef CPPHTTPLIB_PAYLOAD_MAX_LENGTH -#define CPPHTTPLIB_PAYLOAD_MAX_LENGTH ((std::numeric_limits::max)()) -#endif - -#ifndef CPPHTTPLIB_TCP_NODELAY -#define CPPHTTPLIB_TCP_NODELAY false -#endif - -#ifndef CPPHTTPLIB_RECV_BUFSIZ -#define CPPHTTPLIB_RECV_BUFSIZ size_t(4096u) -#endif - -#ifndef CPPHTTPLIB_COMPRESSION_BUFSIZ -#define CPPHTTPLIB_COMPRESSION_BUFSIZ size_t(16384u) -#endif - -#ifndef CPPHTTPLIB_THREAD_POOL_COUNT -#define CPPHTTPLIB_THREAD_POOL_COUNT \ - ((std::max)(8u, std::thread::hardware_concurrency() > 0 \ - ? std::thread::hardware_concurrency() - 1 \ - : 0)) -#endif - -#ifndef CPPHTTPLIB_RECV_FLAGS -#define CPPHTTPLIB_RECV_FLAGS 0 -#endif - -#ifndef CPPHTTPLIB_SEND_FLAGS -#define CPPHTTPLIB_SEND_FLAGS 0 -#endif - -/* - * Headers - */ - -#ifdef _WIN32 -#ifndef _CRT_SECURE_NO_WARNINGS -#define _CRT_SECURE_NO_WARNINGS -#endif //_CRT_SECURE_NO_WARNINGS - -#ifndef _CRT_NONSTDC_NO_DEPRECATE -#define _CRT_NONSTDC_NO_DEPRECATE -#endif //_CRT_NONSTDC_NO_DEPRECATE - -#if defined(_MSC_VER) -#ifdef _WIN64 -using ssize_t = __int64; -#else -using ssize_t = int; -#endif - -#if _MSC_VER < 1900 -#define snprintf _snprintf_s -#endif -#endif // _MSC_VER - -#ifndef S_ISREG -#define S_ISREG(m) (((m)&S_IFREG) == S_IFREG) -#endif // S_ISREG - -#ifndef S_ISDIR -#define S_ISDIR(m) (((m)&S_IFDIR) == S_IFDIR) -#endif // S_ISDIR - -#ifndef NOMINMAX -#define NOMINMAX -#endif // NOMINMAX - -#include -#include - -#include -#include - -#ifndef WSA_FLAG_NO_HANDLE_INHERIT -#define WSA_FLAG_NO_HANDLE_INHERIT 0x80 -#endif - -#ifdef _MSC_VER -#pragma comment(lib, "ws2_32.lib") -#pragma comment(lib, "crypt32.lib") -#pragma comment(lib, "cryptui.lib") -#endif - -#ifndef strcasecmp -#define strcasecmp _stricmp -#endif // strcasecmp - -using socket_t = SOCKET; -#ifdef CPPHTTPLIB_USE_POLL -#define poll(fds, nfds, timeout) WSAPoll(fds, nfds, timeout) -#endif - -#else // not _WIN32 - -#include -#include -#include -#include -#include -#ifdef __linux__ -#include -#endif -#include -#ifdef CPPHTTPLIB_USE_POLL -#include -#endif -#include -#include -#include -#include -#include - -using socket_t = int; -#define INVALID_SOCKET (-1) -#endif //_WIN32 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -#include -#include -#include -#include - -#if defined(_WIN32) && defined(OPENSSL_USE_APPLINK) -#include -#endif - -#include -#include -#include - -#if OPENSSL_VERSION_NUMBER < 0x1010100fL -#error Sorry, OpenSSL versions prior to 1.1.1 are not supported -#endif - -#if OPENSSL_VERSION_NUMBER < 0x10100000L -#include -inline const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) { - return M_ASN1_STRING_data(asn1); -} -#endif -#endif - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT -#include -#endif - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT -#include -#include -#endif - -/* - * Declaration - */ -namespace httplib { - -namespace detail { - -/* - * Backport std::make_unique from C++14. - * - * NOTE: This code came up with the following stackoverflow post: - * https://stackoverflow.com/questions/10149840/c-arrays-and-make-unique - * - */ - -template -typename std::enable_if::value, std::unique_ptr>::type -make_unique(Args &&... args) { - return std::unique_ptr(new T(std::forward(args)...)); -} - -template -typename std::enable_if::value, std::unique_ptr>::type -make_unique(std::size_t n) { - typedef typename std::remove_extent::type RT; - return std::unique_ptr(new RT[n]); -} - -struct ci { - bool operator()(const std::string &s1, const std::string &s2) const { - return std::lexicographical_compare( - s1.begin(), s1.end(), s2.begin(), s2.end(), - [](unsigned char c1, unsigned char c2) { return ::tolower(c1) < ::tolower(c2); }); - } -}; - -} // namespace detail - -using Headers = std::multimap; - -using Params = std::multimap; -using Match = std::smatch; - -using Progress = std::function; - -struct Response; -using ResponseHandler = std::function; - -struct MultipartFormData { - std::string name; - std::string content; - std::string filename; - std::string content_type; -}; -using MultipartFormDataItems = std::vector; -using MultipartFormDataMap = std::multimap; - -class DataSink { -public: - DataSink() : os(&sb_), sb_(*this) {} - - DataSink(const DataSink &) = delete; - DataSink &operator=(const DataSink &) = delete; - DataSink(DataSink &&) = delete; - DataSink &operator=(DataSink &&) = delete; - - std::function write; - std::function done; - std::function is_writable; - std::ostream os; - -private: - class data_sink_streambuf : public std::streambuf { - public: - explicit data_sink_streambuf(DataSink &sink) : sink_(sink) {} - - protected: - std::streamsize xsputn(const char *s, std::streamsize n) { - sink_.write(s, static_cast(n)); - return n; - } - - private: - DataSink &sink_; - }; - - data_sink_streambuf sb_; -}; - -using ContentProvider = - std::function; - -using ContentProviderWithoutLength = - std::function; - -using ContentReceiverWithProgress = - std::function; - -using ContentReceiver = - std::function; - -using MultipartContentHeader = - std::function; - -class ContentReader { -public: - using Reader = std::function; - using MultipartReader = std::function; - - ContentReader(Reader reader, MultipartReader multipart_reader) - : reader_(std::move(reader)), - multipart_reader_(std::move(multipart_reader)) {} - - bool operator()(MultipartContentHeader header, - ContentReceiver receiver) const { - return multipart_reader_(std::move(header), std::move(receiver)); - } - - bool operator()(ContentReceiver receiver) const { - return reader_(std::move(receiver)); - } - - Reader reader_; - MultipartReader multipart_reader_; -}; - -using Range = std::pair; -using Ranges = std::vector; - -struct Request { - std::string method; - std::string path; - Headers headers; - std::string body; - - std::string remote_addr; - int remote_port = -1; - - // for server - std::string version; - std::string target; - Params params; - MultipartFormDataMap files; - Ranges ranges; - Match matches; - - // for client - size_t redirect_count = CPPHTTPLIB_REDIRECT_MAX_COUNT; - ResponseHandler response_handler; - ContentReceiverWithProgress content_receiver; - size_t content_length = 0; - ContentProvider content_provider; - Progress progress; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - const SSL *ssl; -#endif - - bool has_header(const char *key) const; - std::string get_header_value(const char *key, size_t id = 0) const; - template - T get_header_value(const char *key, size_t id = 0) const; - size_t get_header_value_count(const char *key) const; - void set_header(const char *key, const char *val); - void set_header(const char *key, const std::string &val); - - bool has_param(const char *key) const; - std::string get_param_value(const char *key, size_t id = 0) const; - size_t get_param_value_count(const char *key) const; - - bool is_multipart_form_data() const; - - bool has_file(const char *key) const; - MultipartFormData get_file_value(const char *key) const; - - // private members... - size_t authorization_count_ = 0; -}; - -struct Response { - std::string version; - int status = -1; - std::string reason; - Headers headers; - std::string body; - - bool has_header(const char *key) const; - std::string get_header_value(const char *key, size_t id = 0) const; - template - T get_header_value(const char *key, size_t id = 0) const; - size_t get_header_value_count(const char *key) const; - void set_header(const char *key, const char *val); - void set_header(const char *key, const std::string &val); - - void set_redirect(const char *url, int status = 302); - void set_redirect(const std::string &url, int status = 302); - void set_content(const char *s, size_t n, const char *content_type); - void set_content(const std::string &s, const char *content_type); - - void set_content_provider( - size_t length, const char *content_type, ContentProvider provider, - const std::function &resource_releaser = nullptr); - - void set_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser = nullptr); - - void set_chunked_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser = nullptr); - - Response() = default; - Response(const Response &) = default; - Response &operator=(const Response &) = default; - Response(Response &&) = default; - Response &operator=(Response &&) = default; - ~Response() { - if (content_provider_resource_releaser_) { - content_provider_resource_releaser_(); - } - } - - // private members... - size_t content_length_ = 0; - ContentProvider content_provider_; - std::function content_provider_resource_releaser_; - bool is_chunked_content_provider = false; -}; - -class Stream { -public: - virtual ~Stream() = default; - - virtual bool is_readable() const = 0; - virtual bool is_writable() const = 0; - - virtual ssize_t read(char *ptr, size_t size) = 0; - virtual ssize_t write(const char *ptr, size_t size) = 0; - virtual void get_remote_ip_and_port(std::string &ip, int &port) const = 0; - virtual socket_t socket() const = 0; - - template - ssize_t write_format(const char *fmt, const Args &... args); - ssize_t write(const char *ptr); - ssize_t write(const std::string &s); -}; - -class TaskQueue { -public: - TaskQueue() = default; - virtual ~TaskQueue() = default; - - virtual void enqueue(std::function fn) = 0; - virtual void shutdown() = 0; - - virtual void on_idle(){}; -}; - -class ThreadPool : public TaskQueue { -public: - explicit ThreadPool(size_t n) : shutdown_(false) { - while (n) { - threads_.emplace_back(worker(*this)); - n--; - } - } - - ThreadPool(const ThreadPool &) = delete; - ~ThreadPool() override = default; - - void enqueue(std::function fn) override { - std::unique_lock lock(mutex_); - jobs_.push_back(std::move(fn)); - cond_.notify_one(); - } - - void shutdown() override { - // Stop all worker threads... - { - std::unique_lock lock(mutex_); - shutdown_ = true; - } - - cond_.notify_all(); - - // Join... - for (auto &t : threads_) { - t.join(); - } - } - -private: - struct worker { - explicit worker(ThreadPool &pool) : pool_(pool) {} - - void operator()() { - for (;;) { - std::function fn; - { - std::unique_lock lock(pool_.mutex_); - - pool_.cond_.wait( - lock, [&] { return !pool_.jobs_.empty() || pool_.shutdown_; }); - - if (pool_.shutdown_ && pool_.jobs_.empty()) { break; } - - fn = pool_.jobs_.front(); - pool_.jobs_.pop_front(); - } - - assert(true == static_cast(fn)); - fn(); - } - } - - ThreadPool &pool_; - }; - friend struct worker; - - std::vector threads_; - std::list> jobs_; - - bool shutdown_; - - std::condition_variable cond_; - std::mutex mutex_; -}; - -using Logger = std::function; - -using SocketOptions = std::function; - -inline void default_socket_options(socket_t sock) { - int yes = 1; -#ifdef _WIN32 - setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast(&yes), - sizeof(yes)); - setsockopt(sock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, - reinterpret_cast(&yes), sizeof(yes)); -#else -#ifdef SO_REUSEPORT - setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, reinterpret_cast(&yes), - sizeof(yes)); -#else - setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast(&yes), - sizeof(yes)); -#endif -#endif -} - -class Server { -public: - using Handler = std::function; - using HandlerWithContentReader = std::function; - using Expect100ContinueHandler = - std::function; - - Server(); - - virtual ~Server(); - - virtual bool is_valid() const; - - Server &Get(const char *pattern, Handler handler); - Server &Post(const char *pattern, Handler handler); - Server &Post(const char *pattern, HandlerWithContentReader handler); - Server &Put(const char *pattern, Handler handler); - Server &Put(const char *pattern, HandlerWithContentReader handler); - Server &Patch(const char *pattern, Handler handler); - Server &Patch(const char *pattern, HandlerWithContentReader handler); - Server &Delete(const char *pattern, Handler handler); - Server &Delete(const char *pattern, HandlerWithContentReader handler); - Server &Options(const char *pattern, Handler handler); - - bool set_base_dir(const char *dir, const char *mount_point = nullptr); - bool set_mount_point(const char *mount_point, const char *dir, - Headers headers = Headers()); - bool remove_mount_point(const char *mount_point); - void set_file_extension_and_mimetype_mapping(const char *ext, - const char *mime); - void set_file_request_handler(Handler handler); - - void set_error_handler(Handler handler); - void set_expect_100_continue_handler(Expect100ContinueHandler handler); - void set_logger(Logger logger); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_keep_alive_max_count(size_t count); - void set_keep_alive_timeout(time_t sec); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - void set_idle_interval(time_t sec, time_t usec = 0); - - void set_payload_max_length(size_t length); - - bool bind_to_port(const char *host, int port, int socket_flags = 0); - int bind_to_any_port(const char *host, int socket_flags = 0); - bool listen_after_bind(); - - bool listen(const char *host, int port, int socket_flags = 0); - - bool is_running() const; - void stop(); - - std::function new_task_queue; - -protected: - bool process_request(Stream &strm, bool close_connection, - bool &connection_closed, - const std::function &setup_request); - - std::atomic svr_sock_; - size_t keep_alive_max_count_ = CPPHTTPLIB_KEEPALIVE_MAX_COUNT; - time_t keep_alive_timeout_sec_ = CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND; - time_t read_timeout_sec_ = CPPHTTPLIB_READ_TIMEOUT_SECOND; - time_t read_timeout_usec_ = CPPHTTPLIB_READ_TIMEOUT_USECOND; - time_t write_timeout_sec_ = CPPHTTPLIB_WRITE_TIMEOUT_SECOND; - time_t write_timeout_usec_ = CPPHTTPLIB_WRITE_TIMEOUT_USECOND; - time_t idle_interval_sec_ = CPPHTTPLIB_IDLE_INTERVAL_SECOND; - time_t idle_interval_usec_ = CPPHTTPLIB_IDLE_INTERVAL_USECOND; - size_t payload_max_length_ = CPPHTTPLIB_PAYLOAD_MAX_LENGTH; - -private: - using Handlers = std::vector>; - using HandlersForContentReader = - std::vector>; - - socket_t create_server_socket(const char *host, int port, int socket_flags, - SocketOptions socket_options) const; - int bind_internal(const char *host, int port, int socket_flags); - bool listen_internal(); - - bool routing(Request &req, Response &res, Stream &strm); - bool handle_file_request(Request &req, Response &res, bool head = false); - bool dispatch_request(Request &req, Response &res, const Handlers &handlers); - bool - dispatch_request_for_content_reader(Request &req, Response &res, - ContentReader content_reader, - const HandlersForContentReader &handlers); - - bool parse_request_line(const char *s, Request &req); - void apply_ranges(const Request &req, Response &res, - std::string &content_type, std::string &boundary); - bool write_response(Stream &strm, bool close_connection, const Request &req, - Response &res); - bool write_response_with_content(Stream &strm, bool close_connection, - const Request &req, Response &res); - bool write_response_core(Stream &strm, bool close_connection, - const Request &req, Response &res, - bool need_apply_ranges); - bool write_content_with_provider(Stream &strm, const Request &req, - Response &res, const std::string &boundary, - const std::string &content_type); - bool read_content(Stream &strm, Request &req, Response &res); - bool - read_content_with_content_receiver(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader multipart_header, - ContentReceiver multipart_receiver); - bool read_content_core(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader mulitpart_header, - ContentReceiver multipart_receiver); - - virtual bool process_and_close_socket(socket_t sock); - - struct MountPointEntry { - std::string mount_point; - std::string base_dir; - Headers headers; - }; - std::vector base_dirs_; - - std::atomic is_running_; - std::map file_extension_and_mimetype_map_; - Handler file_request_handler_; - Handlers get_handlers_; - Handlers post_handlers_; - HandlersForContentReader post_handlers_for_content_reader_; - Handlers put_handlers_; - HandlersForContentReader put_handlers_for_content_reader_; - Handlers patch_handlers_; - HandlersForContentReader patch_handlers_for_content_reader_; - Handlers delete_handlers_; - HandlersForContentReader delete_handlers_for_content_reader_; - Handlers options_handlers_; - Handler error_handler_; - Logger logger_; - Expect100ContinueHandler expect_100_continue_handler_; - - bool tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY; - SocketOptions socket_options_ = default_socket_options; -}; - -enum Error { - Success = 0, - Unknown, - Connection, - BindIPAddress, - Read, - Write, - ExceedRedirectCount, - Canceled, - SSLConnection, - SSLLoadingCerts, - SSLServerVerification, - UnsupportedMultipartBoundaryChars -}; - -class Result { -public: - Result(std::unique_ptr res, Error err) - : res_(std::move(res)), err_(err) {} - operator bool() const { return res_ != nullptr; } - bool operator==(std::nullptr_t) const { return res_ == nullptr; } - bool operator!=(std::nullptr_t) const { return res_ != nullptr; } - const Response &value() const { return *res_; } - Response &value() { return *res_; } - const Response &operator*() const { return *res_; } - Response &operator*() { return *res_; } - const Response *operator->() const { return res_.get(); } - Response *operator->() { return res_.get(); } - Error error() const { return err_; } - -private: - std::unique_ptr res_; - Error err_; -}; - -class ClientImpl { -public: - explicit ClientImpl(const std::string &host); - - explicit ClientImpl(const std::string &host, int port); - - explicit ClientImpl(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - virtual ~ClientImpl(); - - virtual bool is_valid() const; - - Result Get(const char *path); - Result Get(const char *path, const Headers &headers); - Result Get(const char *path, Progress progress); - Result Get(const char *path, const Headers &headers, Progress progress); - Result Get(const char *path, ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver); - Result Get(const char *path, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, ContentReceiver content_receiver, - Progress progress); - - Result Head(const char *path); - Result Head(const char *path, const Headers &headers); - - Result Post(const char *path); - Result Post(const char *path, const std::string &body, - const char *content_type); - Result Post(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Post(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Params ¶ms); - Result Post(const char *path, const Headers &headers, const Params ¶ms); - Result Post(const char *path, const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, const std::string &boundary); - - Result Put(const char *path); - Result Put(const char *path, const std::string &body, - const char *content_type); - Result Put(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Put(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Params ¶ms); - Result Put(const char *path, const Headers &headers, const Params ¶ms); - - Result Patch(const char *path, const std::string &body, - const char *content_type); - Result Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - Result Patch(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Patch(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - - Result Delete(const char *path); - Result Delete(const char *path, const std::string &body, - const char *content_type); - Result Delete(const char *path, const Headers &headers); - Result Delete(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - - Result Options(const char *path); - Result Options(const char *path, const Headers &headers); - - bool send(const Request &req, Response &res); - - size_t is_socket_open() const; - - void stop(); - - void set_default_headers(Headers headers); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_connection_timeout(time_t sec, time_t usec = 0); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - - void set_basic_auth(const char *username, const char *password); - void set_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_digest_auth(const char *username, const char *password); -#endif - - void set_keep_alive(bool on); - void set_follow_location(bool on); - - void set_compress(bool on); - - void set_decompress(bool on); - - void set_interface(const char *intf); - - void set_proxy(const char *host, int port); - void set_proxy_basic_auth(const char *username, const char *password); - void set_proxy_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_proxy_digest_auth(const char *username, const char *password); -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void enable_server_certificate_verification(bool enabled); -#endif - - void set_logger(Logger logger); - -protected: - struct Socket { - socket_t sock = INVALID_SOCKET; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - SSL *ssl = nullptr; -#endif - - bool is_open() const { return sock != INVALID_SOCKET; } - }; - - virtual bool create_and_connect_socket(Socket &socket); - virtual void close_socket(Socket &socket, bool process_socket_ret); - - bool process_request(Stream &strm, const Request &req, Response &res, - bool close_connection); - - Error get_last_error() const; - - void copy_settings(const ClientImpl &rhs); - - // Error state - mutable Error error_ = Error::Success; - - // Socket endoint information - const std::string host_; - const int port_; - const std::string host_and_port_; - - // Current open socket - Socket socket_; - mutable std::mutex socket_mutex_; - std::recursive_mutex request_mutex_; - - // Default headers - Headers default_headers_; - - // Settings - std::string client_cert_path_; - std::string client_key_path_; - - time_t connection_timeout_sec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND; - time_t connection_timeout_usec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND; - time_t read_timeout_sec_ = CPPHTTPLIB_READ_TIMEOUT_SECOND; - time_t read_timeout_usec_ = CPPHTTPLIB_READ_TIMEOUT_USECOND; - time_t write_timeout_sec_ = CPPHTTPLIB_WRITE_TIMEOUT_SECOND; - time_t write_timeout_usec_ = CPPHTTPLIB_WRITE_TIMEOUT_USECOND; - - std::string basic_auth_username_; - std::string basic_auth_password_; - std::string bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - std::string digest_auth_username_; - std::string digest_auth_password_; -#endif - - bool keep_alive_ = false; - bool follow_location_ = false; - - bool tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY; - SocketOptions socket_options_ = nullptr; - - bool compress_ = false; - bool decompress_ = true; - - std::string interface_; - - std::string proxy_host_; - int proxy_port_ = -1; - - std::string proxy_basic_auth_username_; - std::string proxy_basic_auth_password_; - std::string proxy_bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - std::string proxy_digest_auth_username_; - std::string proxy_digest_auth_password_; -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - bool server_certificate_verification_ = true; -#endif - - Logger logger_; - -private: - socket_t create_client_socket() const; - bool read_response_line(Stream &strm, Response &res); - bool write_request(Stream &strm, const Request &req, bool close_connection); - bool redirect(const Request &req, Response &res); - bool handle_request(Stream &strm, const Request &req, Response &res, - bool close_connection); - void stop_core(); - std::unique_ptr send_with_content_provider( - const char *method, const char *path, const Headers &headers, - const std::string &body, size_t content_length, - ContentProvider content_provider, const char *content_type); - - virtual bool process_socket(Socket &socket, - std::function callback); - virtual bool is_ssl() const; -}; - -class Client { -public: - // Universal interface - explicit Client(const char *scheme_host_port); - - explicit Client(const char *scheme_host_port, - const std::string &client_cert_path, - const std::string &client_key_path); - - // HTTP only interface - explicit Client(const std::string &host, int port); - - explicit Client(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - ~Client(); - - bool is_valid() const; - - Result Get(const char *path); - Result Get(const char *path, const Headers &headers); - Result Get(const char *path, Progress progress); - Result Get(const char *path, const Headers &headers, Progress progress); - Result Get(const char *path, ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver); - Result Get(const char *path, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver); - Result Get(const char *path, const Headers &headers, - ResponseHandler response_handler, ContentReceiver content_receiver, - Progress progress); - Result Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress); - - Result Head(const char *path); - Result Head(const char *path, const Headers &headers); - - Result Post(const char *path); - Result Post(const char *path, const std::string &body, - const char *content_type); - Result Post(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Post(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Post(const char *path, const Params ¶ms); - Result Post(const char *path, const Headers &headers, const Params ¶ms); - Result Post(const char *path, const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items); - Result Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, const std::string &boundary); - Result Put(const char *path); - Result Put(const char *path, const std::string &body, - const char *content_type); - Result Put(const char *path, const Headers &headers, const std::string &body, - const char *content_type); - Result Put(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Put(const char *path, const Params ¶ms); - Result Put(const char *path, const Headers &headers, const Params ¶ms); - Result Patch(const char *path, const std::string &body, - const char *content_type); - Result Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - Result Patch(const char *path, size_t content_length, - ContentProvider content_provider, const char *content_type); - Result Patch(const char *path, const Headers &headers, size_t content_length, - ContentProvider content_provider, const char *content_type); - - Result Delete(const char *path); - Result Delete(const char *path, const std::string &body, - const char *content_type); - Result Delete(const char *path, const Headers &headers); - Result Delete(const char *path, const Headers &headers, - const std::string &body, const char *content_type); - - Result Options(const char *path); - Result Options(const char *path, const Headers &headers); - - bool send(const Request &req, Response &res); - - size_t is_socket_open() const; - - void stop(); - - void set_default_headers(Headers headers); - - void set_tcp_nodelay(bool on); - void set_socket_options(SocketOptions socket_options); - - void set_connection_timeout(time_t sec, time_t usec = 0); - void set_read_timeout(time_t sec, time_t usec = 0); - void set_write_timeout(time_t sec, time_t usec = 0); - - void set_basic_auth(const char *username, const char *password); - void set_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_digest_auth(const char *username, const char *password); -#endif - - void set_keep_alive(bool on); - void set_follow_location(bool on); - - void set_compress(bool on); - - void set_decompress(bool on); - - void set_interface(const char *intf); - - void set_proxy(const char *host, int port); - void set_proxy_basic_auth(const char *username, const char *password); - void set_proxy_bearer_token_auth(const char *token); -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_proxy_digest_auth(const char *username, const char *password); -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void enable_server_certificate_verification(bool enabled); -#endif - - void set_logger(Logger logger); - - // SSL -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - void set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path = nullptr); - - void set_ca_cert_store(X509_STORE *ca_cert_store); - - long get_openssl_verify_result() const; - - SSL_CTX *ssl_context() const; -#endif - -private: - std::unique_ptr cli_; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - bool is_ssl_ = false; -#endif -}; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -class SSLServer : public Server { -public: - SSLServer(const char *cert_path, const char *private_key_path, - const char *client_ca_cert_file_path = nullptr, - const char *client_ca_cert_dir_path = nullptr); - - SSLServer(X509 *cert, EVP_PKEY *private_key, - X509_STORE *client_ca_cert_store = nullptr); - - ~SSLServer() override; - - bool is_valid() const override; - -private: - bool process_and_close_socket(socket_t sock) override; - - SSL_CTX *ctx_; - std::mutex ctx_mutex_; -}; - -class SSLClient : public ClientImpl { -public: - explicit SSLClient(const std::string &host); - - explicit SSLClient(const std::string &host, int port); - - explicit SSLClient(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path); - - explicit SSLClient(const std::string &host, int port, X509 *client_cert, - EVP_PKEY *client_key); - - ~SSLClient() override; - - bool is_valid() const override; - - void set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path = nullptr); - - void set_ca_cert_store(X509_STORE *ca_cert_store); - - long get_openssl_verify_result() const; - - SSL_CTX *ssl_context() const; - -private: - bool create_and_connect_socket(Socket &socket) override; - void close_socket(Socket &socket, bool process_socket_ret) override; - - bool process_socket(Socket &socket, - std::function callback) override; - bool is_ssl() const override; - - bool connect_with_proxy(Socket &sock, Response &res, bool &success); - bool initialize_ssl(Socket &socket); - - bool load_certs(); - - bool verify_host(X509 *server_cert) const; - bool verify_host_with_subject_alt_name(X509 *server_cert) const; - bool verify_host_with_common_name(X509 *server_cert) const; - bool check_host_name(const char *pattern, size_t pattern_len) const; - - SSL_CTX *ctx_; - std::mutex ctx_mutex_; - std::once_flag initialize_cert_; - - std::vector host_components_; - - std::string ca_cert_file_path_; - std::string ca_cert_dir_path_; - long verify_result_ = 0; - - friend class ClientImpl; -}; -#endif - -// ---------------------------------------------------------------------------- - -/* - * Implementation - */ - -namespace detail { - -inline bool is_hex(char c, int &v) { - if (0x20 <= c && isdigit(c)) { - v = c - '0'; - return true; - } else if ('A' <= c && c <= 'F') { - v = c - 'A' + 10; - return true; - } else if ('a' <= c && c <= 'f') { - v = c - 'a' + 10; - return true; - } - return false; -} - -inline bool from_hex_to_i(const std::string &s, size_t i, size_t cnt, - int &val) { - if (i >= s.size()) { return false; } - - val = 0; - for (; cnt; i++, cnt--) { - if (!s[i]) { return false; } - int v = 0; - if (is_hex(s[i], v)) { - val = val * 16 + v; - } else { - return false; - } - } - return true; -} - -inline std::string from_i_to_hex(size_t n) { - const char *charset = "0123456789abcdef"; - std::string ret; - do { - ret = charset[n & 15] + ret; - n >>= 4; - } while (n > 0); - return ret; -} - -inline bool start_with(const std::string &a, const std::string &b) { - if (a.size() < b.size()) { return false; } - for (size_t i = 0; i < b.size(); i++) { - if (::tolower(a[i]) != ::tolower(b[i])) { return false; } - } - return true; -} - -inline size_t to_utf8(int code, char *buff) { - if (code < 0x0080) { - buff[0] = (code & 0x7F); - return 1; - } else if (code < 0x0800) { - buff[0] = static_cast(0xC0 | ((code >> 6) & 0x1F)); - buff[1] = static_cast(0x80 | (code & 0x3F)); - return 2; - } else if (code < 0xD800) { - buff[0] = static_cast(0xE0 | ((code >> 12) & 0xF)); - buff[1] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[2] = static_cast(0x80 | (code & 0x3F)); - return 3; - } else if (code < 0xE000) { // D800 - DFFF is invalid... - return 0; - } else if (code < 0x10000) { - buff[0] = static_cast(0xE0 | ((code >> 12) & 0xF)); - buff[1] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[2] = static_cast(0x80 | (code & 0x3F)); - return 3; - } else if (code < 0x110000) { - buff[0] = static_cast(0xF0 | ((code >> 18) & 0x7)); - buff[1] = static_cast(0x80 | ((code >> 12) & 0x3F)); - buff[2] = static_cast(0x80 | ((code >> 6) & 0x3F)); - buff[3] = static_cast(0x80 | (code & 0x3F)); - return 4; - } - - // NOTREACHED - return 0; -} - -// NOTE: This code came up with the following stackoverflow post: -// https://stackoverflow.com/questions/180947/base64-decode-snippet-in-c -inline std::string base64_encode(const std::string &in) { - static const auto lookup = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - - std::string out; - out.reserve(in.size()); - - int val = 0; - int valb = -6; - - for (auto c : in) { - val = (val << 8) + static_cast(c); - valb += 8; - while (valb >= 0) { - out.push_back(lookup[(val >> valb) & 0x3F]); - valb -= 6; - } - } - - if (valb > -6) { out.push_back(lookup[((val << 8) >> (valb + 8)) & 0x3F]); } - - while (out.size() % 4) { - out.push_back('='); - } - - return out; -} - -inline bool is_file(const std::string &path) { - struct stat st; - return stat(path.c_str(), &st) >= 0 && S_ISREG(st.st_mode); -} - -inline bool is_dir(const std::string &path) { - struct stat st; - return stat(path.c_str(), &st) >= 0 && S_ISDIR(st.st_mode); -} - -inline bool is_valid_path(const std::string &path) { - size_t level = 0; - size_t i = 0; - - // Skip slash - while (i < path.size() && path[i] == '/') { - i++; - } - - while (i < path.size()) { - // Read component - auto beg = i; - while (i < path.size() && path[i] != '/') { - i++; - } - - auto len = i - beg; - assert(len > 0); - - if (!path.compare(beg, len, ".")) { - ; - } else if (!path.compare(beg, len, "..")) { - if (level == 0) { return false; } - level--; - } else { - level++; - } - - // Skip slash - while (i < path.size() && path[i] == '/') { - i++; - } - } - - return true; -} - -inline std::string encode_url(const std::string &s) { - std::string result; - - for (size_t i = 0; s[i]; i++) { - switch (s[i]) { - case ' ': result += "%20"; break; - case '+': result += "%2B"; break; - case '\r': result += "%0D"; break; - case '\n': result += "%0A"; break; - case '\'': result += "%27"; break; - case ',': result += "%2C"; break; - // case ':': result += "%3A"; break; // ok? probably... - case ';': result += "%3B"; break; - default: - auto c = static_cast(s[i]); - if (c >= 0x80) { - result += '%'; - char hex[4]; - auto len = snprintf(hex, sizeof(hex) - 1, "%02X", c); - assert(len == 2); - result.append(hex, static_cast(len)); - } else { - result += s[i]; - } - break; - } - } - - return result; -} - -inline std::string decode_url(const std::string &s, - bool convert_plus_to_space) { - std::string result; - - for (size_t i = 0; i < s.size(); i++) { - if (s[i] == '%' && i + 1 < s.size()) { - if (s[i + 1] == 'u') { - int val = 0; - if (from_hex_to_i(s, i + 2, 4, val)) { - // 4 digits Unicode codes - char buff[4]; - size_t len = to_utf8(val, buff); - if (len > 0) { result.append(buff, len); } - i += 5; // 'u0000' - } else { - result += s[i]; - } - } else { - int val = 0; - if (from_hex_to_i(s, i + 1, 2, val)) { - // 2 digits hex codes - result += static_cast(val); - i += 2; // '00' - } else { - result += s[i]; - } - } - } else if (convert_plus_to_space && s[i] == '+') { - result += ' '; - } else { - result += s[i]; - } - } - - return result; -} - -inline void read_file(const std::string &path, std::string &out) { - std::ifstream fs(path, std::ios_base::binary); - fs.seekg(0, std::ios_base::end); - auto size = fs.tellg(); - fs.seekg(0); - out.resize(static_cast(size)); - fs.read(&out[0], static_cast(size)); -} - -inline std::string file_extension(const std::string &path) { - std::smatch m; - static auto re = std::regex("\\.([a-zA-Z0-9]+)$"); - if (std::regex_search(path, m, re)) { return m[1].str(); } - return std::string(); -} - -inline bool is_space_or_tab(char c) { return c == ' ' || c == '\t'; } - -inline std::pair trim(const char *b, const char *e, size_t left, - size_t right) { - while (b + left < e && is_space_or_tab(b[left])) { - left++; - } - while (right > 0 && is_space_or_tab(b[right - 1])) { - right--; - } - return std::make_pair(left, right); -} - -inline std::string trim_copy(const std::string &s) { - auto r = trim(s.data(), s.data() + s.size(), 0, s.size()); - return s.substr(r.first, r.second - r.first); -} - -template void split(const char *b, const char *e, char d, Fn fn) { - size_t i = 0; - size_t beg = 0; - - while (e ? (b + i < e) : (b[i] != '\0')) { - if (b[i] == d) { - auto r = trim(b, e, beg, i); - if (r.first < r.second) { fn(&b[r.first], &b[r.second]); } - beg = i + 1; - } - i++; - } - - if (i) { - auto r = trim(b, e, beg, i); - if (r.first < r.second) { fn(&b[r.first], &b[r.second]); } - } -} - -// NOTE: until the read size reaches `fixed_buffer_size`, use `fixed_buffer` -// to store data. The call can set memory on stack for performance. -class stream_line_reader { -public: - stream_line_reader(Stream &strm, char *fixed_buffer, size_t fixed_buffer_size) - : strm_(strm), fixed_buffer_(fixed_buffer), - fixed_buffer_size_(fixed_buffer_size) {} - - const char *ptr() const { - if (glowable_buffer_.empty()) { - return fixed_buffer_; - } else { - return glowable_buffer_.data(); - } - } - - size_t size() const { - if (glowable_buffer_.empty()) { - return fixed_buffer_used_size_; - } else { - return glowable_buffer_.size(); - } - } - - bool end_with_crlf() const { - auto end = ptr() + size(); - return size() >= 2 && end[-2] == '\r' && end[-1] == '\n'; - } - - bool getline() { - fixed_buffer_used_size_ = 0; - glowable_buffer_.clear(); - - for (size_t i = 0;; i++) { - char byte; - auto n = strm_.read(&byte, 1); - - if (n < 0) { - return false; - } else if (n == 0) { - if (i == 0) { - return false; - } else { - break; - } - } - - append(byte); - - if (byte == '\n') { break; } - } - - return true; - } - -private: - void append(char c) { - if (fixed_buffer_used_size_ < fixed_buffer_size_ - 1) { - fixed_buffer_[fixed_buffer_used_size_++] = c; - fixed_buffer_[fixed_buffer_used_size_] = '\0'; - } else { - if (glowable_buffer_.empty()) { - assert(fixed_buffer_[fixed_buffer_used_size_] == '\0'); - glowable_buffer_.assign(fixed_buffer_, fixed_buffer_used_size_); - } - glowable_buffer_ += c; - } - } - - Stream &strm_; - char *fixed_buffer_; - const size_t fixed_buffer_size_; - size_t fixed_buffer_used_size_ = 0; - std::string glowable_buffer_; -}; - -inline int close_socket(socket_t sock) { -#ifdef _WIN32 - return closesocket(sock); -#else - return close(sock); -#endif -} - -template inline ssize_t handle_EINTR(T fn) { - ssize_t res = false; - while (true) { - res = fn(); - if (res < 0 && errno == EINTR) { continue; } - break; - } - return res; -} - -inline ssize_t select_read(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLIN; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return 1; } -#endif - - fd_set fds; - FD_ZERO(&fds); - FD_SET(sock, &fds); - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - return handle_EINTR([&]() { - return select(static_cast(sock + 1), &fds, nullptr, nullptr, &tv); - }); -#endif -} - -inline ssize_t select_write(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLOUT; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - return handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return 1; } -#endif - - fd_set fds; - FD_ZERO(&fds); - FD_SET(sock, &fds); - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - return handle_EINTR([&]() { - return select(static_cast(sock + 1), nullptr, &fds, nullptr, &tv); - }); -#endif -} - -inline bool wait_until_socket_is_ready(socket_t sock, time_t sec, time_t usec) { -#ifdef CPPHTTPLIB_USE_POLL - struct pollfd pfd_read; - pfd_read.fd = sock; - pfd_read.events = POLLIN | POLLOUT; - - auto timeout = static_cast(sec * 1000 + usec / 1000); - - auto poll_res = handle_EINTR([&]() { return poll(&pfd_read, 1, timeout); }); - - if (poll_res > 0 && pfd_read.revents & (POLLIN | POLLOUT)) { - int error = 0; - socklen_t len = sizeof(error); - auto res = getsockopt(sock, SOL_SOCKET, SO_ERROR, - reinterpret_cast(&error), &len); - return res >= 0 && !error; - } - return false; -#else -#ifndef _WIN32 - if (sock >= FD_SETSIZE) { return false; } -#endif - - fd_set fdsr; - FD_ZERO(&fdsr); - FD_SET(sock, &fdsr); - - auto fdsw = fdsr; - auto fdse = fdsr; - - timeval tv; - tv.tv_sec = static_cast(sec); - tv.tv_usec = static_cast(usec); - - auto ret = handle_EINTR([&]() { - return select(static_cast(sock + 1), &fdsr, &fdsw, &fdse, &tv); - }); - - if (ret > 0 && (FD_ISSET(sock, &fdsr) || FD_ISSET(sock, &fdsw))) { - int error = 0; - socklen_t len = sizeof(error); - return getsockopt(sock, SOL_SOCKET, SO_ERROR, - reinterpret_cast(&error), &len) >= 0 && - !error; - } - return false; -#endif -} - -class SocketStream : public Stream { -public: - SocketStream(socket_t sock, time_t read_timeout_sec, time_t read_timeout_usec, - time_t write_timeout_sec, time_t write_timeout_usec); - ~SocketStream() override; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - -private: - socket_t sock_; - time_t read_timeout_sec_; - time_t read_timeout_usec_; - time_t write_timeout_sec_; - time_t write_timeout_usec_; -}; - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -class SSLSocketStream : public Stream { -public: - SSLSocketStream(socket_t sock, SSL *ssl, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec); - ~SSLSocketStream() override; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - -private: - socket_t sock_; - SSL *ssl_; - time_t read_timeout_sec_; - time_t read_timeout_usec_; - time_t write_timeout_sec_; - time_t write_timeout_usec_; -}; -#endif - -class BufferStream : public Stream { -public: - BufferStream() = default; - ~BufferStream() override = default; - - bool is_readable() const override; - bool is_writable() const override; - ssize_t read(char *ptr, size_t size) override; - ssize_t write(const char *ptr, size_t size) override; - void get_remote_ip_and_port(std::string &ip, int &port) const override; - socket_t socket() const override; - - const std::string &get_buffer() const; - -private: - std::string buffer; - size_t position = 0; -}; - -inline bool keep_alive(socket_t sock, time_t keep_alive_timeout_sec) { - using namespace std::chrono; - auto start = steady_clock::now(); - while (true) { - auto val = select_read(sock, 0, 10000); - if (val < 0) { - return false; - } else if (val == 0) { - auto current = steady_clock::now(); - auto duration = duration_cast(current - start); - auto timeout = keep_alive_timeout_sec * 1000; - if (duration.count() > timeout) { return false; } - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } else { - return true; - } - } -} - -template -inline bool -process_server_socket_core(socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, T callback) { - assert(keep_alive_max_count > 0); - auto ret = false; - auto count = keep_alive_max_count; - while (count > 0 && keep_alive(sock, keep_alive_timeout_sec)) { - auto close_connection = count == 1; - auto connection_closed = false; - ret = callback(close_connection, connection_closed); - if (!ret || connection_closed) { break; } - count--; - } - return ret; -} - -template -inline bool -process_server_socket(socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - return process_server_socket_core( - sock, keep_alive_max_count, keep_alive_timeout_sec, - [&](bool close_connection, bool &connection_closed) { - SocketStream strm(sock, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm, close_connection, connection_closed); - }); -} - -template -inline bool process_client_socket(socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - SocketStream strm(sock, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm); -} - -inline int shutdown_socket(socket_t sock) { -#ifdef _WIN32 - return shutdown(sock, SD_BOTH); -#else - return shutdown(sock, SHUT_RDWR); -#endif -} - -template -socket_t create_socket(const char *host, int port, int socket_flags, - bool tcp_nodelay, SocketOptions socket_options, - BindOrConnect bind_or_connect) { - // Get address info - struct addrinfo hints; - struct addrinfo *result; - - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = socket_flags; - hints.ai_protocol = 0; - - auto service = std::to_string(port); - - if (getaddrinfo(host, service.c_str(), &hints, &result)) { -#ifdef __linux__ - res_init(); -#endif - return INVALID_SOCKET; - } - - for (auto rp = result; rp; rp = rp->ai_next) { - // Create a socket -#ifdef _WIN32 - auto sock = WSASocketW(rp->ai_family, rp->ai_socktype, rp->ai_protocol, - nullptr, 0, WSA_FLAG_NO_HANDLE_INHERIT); - /** - * Since the WSA_FLAG_NO_HANDLE_INHERIT is only supported on Windows 7 SP1 - * and above the socket creation fails on older Windows Systems. - * - * Let's try to create a socket the old way in this case. - * - * Reference: - * https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketa - * - * WSA_FLAG_NO_HANDLE_INHERIT: - * This flag is supported on Windows 7 with SP1, Windows Server 2008 R2 with - * SP1, and later - * - */ - if (sock == INVALID_SOCKET) { - sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); - } -#else - auto sock = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); -#endif - if (sock == INVALID_SOCKET) { continue; } - -#ifndef _WIN32 - if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { continue; } -#endif - - if (tcp_nodelay) { - int yes = 1; - setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&yes), - sizeof(yes)); - } - - if (socket_options) { socket_options(sock); } - - if (rp->ai_family == AF_INET6) { - int no = 0; - setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, reinterpret_cast(&no), - sizeof(no)); - } - - // bind or connect - if (bind_or_connect(sock, *rp)) { - freeaddrinfo(result); - return sock; - } - - close_socket(sock); - } - - freeaddrinfo(result); - return INVALID_SOCKET; -} - -inline void set_nonblocking(socket_t sock, bool nonblocking) { -#ifdef _WIN32 - auto flags = nonblocking ? 1UL : 0UL; - ioctlsocket(sock, FIONBIO, &flags); -#else - auto flags = fcntl(sock, F_GETFL, 0); - fcntl(sock, F_SETFL, - nonblocking ? (flags | O_NONBLOCK) : (flags & (~O_NONBLOCK))); -#endif -} - -inline bool is_connection_error() { -#ifdef _WIN32 - return WSAGetLastError() != WSAEWOULDBLOCK; -#else - return errno != EINPROGRESS; -#endif -} - -inline bool bind_ip_address(socket_t sock, const char *host) { - struct addrinfo hints; - struct addrinfo *result; - - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; - hints.ai_socktype = SOCK_STREAM; - hints.ai_protocol = 0; - - if (getaddrinfo(host, "0", &hints, &result)) { return false; } - - auto ret = false; - for (auto rp = result; rp; rp = rp->ai_next) { - const auto &ai = *rp; - if (!::bind(sock, ai.ai_addr, static_cast(ai.ai_addrlen))) { - ret = true; - break; - } - } - - freeaddrinfo(result); - return ret; -} - -#if !defined _WIN32 && !defined ANDROID -#define USE_IF2IP -#endif - -#ifdef USE_IF2IP -inline std::string if2ip(const std::string &ifn) { - struct ifaddrs *ifap; - getifaddrs(&ifap); - for (auto ifa = ifap; ifa; ifa = ifa->ifa_next) { - if (ifa->ifa_addr && ifn == ifa->ifa_name) { - if (ifa->ifa_addr->sa_family == AF_INET) { - auto sa = reinterpret_cast(ifa->ifa_addr); - char buf[INET_ADDRSTRLEN]; - if (inet_ntop(AF_INET, &sa->sin_addr, buf, INET_ADDRSTRLEN)) { - freeifaddrs(ifap); - return std::string(buf, INET_ADDRSTRLEN); - } - } - } - } - freeifaddrs(ifap); - return std::string(); -} -#endif - -inline socket_t create_client_socket(const char *host, int port, - bool tcp_nodelay, - SocketOptions socket_options, - time_t timeout_sec, time_t timeout_usec, - const std::string &intf, Error &error) { - auto sock = create_socket( - host, port, 0, tcp_nodelay, std::move(socket_options), - [&](socket_t sock, struct addrinfo &ai) -> bool { - if (!intf.empty()) { -#ifdef USE_IF2IP - auto ip = if2ip(intf); - if (ip.empty()) { ip = intf; } - if (!bind_ip_address(sock, ip.c_str())) { - error = Error::BindIPAddress; - return false; - } -#endif - } - - set_nonblocking(sock, true); - - auto ret = - ::connect(sock, ai.ai_addr, static_cast(ai.ai_addrlen)); - - if (ret < 0) { - if (is_connection_error() || - !wait_until_socket_is_ready(sock, timeout_sec, timeout_usec)) { - close_socket(sock); - error = Error::Connection; - return false; - } - } - - set_nonblocking(sock, false); - error = Error::Success; - return true; - }); - - if (sock != INVALID_SOCKET) { - error = Error::Success; - } else { - if (error == Error::Success) { error = Error::Connection; } - } - - return sock; -} - -inline void get_remote_ip_and_port(const struct sockaddr_storage &addr, - socklen_t addr_len, std::string &ip, - int &port) { - if (addr.ss_family == AF_INET) { - port = ntohs(reinterpret_cast(&addr)->sin_port); - } else if (addr.ss_family == AF_INET6) { - port = - ntohs(reinterpret_cast(&addr)->sin6_port); - } - - std::array ipstr{}; - if (!getnameinfo(reinterpret_cast(&addr), addr_len, - ipstr.data(), static_cast(ipstr.size()), nullptr, - 0, NI_NUMERICHOST)) { - ip = ipstr.data(); - } -} - -inline void get_remote_ip_and_port(socket_t sock, std::string &ip, int &port) { - struct sockaddr_storage addr; - socklen_t addr_len = sizeof(addr); - - if (!getpeername(sock, reinterpret_cast(&addr), - &addr_len)) { - get_remote_ip_and_port(addr, addr_len, ip, port); - } -} - -inline const char * -find_content_type(const std::string &path, - const std::map &user_data) { - auto ext = file_extension(path); - - auto it = user_data.find(ext); - if (it != user_data.end()) { return it->second.c_str(); } - - if (ext == "txt") { - return "text/plain"; - } else if (ext == "html" || ext == "htm") { - return "text/html"; - } else if (ext == "css") { - return "text/css"; - } else if (ext == "jpeg" || ext == "jpg") { - return "image/jpg"; - } else if (ext == "png") { - return "image/png"; - } else if (ext == "gif") { - return "image/gif"; - } else if (ext == "svg") { - return "image/svg+xml"; - } else if (ext == "ico") { - return "image/x-icon"; - } else if (ext == "json") { - return "application/json"; - } else if (ext == "pdf") { - return "application/pdf"; - } else if (ext == "js") { - return "application/javascript"; - } else if (ext == "wasm") { - return "application/wasm"; - } else if (ext == "xml") { - return "application/xml"; - } else if (ext == "xhtml") { - return "application/xhtml+xml"; - } - return nullptr; -} - -inline const char *status_message(int status) { - switch (status) { - case 100: return "Continue"; - case 101: return "Switching Protocol"; - case 102: return "Processing"; - case 103: return "Early Hints"; - case 200: return "OK"; - case 201: return "Created"; - case 202: return "Accepted"; - case 203: return "Non-Authoritative Information"; - case 204: return "No Content"; - case 205: return "Reset Content"; - case 206: return "Partial Content"; - case 207: return "Multi-Status"; - case 208: return "Already Reported"; - case 226: return "IM Used"; - case 300: return "Multiple Choice"; - case 301: return "Moved Permanently"; - case 302: return "Found"; - case 303: return "See Other"; - case 304: return "Not Modified"; - case 305: return "Use Proxy"; - case 306: return "unused"; - case 307: return "Temporary Redirect"; - case 308: return "Permanent Redirect"; - case 400: return "Bad Request"; - case 401: return "Unauthorized"; - case 402: return "Payment Required"; - case 403: return "Forbidden"; - case 404: return "Not Found"; - case 405: return "Method Not Allowed"; - case 406: return "Not Acceptable"; - case 407: return "Proxy Authentication Required"; - case 408: return "Request Timeout"; - case 409: return "Conflict"; - case 410: return "Gone"; - case 411: return "Length Required"; - case 412: return "Precondition Failed"; - case 413: return "Payload Too Large"; - case 414: return "URI Too Long"; - case 415: return "Unsupported Media Type"; - case 416: return "Range Not Satisfiable"; - case 417: return "Expectation Failed"; - case 418: return "I'm a teapot"; - case 421: return "Misdirected Request"; - case 422: return "Unprocessable Entity"; - case 423: return "Locked"; - case 424: return "Failed Dependency"; - case 425: return "Too Early"; - case 426: return "Upgrade Required"; - case 428: return "Precondition Required"; - case 429: return "Too Many Requests"; - case 431: return "Request Header Fields Too Large"; - case 451: return "Unavailable For Legal Reasons"; - case 501: return "Not Implemented"; - case 502: return "Bad Gateway"; - case 503: return "Service Unavailable"; - case 504: return "Gateway Timeout"; - case 505: return "HTTP Version Not Supported"; - case 506: return "Variant Also Negotiates"; - case 507: return "Insufficient Storage"; - case 508: return "Loop Detected"; - case 510: return "Not Extended"; - case 511: return "Network Authentication Required"; - - default: - case 500: return "Internal Server Error"; - } -} - -inline bool can_compress_content_type(const std::string &content_type) { - return (!content_type.find("text/") && content_type != "text/event-stream") || - content_type == "image/svg+xml" || - content_type == "application/javascript" || - content_type == "application/json" || - content_type == "application/xml" || - content_type == "application/xhtml+xml"; -} - -enum class EncodingType { None = 0, Gzip, Brotli }; - -inline EncodingType encoding_type(const Request &req, const Response &res) { - auto ret = - detail::can_compress_content_type(res.get_header_value("Content-Type")); - if (!ret) { return EncodingType::None; } - - const auto &s = req.get_header_value("Accept-Encoding"); - (void)(s); - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - // TODO: 'Accept-Encoding' has br, not br;q=0 - ret = s.find("br") != std::string::npos; - if (ret) { return EncodingType::Brotli; } -#endif - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - // TODO: 'Accept-Encoding' has gzip, not gzip;q=0 - ret = s.find("gzip") != std::string::npos; - if (ret) { return EncodingType::Gzip; } -#endif - - return EncodingType::None; -} - -class compressor { -public: - virtual ~compressor(){}; - - typedef std::function Callback; - virtual bool compress(const char *data, size_t data_length, bool last, - Callback callback) = 0; -}; - -class decompressor { -public: - virtual ~decompressor() {} - - virtual bool is_valid() const = 0; - - typedef std::function Callback; - virtual bool decompress(const char *data, size_t data_length, - Callback callback) = 0; -}; - -class nocompressor : public compressor { -public: - ~nocompressor(){}; - - bool compress(const char *data, size_t data_length, bool /*last*/, - Callback callback) override { - if (!data_length) { return true; } - return callback(data, data_length); - } -}; - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT -class gzip_compressor : public compressor { -public: - gzip_compressor() { - std::memset(&strm_, 0, sizeof(strm_)); - strm_.zalloc = Z_NULL; - strm_.zfree = Z_NULL; - strm_.opaque = Z_NULL; - - is_valid_ = deflateInit2(&strm_, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 8, - Z_DEFAULT_STRATEGY) == Z_OK; - } - - ~gzip_compressor() { deflateEnd(&strm_); } - - bool compress(const char *data, size_t data_length, bool last, - Callback callback) override { - assert(is_valid_); - - auto flush = last ? Z_FINISH : Z_NO_FLUSH; - - strm_.avail_in = static_cast(data_length); - strm_.next_in = const_cast(reinterpret_cast(data)); - - int ret = Z_OK; - - std::array buff{}; - do { - strm_.avail_out = buff.size(); - strm_.next_out = reinterpret_cast(buff.data()); - - ret = deflate(&strm_, flush); - assert(ret != Z_STREAM_ERROR); - - if (!callback(buff.data(), buff.size() - strm_.avail_out)) { - return false; - } - } while (strm_.avail_out == 0); - - assert((last && ret == Z_STREAM_END) || (!last && ret == Z_OK)); - assert(strm_.avail_in == 0); - return true; - } - -private: - bool is_valid_ = false; - z_stream strm_; -}; - -class gzip_decompressor : public decompressor { -public: - gzip_decompressor() { - std::memset(&strm_, 0, sizeof(strm_)); - strm_.zalloc = Z_NULL; - strm_.zfree = Z_NULL; - strm_.opaque = Z_NULL; - - // 15 is the value of wbits, which should be at the maximum possible value - // to ensure that any gzip stream can be decoded. The offset of 32 specifies - // that the stream type should be automatically detected either gzip or - // deflate. - is_valid_ = inflateInit2(&strm_, 32 + 15) == Z_OK; - } - - ~gzip_decompressor() { inflateEnd(&strm_); } - - bool is_valid() const override { return is_valid_; } - - bool decompress(const char *data, size_t data_length, - Callback callback) override { - assert(is_valid_); - - int ret = Z_OK; - - strm_.avail_in = static_cast(data_length); - strm_.next_in = const_cast(reinterpret_cast(data)); - - std::array buff{}; - while (strm_.avail_in > 0) { - strm_.avail_out = buff.size(); - strm_.next_out = reinterpret_cast(buff.data()); - - ret = inflate(&strm_, Z_NO_FLUSH); - assert(ret != Z_STREAM_ERROR); - switch (ret) { - case Z_NEED_DICT: - case Z_DATA_ERROR: - case Z_MEM_ERROR: inflateEnd(&strm_); return false; - } - - if (!callback(buff.data(), buff.size() - strm_.avail_out)) { - return false; - } - } - - return ret == Z_OK || ret == Z_STREAM_END; - } - -private: - bool is_valid_ = false; - z_stream strm_; -}; -#endif - -#ifdef CPPHTTPLIB_BROTLI_SUPPORT -class brotli_compressor : public compressor { -public: - brotli_compressor() { - state_ = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr); - } - - ~brotli_compressor() { BrotliEncoderDestroyInstance(state_); } - - bool compress(const char *data, size_t data_length, bool last, - Callback callback) override { - std::array buff{}; - - auto operation = last ? BROTLI_OPERATION_FINISH : BROTLI_OPERATION_PROCESS; - auto available_in = data_length; - auto next_in = reinterpret_cast(data); - - for (;;) { - if (last) { - if (BrotliEncoderIsFinished(state_)) { break; } - } else { - if (!available_in) { break; } - } - - auto available_out = buff.size(); - auto next_out = buff.data(); - - if (!BrotliEncoderCompressStream(state_, operation, &available_in, - &next_in, &available_out, &next_out, - nullptr)) { - return false; - } - - auto output_bytes = buff.size() - available_out; - if (output_bytes) { - callback(reinterpret_cast(buff.data()), output_bytes); - } - } - - return true; - } - -private: - BrotliEncoderState *state_ = nullptr; -}; - -class brotli_decompressor : public decompressor { -public: - brotli_decompressor() { - decoder_s = BrotliDecoderCreateInstance(0, 0, 0); - decoder_r = decoder_s ? BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT - : BROTLI_DECODER_RESULT_ERROR; - } - - ~brotli_decompressor() { - if (decoder_s) { BrotliDecoderDestroyInstance(decoder_s); } - } - - bool is_valid() const override { return decoder_s; } - - bool decompress(const char *data, size_t data_length, - Callback callback) override { - if (decoder_r == BROTLI_DECODER_RESULT_SUCCESS || - decoder_r == BROTLI_DECODER_RESULT_ERROR) { - return 0; - } - - const uint8_t *next_in = (const uint8_t *)data; - size_t avail_in = data_length; - size_t total_out; - - decoder_r = BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT; - - std::array buff{}; - while (decoder_r == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) { - char *next_out = buff.data(); - size_t avail_out = buff.size(); - - decoder_r = BrotliDecoderDecompressStream( - decoder_s, &avail_in, &next_in, &avail_out, - reinterpret_cast(&next_out), &total_out); - - if (decoder_r == BROTLI_DECODER_RESULT_ERROR) { return false; } - - if (!callback(buff.data(), buff.size() - avail_out)) { return false; } - } - - return decoder_r == BROTLI_DECODER_RESULT_SUCCESS || - decoder_r == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT; - } - -private: - BrotliDecoderResult decoder_r; - BrotliDecoderState *decoder_s = nullptr; -}; -#endif - -inline bool has_header(const Headers &headers, const char *key) { - return headers.find(key) != headers.end(); -} - -inline const char *get_header_value(const Headers &headers, const char *key, - size_t id = 0, const char *def = nullptr) { - auto rng = headers.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { return it->second.c_str(); } - return def; -} - -template -inline T get_header_value(const Headers & /*headers*/, const char * /*key*/, - size_t /*id*/ = 0, uint64_t /*def*/ = 0) {} - -template <> -inline uint64_t get_header_value(const Headers &headers, - const char *key, size_t id, - uint64_t def) { - auto rng = headers.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { - return std::strtoull(it->second.data(), nullptr, 10); - } - return def; -} - -template -inline bool parse_header(const char *beg, const char *end, T fn) { - // Skip trailing spaces and tabs. - while (beg < end && is_space_or_tab(end[-1])) { - end--; - } - - auto p = beg; - while (p < end && *p != ':') { - p++; - } - - if (p == end) { return false; } - - auto key_end = p; - - if (*p++ != ':') { return false; } - - while (p < end && is_space_or_tab(*p)) { - p++; - } - - if (p < end) { - fn(std::string(beg, key_end), decode_url(std::string(p, end), false)); - return true; - } - - return false; -} - -inline bool read_headers(Stream &strm, Headers &headers) { - const auto bufsiz = 2048; - char buf[bufsiz]; - stream_line_reader line_reader(strm, buf, bufsiz); - - for (;;) { - if (!line_reader.getline()) { return false; } - - // Check if the line ends with CRLF. - if (line_reader.end_with_crlf()) { - // Blank line indicates end of headers. - if (line_reader.size() == 2) { break; } - } else { - continue; // Skip invalid line. - } - - // Exclude CRLF - auto end = line_reader.ptr() + line_reader.size() - 2; - - parse_header(line_reader.ptr(), end, - [&](std::string &&key, std::string &&val) { - headers.emplace(std::move(key), std::move(val)); - }); - } - - return true; -} - -inline bool read_content_with_length(Stream &strm, uint64_t len, - Progress progress, - ContentReceiverWithProgress out) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - - uint64_t r = 0; - while (r < len) { - auto read_len = static_cast(len - r); - auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); - if (n <= 0) { return false; } - - if (!out(buf, static_cast(n), r, len)) { return false; } - r += static_cast(n); - - if (progress) { - if (!progress(r, len)) { return false; } - } - } - - return true; -} - -inline void skip_content_with_length(Stream &strm, uint64_t len) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - uint64_t r = 0; - while (r < len) { - auto read_len = static_cast(len - r); - auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); - if (n <= 0) { return; } - r += static_cast(n); - } -} - -inline bool read_content_without_length(Stream &strm, - ContentReceiverWithProgress out) { - char buf[CPPHTTPLIB_RECV_BUFSIZ]; - uint64_t r = 0; - for (;;) { - auto n = strm.read(buf, CPPHTTPLIB_RECV_BUFSIZ); - if (n < 0) { - return false; - } else if (n == 0) { - return true; - } - - if (!out(buf, static_cast(n), r, 0)) { return false; } - r += static_cast(n); - } - - return true; -} - -inline bool read_content_chunked(Stream &strm, - ContentReceiverWithProgress out) { - const auto bufsiz = 16; - char buf[bufsiz]; - - stream_line_reader line_reader(strm, buf, bufsiz); - - if (!line_reader.getline()) { return false; } - - unsigned long chunk_len; - while (true) { - char *end_ptr; - - chunk_len = std::strtoul(line_reader.ptr(), &end_ptr, 16); - - if (end_ptr == line_reader.ptr()) { return false; } - if (chunk_len == ULONG_MAX) { return false; } - - if (chunk_len == 0) { break; } - - if (!read_content_with_length(strm, chunk_len, nullptr, out)) { - return false; - } - - if (!line_reader.getline()) { return false; } - - if (strcmp(line_reader.ptr(), "\r\n")) { break; } - - if (!line_reader.getline()) { return false; } - } - - if (chunk_len == 0) { - // Reader terminator after chunks - if (!line_reader.getline() || strcmp(line_reader.ptr(), "\r\n")) - return false; - } - - return true; -} - -inline bool is_chunked_transfer_encoding(const Headers &headers) { - return !strcasecmp(get_header_value(headers, "Transfer-Encoding", 0, ""), - "chunked"); -} - -template -bool prepare_content_receiver(T &x, int &status, - ContentReceiverWithProgress receiver, - bool decompress, U callback) { - if (decompress) { - std::string encoding = x.get_header_value("Content-Encoding"); - std::unique_ptr decompressor; - - if (encoding.find("gzip") != std::string::npos || - encoding.find("deflate") != std::string::npos) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - decompressor = detail::make_unique(); -#else - status = 415; - return false; -#endif - } else if (encoding.find("br") != std::string::npos) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - decompressor = detail::make_unique(); -#else - status = 415; - return false; -#endif - } - - if (decompressor) { - if (decompressor->is_valid()) { - ContentReceiverWithProgress out = [&](const char *buf, size_t n, - uint64_t off, uint64_t len) { - return decompressor->decompress(buf, n, - [&](const char *buf, size_t n) { - return receiver(buf, n, off, len); - }); - }; - return callback(std::move(out)); - } else { - status = 500; - return false; - } - } - } - - ContentReceiverWithProgress out = [&](const char *buf, size_t n, uint64_t off, - uint64_t len) { - return receiver(buf, n, off, len); - }; - return callback(std::move(out)); -} - -template -bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status, - Progress progress, ContentReceiverWithProgress receiver, - bool decompress) { - return prepare_content_receiver( - x, status, std::move(receiver), decompress, - [&](const ContentReceiverWithProgress &out) { - auto ret = true; - auto exceed_payload_max_length = false; - - if (is_chunked_transfer_encoding(x.headers)) { - ret = read_content_chunked(strm, out); - } else if (!has_header(x.headers, "Content-Length")) { - ret = read_content_without_length(strm, out); - } else { - auto len = get_header_value(x.headers, "Content-Length"); - if (len > payload_max_length) { - exceed_payload_max_length = true; - skip_content_with_length(strm, len); - ret = false; - } else if (len > 0) { - ret = read_content_with_length(strm, len, std::move(progress), out); - } - } - - if (!ret) { status = exceed_payload_max_length ? 413 : 400; } - return ret; - }); -} - -template -inline ssize_t write_headers(Stream &strm, const T &info, - const Headers &headers) { - ssize_t write_len = 0; - for (const auto &x : info.headers) { - if (x.first == "EXCEPTION_WHAT") { continue; } - auto len = - strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str()); - if (len < 0) { return len; } - write_len += len; - } - for (const auto &x : headers) { - auto len = - strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str()); - if (len < 0) { return len; } - write_len += len; - } - auto len = strm.write("\r\n"); - if (len < 0) { return len; } - write_len += len; - return write_len; -} - -inline bool write_data(Stream &strm, const char *d, size_t l) { - size_t offset = 0; - while (offset < l) { - auto length = strm.write(d + offset, l - offset); - if (length < 0) { return false; } - offset += static_cast(length); - } - return true; -} - -template -inline ssize_t write_content(Stream &strm, ContentProvider content_provider, - size_t offset, size_t length, T is_shutting_down) { - size_t begin_offset = offset; - size_t end_offset = offset + length; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - offset += l; - if (!write_data(strm, d, l)) { ok = false; } - } - }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (offset < end_offset && !is_shutting_down()) { - if (!content_provider(offset, end_offset - offset, data_sink)) { - return -1; - } - if (!ok) { return -1; } - } - - return static_cast(offset - begin_offset); -} - -template -inline ssize_t write_content_without_length(Stream &strm, - ContentProvider content_provider, - T is_shutting_down) { - size_t offset = 0; - auto data_available = true; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - offset += l; - if (!write_data(strm, d, l)) { ok = false; } - } - }; - - data_sink.done = [&](void) { data_available = false; }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (data_available && !is_shutting_down()) { - if (!content_provider(offset, 0, data_sink)) { return -1; } - if (!ok) { return -1; } - } - - return static_cast(offset); -} - -template -inline ssize_t write_content_chunked(Stream &strm, - ContentProvider content_provider, - T is_shutting_down, U &compressor) { - size_t offset = 0; - auto data_available = true; - ssize_t total_written_length = 0; - auto ok = true; - DataSink data_sink; - - data_sink.write = [&](const char *d, size_t l) { - if (!ok) { return; } - - data_available = l > 0; - offset += l; - - std::string payload; - if (!compressor.compress(d, l, false, - [&](const char *data, size_t data_len) { - payload.append(data, data_len); - return true; - })) { - ok = false; - return; - } - - if (!payload.empty()) { - // Emit chunked response header and footer for each chunk - auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; - if (write_data(strm, chunk.data(), chunk.size())) { - total_written_length += chunk.size(); - } else { - ok = false; - return; - } - } - }; - - data_sink.done = [&](void) { - if (!ok) { return; } - - data_available = false; - - std::string payload; - if (!compressor.compress(nullptr, 0, true, - [&](const char *data, size_t data_len) { - payload.append(data, data_len); - return true; - })) { - ok = false; - return; - } - - if (!payload.empty()) { - // Emit chunked response header and footer for each chunk - auto chunk = from_i_to_hex(payload.size()) + "\r\n" + payload + "\r\n"; - if (write_data(strm, chunk.data(), chunk.size())) { - total_written_length += chunk.size(); - } else { - ok = false; - return; - } - } - - static const std::string done_marker("0\r\n\r\n"); - if (write_data(strm, done_marker.data(), done_marker.size())) { - total_written_length += done_marker.size(); - } else { - ok = false; - } - }; - - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (data_available && !is_shutting_down()) { - if (!content_provider(offset, 0, data_sink)) { return -1; } - if (!ok) { return -1; } - } - - return total_written_length; -} - -template -inline bool redirect(T &cli, const Request &req, Response &res, - const std::string &path) { - Request new_req = req; - new_req.path = path; - new_req.redirect_count -= 1; - - if (res.status == 303 && (req.method != "GET" && req.method != "HEAD")) { - new_req.method = "GET"; - new_req.body.clear(); - new_req.headers.clear(); - } - - Response new_res; - - auto ret = cli.send(new_req, new_res); - if (ret) { res = new_res; } - return ret; -} - -inline std::string params_to_query_str(const Params ¶ms) { - std::string query; - - for (auto it = params.begin(); it != params.end(); ++it) { - if (it != params.begin()) { query += "&"; } - query += it->first; - query += "="; - query += encode_url(it->second); - } - return query; -} - -inline void parse_query_text(const std::string &s, Params ¶ms) { - split(s.data(), s.data() + s.size(), '&', [&](const char *b, const char *e) { - std::string key; - std::string val; - split(b, e, '=', [&](const char *b2, const char *e2) { - if (key.empty()) { - key.assign(b2, e2); - } else { - val.assign(b2, e2); - } - }); - - if (!key.empty()) { - params.emplace(decode_url(key, true), decode_url(val, true)); - } - }); -} - -inline bool parse_multipart_boundary(const std::string &content_type, - std::string &boundary) { - auto pos = content_type.find("boundary="); - if (pos == std::string::npos) { return false; } - boundary = content_type.substr(pos + 9); - if (boundary.length() >= 2 && boundary.front() == '"' && - boundary.back() == '"') { - boundary = boundary.substr(1, boundary.size() - 2); - } - return !boundary.empty(); -} - -inline bool parse_range_header(const std::string &s, Ranges &ranges) try { - static auto re_first_range = std::regex(R"(bytes=(\d*-\d*(?:,\s*\d*-\d*)*))"); - std::smatch m; - if (std::regex_match(s, m, re_first_range)) { - auto pos = static_cast(m.position(1)); - auto len = static_cast(m.length(1)); - bool all_valid_ranges = true; - split(&s[pos], &s[pos + len], ',', [&](const char *b, const char *e) { - if (!all_valid_ranges) return; - static auto re_another_range = std::regex(R"(\s*(\d*)-(\d*))"); - std::cmatch cm; - if (std::regex_match(b, e, cm, re_another_range)) { - ssize_t first = -1; - if (!cm.str(1).empty()) { - first = static_cast(std::stoll(cm.str(1))); - } - - ssize_t last = -1; - if (!cm.str(2).empty()) { - last = static_cast(std::stoll(cm.str(2))); - } - - if (first != -1 && last != -1 && first > last) { - all_valid_ranges = false; - return; - } - ranges.emplace_back(std::make_pair(first, last)); - } - }); - return all_valid_ranges; - } - return false; -} catch (...) { return false; } - -class MultipartFormDataParser { -public: - MultipartFormDataParser() = default; - - void set_boundary(std::string &&boundary) { boundary_ = boundary; } - - bool is_valid() const { return is_valid_; } - - bool parse(const char *buf, size_t n, const ContentReceiver &content_callback, - const MultipartContentHeader &header_callback) { - - static const std::regex re_content_disposition( - "^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename=" - "\"(.*?)\")?\\s*$", - std::regex_constants::icase); - static const std::string dash_ = "--"; - static const std::string crlf_ = "\r\n"; - - buf_.append(buf, n); // TODO: performance improvement - - while (!buf_.empty()) { - switch (state_) { - case 0: { // Initial boundary - auto pattern = dash_ + boundary_ + crlf_; - if (pattern.size() > buf_.size()) { return true; } - auto pos = buf_.find(pattern); - if (pos != 0) { return false; } - buf_.erase(0, pattern.size()); - off_ += pattern.size(); - state_ = 1; - break; - } - case 1: { // New entry - clear_file_info(); - state_ = 2; - break; - } - case 2: { // Headers - auto pos = buf_.find(crlf_); - while (pos != std::string::npos) { - // Empty line - if (pos == 0) { - if (!header_callback(file_)) { - is_valid_ = false; - return false; - } - buf_.erase(0, crlf_.size()); - off_ += crlf_.size(); - state_ = 3; - break; - } - - static const std::string header_name = "content-type:"; - const auto header = buf_.substr(0, pos); - if (start_with(header, header_name)) { - file_.content_type = trim_copy(header.substr(header_name.size())); - } else { - std::smatch m; - if (std::regex_match(header, m, re_content_disposition)) { - file_.name = m[1]; - file_.filename = m[2]; - } - } - - buf_.erase(0, pos + crlf_.size()); - off_ += pos + crlf_.size(); - pos = buf_.find(crlf_); - } - if (state_ != 3) { return true; } - break; - } - case 3: { // Body - { - auto pattern = crlf_ + dash_; - if (pattern.size() > buf_.size()) { return true; } - - auto pos = buf_.find(pattern); - if (pos == std::string::npos) { - pos = buf_.size(); - while (pos > 0) { - auto c = buf_[pos - 1]; - if (c != '\r' && c != '\n' && c != '-') { break; } - pos--; - } - } - - if (!content_callback(buf_.data(), pos)) { - is_valid_ = false; - return false; - } - - off_ += pos; - buf_.erase(0, pos); - } - - { - auto pattern = crlf_ + dash_ + boundary_; - if (pattern.size() > buf_.size()) { return true; } - - auto pos = buf_.find(pattern); - if (pos != std::string::npos) { - if (!content_callback(buf_.data(), pos)) { - is_valid_ = false; - return false; - } - - off_ += pos + pattern.size(); - buf_.erase(0, pos + pattern.size()); - state_ = 4; - } else { - if (!content_callback(buf_.data(), pattern.size())) { - is_valid_ = false; - return false; - } - - off_ += pattern.size(); - buf_.erase(0, pattern.size()); - } - } - break; - } - case 4: { // Boundary - if (crlf_.size() > buf_.size()) { return true; } - if (buf_.compare(0, crlf_.size(), crlf_) == 0) { - buf_.erase(0, crlf_.size()); - off_ += crlf_.size(); - state_ = 1; - } else { - auto pattern = dash_ + crlf_; - if (pattern.size() > buf_.size()) { return true; } - if (buf_.compare(0, pattern.size(), pattern) == 0) { - buf_.erase(0, pattern.size()); - off_ += pattern.size(); - is_valid_ = true; - state_ = 5; - } else { - return true; - } - } - break; - } - case 5: { // Done - is_valid_ = false; - return false; - } - } - } - - return true; - } - -private: - void clear_file_info() { - file_.name.clear(); - file_.filename.clear(); - file_.content_type.clear(); - } - - std::string boundary_; - - std::string buf_; - size_t state_ = 0; - bool is_valid_ = false; - size_t off_ = 0; - MultipartFormData file_; -}; - -inline std::string to_lower(const char *beg, const char *end) { - std::string out; - auto it = beg; - while (it != end) { - out += static_cast(::tolower(*it)); - it++; - } - return out; -} - -inline std::string make_multipart_data_boundary() { - static const char data[] = - "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; - - // std::random_device might actually be deterministic on some - // platforms, but due to lack of support in the c++ standard library, - // doing better requires either some ugly hacks or breaking portability. - std::random_device seed_gen; - // Request 128 bits of entropy for initialization - std::seed_seq seed_sequence{seed_gen(), seed_gen(), seed_gen(), seed_gen()}; - std::mt19937 engine(seed_sequence); - - std::string result = "--cpp-httplib-multipart-data-"; - - for (auto i = 0; i < 16; i++) { - result += data[engine() % (sizeof(data) - 1)]; - } - - return result; -} - -inline std::pair -get_range_offset_and_length(const Request &req, size_t content_length, - size_t index) { - auto r = req.ranges[index]; - - if (r.first == -1 && r.second == -1) { - return std::make_pair(0, content_length); - } - - auto slen = static_cast(content_length); - - if (r.first == -1) { - r.first = (std::max)(static_cast(0), slen - r.second); - r.second = slen - 1; - } - - if (r.second == -1) { r.second = slen - 1; } - return std::make_pair(r.first, static_cast(r.second - r.first) + 1); -} - -inline std::string make_content_range_header_field(size_t offset, size_t length, - size_t content_length) { - std::string field = "bytes "; - field += std::to_string(offset); - field += "-"; - field += std::to_string(offset + length - 1); - field += "/"; - field += std::to_string(content_length); - return field; -} - -template -bool process_multipart_ranges_data(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type, - SToken stoken, CToken ctoken, - Content content) { - for (size_t i = 0; i < req.ranges.size(); i++) { - ctoken("--"); - stoken(boundary); - ctoken("\r\n"); - if (!content_type.empty()) { - ctoken("Content-Type: "); - stoken(content_type); - ctoken("\r\n"); - } - - auto offsets = get_range_offset_and_length(req, res.body.size(), i); - auto offset = offsets.first; - auto length = offsets.second; - - ctoken("Content-Range: "); - stoken(make_content_range_header_field(offset, length, res.body.size())); - ctoken("\r\n"); - ctoken("\r\n"); - if (!content(offset, length)) { return false; } - ctoken("\r\n"); - } - - ctoken("--"); - stoken(boundary); - ctoken("--\r\n"); - - return true; -} - -inline bool make_multipart_ranges_data(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type, - std::string &data) { - return process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { data += token; }, - [&](const char *token) { data += token; }, - [&](size_t offset, size_t length) { - if (offset < res.body.size()) { - data += res.body.substr(offset, length); - return true; - } - return false; - }); -} - -inline size_t -get_multipart_ranges_data_length(const Request &req, Response &res, - const std::string &boundary, - const std::string &content_type) { - size_t data_length = 0; - - process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { data_length += token.size(); }, - [&](const char *token) { data_length += strlen(token); }, - [&](size_t /*offset*/, size_t length) { - data_length += length; - return true; - }); - - return data_length; -} - -template -inline bool write_multipart_ranges_data(Stream &strm, const Request &req, - Response &res, - const std::string &boundary, - const std::string &content_type, - T is_shutting_down) { - return process_multipart_ranges_data( - req, res, boundary, content_type, - [&](const std::string &token) { strm.write(token); }, - [&](const char *token) { strm.write(token); }, - [&](size_t offset, size_t length) { - return write_content(strm, res.content_provider_, offset, length, - is_shutting_down) >= 0; - }); -} - -inline std::pair -get_range_offset_and_length(const Request &req, const Response &res, - size_t index) { - auto r = req.ranges[index]; - - if (r.second == -1) { - r.second = static_cast(res.content_length_) - 1; - } - - return std::make_pair(r.first, r.second - r.first + 1); -} - -inline bool expect_content(const Request &req) { - if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH" || - req.method == "PRI" || req.method == "DELETE") { - return true; - } - // TODO: check if Content-Length is set - return false; -} - -inline bool has_crlf(const char *s) { - auto p = s; - while (*p) { - if (*p == '\r' || *p == '\n') { return true; } - p++; - } - return false; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -template -inline std::string message_digest(const std::string &s, Init init, - Update update, Final final, - size_t digest_length) { - using namespace std; - - std::vector md(digest_length, 0); - CTX ctx; - init(&ctx); - update(&ctx, s.data(), s.size()); - final(md.data(), &ctx); - - stringstream ss; - for (auto c : md) { - ss << setfill('0') << setw(2) << hex << (unsigned int)c; - } - return ss.str(); -} - -inline std::string MD5(const std::string &s) { - return message_digest(s, MD5_Init, MD5_Update, MD5_Final, - MD5_DIGEST_LENGTH); -} - -inline std::string SHA_256(const std::string &s) { - return message_digest(s, SHA256_Init, SHA256_Update, SHA256_Final, - SHA256_DIGEST_LENGTH); -} - -inline std::string SHA_512(const std::string &s) { - return message_digest(s, SHA512_Init, SHA512_Update, SHA512_Final, - SHA512_DIGEST_LENGTH); -} -#endif - -#ifdef _WIN32 -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -// NOTE: This code came up with the following stackoverflow post: -// https://stackoverflow.com/questions/9507184/can-openssl-on-windows-use-the-system-certificate-store -inline bool load_system_certs_on_windows(X509_STORE *store) { - auto hStore = CertOpenSystemStoreW((HCRYPTPROV_LEGACY)NULL, L"ROOT"); - - if (!hStore) { return false; } - - PCCERT_CONTEXT pContext = NULL; - while (pContext = CertEnumCertificatesInStore(hStore, pContext)) { - auto encoded_cert = - static_cast(pContext->pbCertEncoded); - - auto x509 = d2i_X509(NULL, &encoded_cert, pContext->cbCertEncoded); - if (x509) { - X509_STORE_add_cert(store, x509); - X509_free(x509); - } - } - - CertFreeCertificateContext(pContext); - CertCloseStore(hStore, 0); - - return true; -} -#endif - -class WSInit { -public: - WSInit() { - WSADATA wsaData; - WSAStartup(0x0002, &wsaData); - } - - ~WSInit() { WSACleanup(); } -}; - -static WSInit wsinit_; -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline std::pair make_digest_authentication_header( - const Request &req, const std::map &auth, - size_t cnonce_count, const std::string &cnonce, const std::string &username, - const std::string &password, bool is_proxy = false) { - using namespace std; - - string nc; - { - stringstream ss; - ss << setfill('0') << setw(8) << hex << cnonce_count; - nc = ss.str(); - } - - auto qop = auth.at("qop"); - if (qop.find("auth-int") != std::string::npos) { - qop = "auth-int"; - } else { - qop = "auth"; - } - - std::string algo = "MD5"; - if (auth.find("algorithm") != auth.end()) { algo = auth.at("algorithm"); } - - string response; - { - auto H = algo == "SHA-256" - ? detail::SHA_256 - : algo == "SHA-512" ? detail::SHA_512 : detail::MD5; - - auto A1 = username + ":" + auth.at("realm") + ":" + password; - - auto A2 = req.method + ":" + req.path; - if (qop == "auth-int") { A2 += ":" + H(req.body); } - - response = H(H(A1) + ":" + auth.at("nonce") + ":" + nc + ":" + cnonce + - ":" + qop + ":" + H(A2)); - } - - auto field = "Digest username=\"" + username + "\", realm=\"" + - auth.at("realm") + "\", nonce=\"" + auth.at("nonce") + - "\", uri=\"" + req.path + "\", algorithm=" + algo + - ", qop=" + qop + ", nc=\"" + nc + "\", cnonce=\"" + cnonce + - "\", response=\"" + response + "\""; - - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, field); -} -#endif - -inline bool parse_www_authenticate(const Response &res, - std::map &auth, - bool is_proxy) { - auto auth_key = is_proxy ? "Proxy-Authenticate" : "WWW-Authenticate"; - if (res.has_header(auth_key)) { - static auto re = std::regex(R"~((?:(?:,\s*)?(.+?)=(?:"(.*?)"|([^,]*))))~"); - auto s = res.get_header_value(auth_key); - auto pos = s.find(' '); - if (pos != std::string::npos) { - auto type = s.substr(0, pos); - if (type == "Basic") { - return false; - } else if (type == "Digest") { - s = s.substr(pos + 1); - auto beg = std::sregex_iterator(s.begin(), s.end(), re); - for (auto i = beg; i != std::sregex_iterator(); ++i) { - auto m = *i; - auto key = s.substr(static_cast(m.position(1)), - static_cast(m.length(1))); - auto val = m.length(2) > 0 - ? s.substr(static_cast(m.position(2)), - static_cast(m.length(2))) - : s.substr(static_cast(m.position(3)), - static_cast(m.length(3))); - auth[key] = val; - } - return true; - } - } - } - return false; -} - -// https://stackoverflow.com/questions/440133/how-do-i-create-a-random-alpha-numeric-string-in-c/440240#answer-440240 -inline std::string random_string(size_t length) { - auto randchar = []() -> char { - const char charset[] = "0123456789" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz"; - const size_t max_index = (sizeof(charset) - 1); - return charset[static_cast(rand()) % max_index]; - }; - std::string str(length, 0); - std::generate_n(str.begin(), length, randchar); - return str; -} - -class ContentProviderAdapter { -public: - explicit ContentProviderAdapter( - ContentProviderWithoutLength &&content_provider) - : content_provider_(content_provider) {} - - bool operator()(size_t offset, size_t, DataSink &sink) { - return content_provider_(offset, sink); - } - -private: - ContentProviderWithoutLength content_provider_; -}; - -} // namespace detail - -// Header utilities -inline std::pair make_range_header(Ranges ranges) { - std::string field = "bytes="; - auto i = 0; - for (auto r : ranges) { - if (i != 0) { field += ", "; } - if (r.first != -1) { field += std::to_string(r.first); } - field += '-'; - if (r.second != -1) { field += std::to_string(r.second); } - i++; - } - return std::make_pair("Range", std::move(field)); -} - -inline std::pair -make_basic_authentication_header(const std::string &username, - const std::string &password, - bool is_proxy = false) { - auto field = "Basic " + detail::base64_encode(username + ":" + password); - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, std::move(field)); -} - -inline std::pair -make_bearer_token_authentication_header(const std::string &token, - bool is_proxy = false) { - auto field = "Bearer " + token; - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - return std::make_pair(key, std::move(field)); -} - -// Request implementation -inline bool Request::has_header(const char *key) const { - return detail::has_header(headers, key); -} - -inline std::string Request::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, ""); -} - -template -inline T Request::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, 0); -} - -inline size_t Request::get_header_value_count(const char *key) const { - auto r = headers.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline void Request::set_header(const char *key, const char *val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val)) { - headers.emplace(key, val); - } -} - -inline void Request::set_header(const char *key, const std::string &val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val.c_str())) { - headers.emplace(key, val); - } -} - -inline bool Request::has_param(const char *key) const { - return params.find(key) != params.end(); -} - -inline std::string Request::get_param_value(const char *key, size_t id) const { - auto rng = params.equal_range(key); - auto it = rng.first; - std::advance(it, static_cast(id)); - if (it != rng.second) { return it->second; } - return std::string(); -} - -inline size_t Request::get_param_value_count(const char *key) const { - auto r = params.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline bool Request::is_multipart_form_data() const { - const auto &content_type = get_header_value("Content-Type"); - return !content_type.find("multipart/form-data"); -} - -inline bool Request::has_file(const char *key) const { - return files.find(key) != files.end(); -} - -inline MultipartFormData Request::get_file_value(const char *key) const { - auto it = files.find(key); - if (it != files.end()) { return it->second; } - return MultipartFormData(); -} - -// Response implementation -inline bool Response::has_header(const char *key) const { - return headers.find(key) != headers.end(); -} - -inline std::string Response::get_header_value(const char *key, - size_t id) const { - return detail::get_header_value(headers, key, id, ""); -} - -template -inline T Response::get_header_value(const char *key, size_t id) const { - return detail::get_header_value(headers, key, id, 0); -} - -inline size_t Response::get_header_value_count(const char *key) const { - auto r = headers.equal_range(key); - return static_cast(std::distance(r.first, r.second)); -} - -inline void Response::set_header(const char *key, const char *val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val)) { - headers.emplace(key, val); - } -} - -inline void Response::set_header(const char *key, const std::string &val) { - if (!detail::has_crlf(key) && !detail::has_crlf(val.c_str())) { - headers.emplace(key, val); - } -} - -inline void Response::set_redirect(const char *url, int stat) { - if (!detail::has_crlf(url)) { - set_header("Location", url); - if (300 <= stat && stat < 400) { - this->status = stat; - } else { - this->status = 302; - } - } -} - -inline void Response::set_redirect(const std::string &url, int stat) { - set_redirect(url.c_str(), stat); -} - -inline void Response::set_content(const char *s, size_t n, - const char *content_type) { - body.assign(s, n); - - auto rng = headers.equal_range("Content-Type"); - headers.erase(rng.first, rng.second); - set_header("Content-Type", content_type); -} - -inline void Response::set_content(const std::string &s, - const char *content_type) { - set_content(s.data(), s.size(), content_type); -} - -inline void -Response::set_content_provider(size_t in_length, const char *content_type, - ContentProvider provider, - const std::function &resource_releaser) { - assert(in_length > 0); - set_header("Content-Type", content_type); - content_length_ = in_length; - content_provider_ = std::move(provider); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = false; -} - -inline void -Response::set_content_provider(const char *content_type, - ContentProviderWithoutLength provider, - const std::function &resource_releaser) { - set_header("Content-Type", content_type); - content_length_ = 0; - content_provider_ = detail::ContentProviderAdapter(std::move(provider)); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = false; -} - -inline void Response::set_chunked_content_provider( - const char *content_type, ContentProviderWithoutLength provider, - const std::function &resource_releaser) { - set_header("Content-Type", content_type); - content_length_ = 0; - content_provider_ = detail::ContentProviderAdapter(std::move(provider)); - content_provider_resource_releaser_ = resource_releaser; - is_chunked_content_provider = true; -} - -// Rstream implementation -inline ssize_t Stream::write(const char *ptr) { - return write(ptr, strlen(ptr)); -} - -inline ssize_t Stream::write(const std::string &s) { - return write(s.data(), s.size()); -} - -template -inline ssize_t Stream::write_format(const char *fmt, const Args &... args) { - const auto bufsiz = 2048; - std::array buf; - -#if defined(_MSC_VER) && _MSC_VER < 1900 - auto sn = _snprintf_s(buf.data(), bufsiz - 1, buf.size() - 1, fmt, args...); -#else - auto sn = snprintf(buf.data(), buf.size() - 1, fmt, args...); -#endif - if (sn <= 0) { return sn; } - - auto n = static_cast(sn); - - if (n >= buf.size() - 1) { - std::vector glowable_buf(buf.size()); - - while (n >= glowable_buf.size() - 1) { - glowable_buf.resize(glowable_buf.size() * 2); -#if defined(_MSC_VER) && _MSC_VER < 1900 - n = static_cast(_snprintf_s(&glowable_buf[0], glowable_buf.size(), - glowable_buf.size() - 1, fmt, - args...)); -#else - n = static_cast( - snprintf(&glowable_buf[0], glowable_buf.size() - 1, fmt, args...)); -#endif - } - return write(&glowable_buf[0], n); - } else { - return write(buf.data(), n); - } -} - -namespace detail { - -// Socket stream implementation -inline SocketStream::SocketStream(socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec) - : sock_(sock), read_timeout_sec_(read_timeout_sec), - read_timeout_usec_(read_timeout_usec), - write_timeout_sec_(write_timeout_sec), - write_timeout_usec_(write_timeout_usec) {} - -inline SocketStream::~SocketStream() {} - -inline bool SocketStream::is_readable() const { - return select_read(sock_, read_timeout_sec_, read_timeout_usec_) > 0; -} - -inline bool SocketStream::is_writable() const { - return select_write(sock_, write_timeout_sec_, write_timeout_usec_) > 0; -} - -inline ssize_t SocketStream::read(char *ptr, size_t size) { - if (!is_readable()) { return -1; } - -#ifdef _WIN32 - if (size > static_cast((std::numeric_limits::max)())) { - return -1; - } - return recv(sock_, ptr, static_cast(size), CPPHTTPLIB_RECV_FLAGS); -#else - return handle_EINTR( - [&]() { return recv(sock_, ptr, size, CPPHTTPLIB_RECV_FLAGS); }); -#endif -} - -inline ssize_t SocketStream::write(const char *ptr, size_t size) { - if (!is_writable()) { return -1; } - -#ifdef _WIN32 - if (size > static_cast((std::numeric_limits::max)())) { - return -1; - } - return send(sock_, ptr, static_cast(size), CPPHTTPLIB_SEND_FLAGS); -#else - return handle_EINTR( - [&]() { return send(sock_, ptr, size, CPPHTTPLIB_SEND_FLAGS); }); -#endif -} - -inline void SocketStream::get_remote_ip_and_port(std::string &ip, - int &port) const { - return detail::get_remote_ip_and_port(sock_, ip, port); -} - -inline socket_t SocketStream::socket() const { return sock_; } - -// Buffer stream implementation -inline bool BufferStream::is_readable() const { return true; } - -inline bool BufferStream::is_writable() const { return true; } - -inline ssize_t BufferStream::read(char *ptr, size_t size) { -#if defined(_MSC_VER) && _MSC_VER <= 1900 - auto len_read = buffer._Copy_s(ptr, size, size, position); -#else - auto len_read = buffer.copy(ptr, size, position); -#endif - position += static_cast(len_read); - return static_cast(len_read); -} - -inline ssize_t BufferStream::write(const char *ptr, size_t size) { - buffer.append(ptr, size); - return static_cast(size); -} - -inline void BufferStream::get_remote_ip_and_port(std::string & /*ip*/, - int & /*port*/) const {} - -inline socket_t BufferStream::socket() const { return 0; } - -inline const std::string &BufferStream::get_buffer() const { return buffer; } - -} // namespace detail - -// HTTP server implementation -inline Server::Server() - : new_task_queue( - [] { return new ThreadPool(CPPHTTPLIB_THREAD_POOL_COUNT); }), - svr_sock_(INVALID_SOCKET), is_running_(false) { -#ifndef _WIN32 - signal(SIGPIPE, SIG_IGN); -#endif -} - -inline Server::~Server() {} - -inline Server &Server::Get(const char *pattern, Handler handler) { - get_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Post(const char *pattern, Handler handler) { - post_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Post(const char *pattern, - HandlerWithContentReader handler) { - post_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Put(const char *pattern, Handler handler) { - put_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Put(const char *pattern, - HandlerWithContentReader handler) { - put_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Patch(const char *pattern, Handler handler) { - patch_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Patch(const char *pattern, - HandlerWithContentReader handler) { - patch_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Delete(const char *pattern, Handler handler) { - delete_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Delete(const char *pattern, - HandlerWithContentReader handler) { - delete_handlers_for_content_reader_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline Server &Server::Options(const char *pattern, Handler handler) { - options_handlers_.push_back( - std::make_pair(std::regex(pattern), std::move(handler))); - return *this; -} - -inline bool Server::set_base_dir(const char *dir, const char *mount_point) { - return set_mount_point(mount_point, dir); -} - -inline bool Server::set_mount_point(const char *mount_point, const char *dir, - Headers headers) { - if (detail::is_dir(dir)) { - std::string mnt = mount_point ? mount_point : "/"; - if (!mnt.empty() && mnt[0] == '/') { - base_dirs_.push_back({mnt, dir, std::move(headers)}); - return true; - } - } - return false; -} - -inline bool Server::remove_mount_point(const char *mount_point) { - for (auto it = base_dirs_.begin(); it != base_dirs_.end(); ++it) { - if (it->mount_point == mount_point) { - base_dirs_.erase(it); - return true; - } - } - return false; -} - -inline void Server::set_file_extension_and_mimetype_mapping(const char *ext, - const char *mime) { - file_extension_and_mimetype_map_[ext] = mime; -} - -inline void Server::set_file_request_handler(Handler handler) { - file_request_handler_ = std::move(handler); -} - -inline void Server::set_error_handler(Handler handler) { - error_handler_ = std::move(handler); -} - -inline void Server::set_tcp_nodelay(bool on) { tcp_nodelay_ = on; } - -inline void Server::set_socket_options(SocketOptions socket_options) { - socket_options_ = std::move(socket_options); -} - -inline void Server::set_logger(Logger logger) { logger_ = std::move(logger); } - -inline void -Server::set_expect_100_continue_handler(Expect100ContinueHandler handler) { - expect_100_continue_handler_ = std::move(handler); -} - -inline void Server::set_keep_alive_max_count(size_t count) { - keep_alive_max_count_ = count; -} - -inline void Server::set_keep_alive_timeout(time_t sec) { - keep_alive_timeout_sec_ = sec; -} - -inline void Server::set_read_timeout(time_t sec, time_t usec) { - read_timeout_sec_ = sec; - read_timeout_usec_ = usec; -} - -inline void Server::set_write_timeout(time_t sec, time_t usec) { - write_timeout_sec_ = sec; - write_timeout_usec_ = usec; -} - -inline void Server::set_idle_interval(time_t sec, time_t usec) { - idle_interval_sec_ = sec; - idle_interval_usec_ = usec; -} - -inline void Server::set_payload_max_length(size_t length) { - payload_max_length_ = length; -} - -inline bool Server::bind_to_port(const char *host, int port, int socket_flags) { - if (bind_internal(host, port, socket_flags) < 0) return false; - return true; -} -inline int Server::bind_to_any_port(const char *host, int socket_flags) { - return bind_internal(host, 0, socket_flags); -} - -inline bool Server::listen_after_bind() { return listen_internal(); } - -inline bool Server::listen(const char *host, int port, int socket_flags) { - return bind_to_port(host, port, socket_flags) && listen_internal(); -} - -inline bool Server::is_running() const { return is_running_; } - -inline void Server::stop() { - if (is_running_) { - assert(svr_sock_ != INVALID_SOCKET); - std::atomic sock(svr_sock_.exchange(INVALID_SOCKET)); - detail::shutdown_socket(sock); - detail::close_socket(sock); - } -} - -inline bool Server::parse_request_line(const char *s, Request &req) { - const static std::regex re( - "(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI) " - "(([^?]+)(?:\\?(.*?))?) (HTTP/1\\.[01])\r\n"); - - std::cmatch m; - if (std::regex_match(s, m, re)) { - req.version = std::string(m[5]); - req.method = std::string(m[1]); - req.target = std::string(m[2]); - req.path = detail::decode_url(m[3], false); - - // Parse query text - auto len = std::distance(m[4].first, m[4].second); - if (len > 0) { detail::parse_query_text(m[4], req.params); } - - return true; - } - - return false; -} - -inline bool Server::write_response(Stream &strm, bool close_connection, - const Request &req, Response &res) { - return write_response_core(strm, close_connection, req, res, false); -} - -inline bool Server::write_response_with_content(Stream &strm, - bool close_connection, - const Request &req, - Response &res) { - return write_response_core(strm, close_connection, req, res, true); -} - -inline bool Server::write_response_core(Stream &strm, bool close_connection, - const Request &req, Response &res, - bool need_apply_ranges) { - assert(res.status != -1); - - if (400 <= res.status && error_handler_) { error_handler_(req, res); } - - std::string content_type; - std::string boundary; - if (need_apply_ranges) { apply_ranges(req, res, content_type, boundary); } - - // Headers - if (close_connection || req.get_header_value("Connection") == "close") { - res.set_header("Connection", "close"); - } else { - std::stringstream ss; - ss << "timeout=" << keep_alive_timeout_sec_ - << ", max=" << keep_alive_max_count_; - res.set_header("Keep-Alive", ss.str()); - } - - if (!res.has_header("Content-Type") && - (!res.body.empty() || res.content_length_ > 0 || res.content_provider_)) { - res.set_header("Content-Type", "text/plain"); - } - - if (!res.has_header("Content-Length") && res.body.empty() && - !res.content_length_ && !res.content_provider_) { - res.set_header("Content-Length", "0"); - } - - if (!res.has_header("Accept-Ranges") && req.method == "HEAD") { - res.set_header("Accept-Ranges", "bytes"); - } - - detail::BufferStream bstrm; - - // Response line - if (!bstrm.write_format("HTTP/1.1 %d %s\r\n", res.status, - detail::status_message(res.status))) { - return false; - } - - if (!detail::write_headers(bstrm, res, Headers())) { return false; } - - // Flush buffer - auto &data = bstrm.get_buffer(); - strm.write(data.data(), data.size()); - - // Body - auto ret = true; - if (req.method != "HEAD") { - if (!res.body.empty()) { - if (!strm.write(res.body)) { ret = false; } - } else if (res.content_provider_) { - if (!write_content_with_provider(strm, req, res, boundary, - content_type)) { - ret = false; - } - } - } - - // Log - if (logger_) { logger_(req, res); } - - return ret; -} - -inline bool -Server::write_content_with_provider(Stream &strm, const Request &req, - Response &res, const std::string &boundary, - const std::string &content_type) { - auto is_shutting_down = [this]() { - return this->svr_sock_ == INVALID_SOCKET; - }; - - if (res.content_length_ > 0) { - if (req.ranges.empty()) { - if (detail::write_content(strm, res.content_provider_, 0, - res.content_length_, is_shutting_down) < 0) { - return false; - } - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.content_length_, 0); - auto offset = offsets.first; - auto length = offsets.second; - if (detail::write_content(strm, res.content_provider_, offset, length, - is_shutting_down) < 0) { - return false; - } - } else { - if (!detail::write_multipart_ranges_data( - strm, req, res, boundary, content_type, is_shutting_down)) { - return false; - } - } - } else { - if (res.is_chunked_content_provider) { - auto type = detail::encoding_type(req, res); - - std::unique_ptr compressor; - if (type == detail::EncodingType::Gzip) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - compressor = detail::make_unique(); -#endif - } else if (type == detail::EncodingType::Brotli) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - compressor = detail::make_unique(); -#endif - } else { - compressor = detail::make_unique(); - } - assert(compressor != nullptr); - - if (detail::write_content_chunked(strm, res.content_provider_, - is_shutting_down, *compressor) < 0) { - return false; - } - } else { - if (detail::write_content_without_length(strm, res.content_provider_, - is_shutting_down) < 0) { - return false; - } - } - } - return true; -} - -inline bool Server::read_content(Stream &strm, Request &req, Response &res) { - MultipartFormDataMap::iterator cur; - if (read_content_core( - strm, req, res, - // Regular - [&](const char *buf, size_t n) { - if (req.body.size() + n > req.body.max_size()) { return false; } - req.body.append(buf, n); - return true; - }, - // Multipart - [&](const MultipartFormData &file) { - cur = req.files.emplace(file.name, file); - return true; - }, - [&](const char *buf, size_t n) { - auto &content = cur->second.content; - if (content.size() + n > content.max_size()) { return false; } - content.append(buf, n); - return true; - })) { - const auto &content_type = req.get_header_value("Content-Type"); - if (!content_type.find("application/x-www-form-urlencoded")) { - detail::parse_query_text(req.body, req.params); - } - return true; - } - return false; -} - -inline bool Server::read_content_with_content_receiver( - Stream &strm, Request &req, Response &res, ContentReceiver receiver, - MultipartContentHeader multipart_header, - ContentReceiver multipart_receiver) { - return read_content_core(strm, req, res, std::move(receiver), - std::move(multipart_header), - std::move(multipart_receiver)); -} - -inline bool Server::read_content_core(Stream &strm, Request &req, Response &res, - ContentReceiver receiver, - MultipartContentHeader mulitpart_header, - ContentReceiver multipart_receiver) { - detail::MultipartFormDataParser multipart_form_data_parser; - ContentReceiverWithProgress out; - - if (req.is_multipart_form_data()) { - const auto &content_type = req.get_header_value("Content-Type"); - std::string boundary; - if (!detail::parse_multipart_boundary(content_type, boundary)) { - res.status = 400; - return false; - } - - multipart_form_data_parser.set_boundary(std::move(boundary)); - out = [&](const char *buf, size_t n, uint64_t /*off*/, uint64_t /*len*/) { - /* For debug - size_t pos = 0; - while (pos < n) { - auto read_size = std::min(1, n - pos); - auto ret = multipart_form_data_parser.parse( - buf + pos, read_size, multipart_receiver, mulitpart_header); - if (!ret) { return false; } - pos += read_size; - } - return true; - */ - return multipart_form_data_parser.parse(buf, n, multipart_receiver, - mulitpart_header); - }; - } else { - out = [receiver](const char *buf, size_t n, uint64_t /*off*/, - uint64_t /*len*/) { return receiver(buf, n); }; - } - - if (req.method == "DELETE" && !req.has_header("Content-Length")) { - return true; - } - - if (!detail::read_content(strm, req, payload_max_length_, res.status, nullptr, - out, true)) { - return false; - } - - if (req.is_multipart_form_data()) { - if (!multipart_form_data_parser.is_valid()) { - res.status = 400; - return false; - } - } - - return true; -} - -inline bool Server::handle_file_request(Request &req, Response &res, - bool head) { - for (const auto &entry : base_dirs_) { - // Prefix match - if (!req.path.compare(0, entry.mount_point.size(), entry.mount_point)) { - std::string sub_path = "/" + req.path.substr(entry.mount_point.size()); - if (detail::is_valid_path(sub_path)) { - auto path = entry.base_dir + sub_path; - if (path.back() == '/') { path += "index.html"; } - - if (detail::is_file(path)) { - detail::read_file(path, res.body); - auto type = - detail::find_content_type(path, file_extension_and_mimetype_map_); - if (type) { res.set_header("Content-Type", type); } - for (const auto &kv : entry.headers) { - res.set_header(kv.first.c_str(), kv.second); - } - res.status = 200; - if (!head && file_request_handler_) { - file_request_handler_(req, res); - } - return true; - } - } - } - } - return false; -} - -inline socket_t -Server::create_server_socket(const char *host, int port, int socket_flags, - SocketOptions socket_options) const { - return detail::create_socket( - host, port, socket_flags, tcp_nodelay_, std::move(socket_options), - [](socket_t sock, struct addrinfo &ai) -> bool { - if (::bind(sock, ai.ai_addr, static_cast(ai.ai_addrlen))) { - return false; - } - if (::listen(sock, 5)) { // Listen through 5 channels - return false; - } - return true; - }); -} - -inline int Server::bind_internal(const char *host, int port, int socket_flags) { - if (!is_valid()) { return -1; } - - svr_sock_ = create_server_socket(host, port, socket_flags, socket_options_); - if (svr_sock_ == INVALID_SOCKET) { return -1; } - - if (port == 0) { - struct sockaddr_storage addr; - socklen_t addr_len = sizeof(addr); - if (getsockname(svr_sock_, reinterpret_cast(&addr), - &addr_len) == -1) { - return -1; - } - if (addr.ss_family == AF_INET) { - return ntohs(reinterpret_cast(&addr)->sin_port); - } else if (addr.ss_family == AF_INET6) { - return ntohs(reinterpret_cast(&addr)->sin6_port); - } else { - return -1; - } - } else { - return port; - } -} - -inline bool Server::listen_internal() { - auto ret = true; - is_running_ = true; - - { - std::unique_ptr task_queue(new_task_queue()); - - while (svr_sock_ != INVALID_SOCKET) { -#ifndef _WIN32 - if (idle_interval_sec_ > 0 || idle_interval_usec_ > 0) { -#endif - auto val = detail::select_read(svr_sock_, idle_interval_sec_, - idle_interval_usec_); - if (val == 0) { // Timeout - task_queue->on_idle(); - continue; - } -#ifndef _WIN32 - } -#endif - socket_t sock = accept(svr_sock_, nullptr, nullptr); - - if (sock == INVALID_SOCKET) { - if (errno == EMFILE) { - // The per-process limit of open file descriptors has been reached. - // Try to accept new connections after a short sleep. - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - continue; - } - if (svr_sock_ != INVALID_SOCKET) { - detail::close_socket(svr_sock_); - ret = false; - } else { - ; // The server socket was closed by user. - } - break; - } - -#if __cplusplus > 201703L - task_queue->enqueue([=, this]() { process_and_close_socket(sock); }); -#else - task_queue->enqueue([=]() { process_and_close_socket(sock); }); -#endif - } - - task_queue->shutdown(); - } - - is_running_ = false; - return ret; -} - -inline bool Server::routing(Request &req, Response &res, Stream &strm) { - // File handler - bool is_head_request = req.method == "HEAD"; - if ((req.method == "GET" || is_head_request) && - handle_file_request(req, res, is_head_request)) { - return true; - } - - if (detail::expect_content(req)) { - // Content reader handler - { - ContentReader reader( - [&](ContentReceiver receiver) { - return read_content_with_content_receiver( - strm, req, res, std::move(receiver), nullptr, nullptr); - }, - [&](MultipartContentHeader header, ContentReceiver receiver) { - return read_content_with_content_receiver(strm, req, res, nullptr, - std::move(header), - std::move(receiver)); - }); - - if (req.method == "POST") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - post_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "PUT") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - put_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "PATCH") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - patch_handlers_for_content_reader_)) { - return true; - } - } else if (req.method == "DELETE") { - if (dispatch_request_for_content_reader( - req, res, std::move(reader), - delete_handlers_for_content_reader_)) { - return true; - } - } - } - - // Read content into `req.body` - if (!read_content(strm, req, res)) { return false; } - } - - // Regular handler - if (req.method == "GET" || req.method == "HEAD") { - return dispatch_request(req, res, get_handlers_); - } else if (req.method == "POST") { - return dispatch_request(req, res, post_handlers_); - } else if (req.method == "PUT") { - return dispatch_request(req, res, put_handlers_); - } else if (req.method == "DELETE") { - return dispatch_request(req, res, delete_handlers_); - } else if (req.method == "OPTIONS") { - return dispatch_request(req, res, options_handlers_); - } else if (req.method == "PATCH") { - return dispatch_request(req, res, patch_handlers_); - } - - res.status = 400; - return false; -} - -inline bool Server::dispatch_request(Request &req, Response &res, - const Handlers &handlers) { - try { - for (const auto &x : handlers) { - const auto &pattern = x.first; - const auto &handler = x.second; - - if (std::regex_match(req.path, req.matches, pattern)) { - handler(req, res); - return true; - } - } - } catch (const std::exception &ex) { - res.status = 500; - res.set_header("EXCEPTION_WHAT", ex.what()); - } catch (...) { - res.status = 500; - res.set_header("EXCEPTION_WHAT", "UNKNOWN"); - } - return false; -} - -inline void Server::apply_ranges(const Request &req, Response &res, - std::string &content_type, - std::string &boundary) { - if (req.ranges.size() > 1) { - boundary = detail::make_multipart_data_boundary(); - - auto it = res.headers.find("Content-Type"); - if (it != res.headers.end()) { - content_type = it->second; - res.headers.erase(it); - } - - res.headers.emplace("Content-Type", - "multipart/byteranges; boundary=" + boundary); - } - - auto type = detail::encoding_type(req, res); - - if (res.body.empty()) { - if (res.content_length_ > 0) { - size_t length = 0; - if (req.ranges.empty()) { - length = res.content_length_; - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.content_length_, 0); - auto offset = offsets.first; - length = offsets.second; - auto content_range = detail::make_content_range_header_field( - offset, length, res.content_length_); - res.set_header("Content-Range", content_range); - } else { - length = detail::get_multipart_ranges_data_length(req, res, boundary, - content_type); - } - res.set_header("Content-Length", std::to_string(length)); - } else { - if (res.content_provider_) { - if (res.is_chunked_content_provider) { - res.set_header("Transfer-Encoding", "chunked"); - if (type == detail::EncodingType::Gzip) { - res.set_header("Content-Encoding", "gzip"); - } else if (type == detail::EncodingType::Brotli) { - res.set_header("Content-Encoding", "br"); - } - } - } - } - } else { - if (req.ranges.empty()) { - ; - } else if (req.ranges.size() == 1) { - auto offsets = - detail::get_range_offset_and_length(req, res.body.size(), 0); - auto offset = offsets.first; - auto length = offsets.second; - auto content_range = detail::make_content_range_header_field( - offset, length, res.body.size()); - res.set_header("Content-Range", content_range); - if (offset < res.body.size()) { - res.body = res.body.substr(offset, length); - } else { - res.body.clear(); - res.status = 416; - } - } else { - std::string data; - if (detail::make_multipart_ranges_data(req, res, boundary, content_type, - data)) { - res.body.swap(data); - } else { - res.body.clear(); - res.status = 416; - } - } - - if (type != detail::EncodingType::None) { - std::unique_ptr compressor; - std::string content_encoding; - - if (type == detail::EncodingType::Gzip) { -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - compressor = detail::make_unique(); - content_encoding = "gzip"; -#endif - } else if (type == detail::EncodingType::Brotli) { -#ifdef CPPHTTPLIB_BROTLI_SUPPORT - compressor = detail::make_unique(); - content_encoding = "brotli"; -#endif - } - - if (compressor) { - std::string compressed; - if (compressor->compress(res.body.data(), res.body.size(), true, - [&](const char *data, size_t data_len) { - compressed.append(data, data_len); - return true; - })) { - res.body.swap(compressed); - res.set_header("Content-Encoding", content_encoding); - } - } - } - - auto length = std::to_string(res.body.size()); - res.set_header("Content-Length", length); - } -} - -inline bool Server::dispatch_request_for_content_reader( - Request &req, Response &res, ContentReader content_reader, - const HandlersForContentReader &handlers) { - for (const auto &x : handlers) { - const auto &pattern = x.first; - const auto &handler = x.second; - - if (std::regex_match(req.path, req.matches, pattern)) { - handler(req, res, content_reader); - return true; - } - } - return false; -} - -inline bool -Server::process_request(Stream &strm, bool close_connection, - bool &connection_closed, - const std::function &setup_request) { - std::array buf{}; - - detail::stream_line_reader line_reader(strm, buf.data(), buf.size()); - - // Connection has been closed on client - if (!line_reader.getline()) { return false; } - - Request req; - Response res; - - res.version = "HTTP/1.1"; - -#ifdef _WIN32 - // TODO: Increase FD_SETSIZE statically (libzmq), dynamically (MySQL). -#else -#ifndef CPPHTTPLIB_USE_POLL - // Socket file descriptor exceeded FD_SETSIZE... - if (strm.socket() >= FD_SETSIZE) { - Headers dummy; - detail::read_headers(strm, dummy); - res.status = 500; - return write_response(strm, close_connection, req, res); - } -#endif -#endif - - // Check if the request URI doesn't exceed the limit - if (line_reader.size() > CPPHTTPLIB_REQUEST_URI_MAX_LENGTH) { - Headers dummy; - detail::read_headers(strm, dummy); - res.status = 414; - return write_response(strm, close_connection, req, res); - } - - // Request line and headers - if (!parse_request_line(line_reader.ptr(), req) || - !detail::read_headers(strm, req.headers)) { - res.status = 400; - return write_response(strm, close_connection, req, res); - } - - if (req.get_header_value("Connection") == "close") { - connection_closed = true; - } - - if (req.version == "HTTP/1.0" && - req.get_header_value("Connection") != "Keep-Alive") { - connection_closed = true; - } - - strm.get_remote_ip_and_port(req.remote_addr, req.remote_port); - req.set_header("REMOTE_ADDR", req.remote_addr); - req.set_header("REMOTE_PORT", std::to_string(req.remote_port)); - - if (req.has_header("Range")) { - const auto &range_header_value = req.get_header_value("Range"); - if (!detail::parse_range_header(range_header_value, req.ranges)) { - res.status = 416; - return write_response(strm, close_connection, req, res); - } - } - - if (setup_request) { setup_request(req); } - - if (req.get_header_value("Expect") == "100-continue") { - auto status = 100; - if (expect_100_continue_handler_) { - status = expect_100_continue_handler_(req, res); - } - switch (status) { - case 100: - case 417: - strm.write_format("HTTP/1.1 %d %s\r\n\r\n", status, - detail::status_message(status)); - break; - default: return write_response(strm, close_connection, req, res); - } - } - - // Rounting - if (routing(req, res, strm)) { - if (res.status == -1) { res.status = req.ranges.empty() ? 200 : 206; } - return write_response_with_content(strm, close_connection, req, res); - } else { - if (res.status == -1) { res.status = 404; } - return write_response(strm, close_connection, req, res); - } -} - -inline bool Server::is_valid() const { return true; } - -inline bool Server::process_and_close_socket(socket_t sock) { - auto ret = detail::process_server_socket( - sock, keep_alive_max_count_, keep_alive_timeout_sec_, read_timeout_sec_, - read_timeout_usec_, write_timeout_sec_, write_timeout_usec_, - [this](Stream &strm, bool close_connection, bool &connection_closed) { - return process_request(strm, close_connection, connection_closed, - nullptr); - }); - - detail::shutdown_socket(sock); - detail::close_socket(sock); - return ret; -} - -// HTTP client implementation -inline ClientImpl::ClientImpl(const std::string &host) - : ClientImpl(host, 80, std::string(), std::string()) {} - -inline ClientImpl::ClientImpl(const std::string &host, int port) - : ClientImpl(host, port, std::string(), std::string()) {} - -inline ClientImpl::ClientImpl(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : host_(host), port_(port), - host_and_port_(host_ + ":" + std::to_string(port_)), - client_cert_path_(client_cert_path), client_key_path_(client_key_path) {} - -inline ClientImpl::~ClientImpl() { stop_core(); } - -inline bool ClientImpl::is_valid() const { return true; } - -inline Error ClientImpl::get_last_error() const { return error_; } - -inline void ClientImpl::copy_settings(const ClientImpl &rhs) { - client_cert_path_ = rhs.client_cert_path_; - client_key_path_ = rhs.client_key_path_; - connection_timeout_sec_ = rhs.connection_timeout_sec_; - read_timeout_sec_ = rhs.read_timeout_sec_; - read_timeout_usec_ = rhs.read_timeout_usec_; - write_timeout_sec_ = rhs.write_timeout_sec_; - write_timeout_usec_ = rhs.write_timeout_usec_; - basic_auth_username_ = rhs.basic_auth_username_; - basic_auth_password_ = rhs.basic_auth_password_; - bearer_token_auth_token_ = rhs.bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - digest_auth_username_ = rhs.digest_auth_username_; - digest_auth_password_ = rhs.digest_auth_password_; -#endif - keep_alive_ = rhs.keep_alive_; - follow_location_ = rhs.follow_location_; - tcp_nodelay_ = rhs.tcp_nodelay_; - socket_options_ = rhs.socket_options_; - compress_ = rhs.compress_; - decompress_ = rhs.decompress_; - interface_ = rhs.interface_; - proxy_host_ = rhs.proxy_host_; - proxy_port_ = rhs.proxy_port_; - proxy_basic_auth_username_ = rhs.proxy_basic_auth_username_; - proxy_basic_auth_password_ = rhs.proxy_basic_auth_password_; - proxy_bearer_token_auth_token_ = rhs.proxy_bearer_token_auth_token_; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - proxy_digest_auth_username_ = rhs.proxy_digest_auth_username_; - proxy_digest_auth_password_ = rhs.proxy_digest_auth_password_; -#endif -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - server_certificate_verification_ = rhs.server_certificate_verification_; -#endif - logger_ = rhs.logger_; -} - -inline socket_t ClientImpl::create_client_socket() const { - if (!proxy_host_.empty() && proxy_port_ != -1) { - return detail::create_client_socket( - proxy_host_.c_str(), proxy_port_, tcp_nodelay_, socket_options_, - connection_timeout_sec_, connection_timeout_usec_, interface_, error_); - } - return detail::create_client_socket( - host_.c_str(), port_, tcp_nodelay_, socket_options_, - connection_timeout_sec_, connection_timeout_usec_, interface_, error_); -} - -inline bool ClientImpl::create_and_connect_socket(Socket &socket) { - auto sock = create_client_socket(); - if (sock == INVALID_SOCKET) { return false; } - socket.sock = sock; - return true; -} - -inline void ClientImpl::close_socket(Socket &socket, - bool /*process_socket_ret*/) { - detail::close_socket(socket.sock); - socket_.sock = INVALID_SOCKET; -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - socket_.ssl = nullptr; -#endif -} - -inline bool ClientImpl::read_response_line(Stream &strm, Response &res) { - std::array buf; - - detail::stream_line_reader line_reader(strm, buf.data(), buf.size()); - - if (!line_reader.getline()) { return false; } - - const static std::regex re("(HTTP/1\\.[01]) (\\d+) (.*?)\r\n"); - - std::cmatch m; - if (!std::regex_match(line_reader.ptr(), m, re)) { return true; } - res.version = std::string(m[1]); - res.status = std::stoi(std::string(m[2])); - res.reason = std::string(m[3]); - - // Ignore '100 Continue' - while (res.status == 100) { - if (!line_reader.getline()) { return false; } // CRLF - if (!line_reader.getline()) { return false; } // next response line - - if (!std::regex_match(line_reader.ptr(), m, re)) { return false; } - res.version = std::string(m[1]); - res.status = std::stoi(std::string(m[2])); - res.reason = std::string(m[3]); - } - - return true; -} - -inline bool ClientImpl::send(const Request &req, Response &res) { - std::lock_guard request_mutex_guard(request_mutex_); - - { - std::lock_guard guard(socket_mutex_); - - auto is_alive = false; - if (socket_.is_open()) { - is_alive = detail::select_write(socket_.sock, 0, 0) > 0; - if (!is_alive) { close_socket(socket_, false); } - } - - if (!is_alive) { - if (!create_and_connect_socket(socket_)) { return false; } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - // TODO: refactoring - if (is_ssl()) { - auto &scli = static_cast(*this); - if (!proxy_host_.empty() && proxy_port_ != -1) { - bool success = false; - if (!scli.connect_with_proxy(socket_, res, success)) { - return success; - } - } - - if (!scli.initialize_ssl(socket_)) { return false; } - } -#endif - } - } - - auto close_connection = !keep_alive_; - - auto ret = process_socket(socket_, [&](Stream &strm) { - return handle_request(strm, req, res, close_connection); - }); - - if (close_connection || !ret) { stop_core(); } - - if (!ret) { - if (error_ == Error::Success) { error_ = Error::Unknown; } - } - - return ret; -} - -inline bool ClientImpl::handle_request(Stream &strm, const Request &req, - Response &res, bool close_connection) { - if (req.path.empty()) { - error_ = Error::Connection; - return false; - } - - bool ret; - - if (!is_ssl() && !proxy_host_.empty() && proxy_port_ != -1) { - auto req2 = req; - req2.path = "http://" + host_and_port_ + req.path; - ret = process_request(strm, req2, res, close_connection); - } else { - ret = process_request(strm, req, res, close_connection); - } - - if (!ret) { return false; } - - if (300 < res.status && res.status < 400 && follow_location_) { - ret = redirect(req, res); - } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - if ((res.status == 401 || res.status == 407) && - req.authorization_count_ < 5) { - auto is_proxy = res.status == 407; - const auto &username = - is_proxy ? proxy_digest_auth_username_ : digest_auth_username_; - const auto &password = - is_proxy ? proxy_digest_auth_password_ : digest_auth_password_; - - if (!username.empty() && !password.empty()) { - std::map auth; - if (detail::parse_www_authenticate(res, auth, is_proxy)) { - Request new_req = req; - new_req.authorization_count_ += 1; - auto key = is_proxy ? "Proxy-Authorization" : "Authorization"; - new_req.headers.erase(key); - new_req.headers.insert(detail::make_digest_authentication_header( - req, auth, new_req.authorization_count_, detail::random_string(10), - username, password, is_proxy)); - - Response new_res; - - ret = send(new_req, new_res); - if (ret) { res = new_res; } - } - } - } -#endif - - return ret; -} - -inline bool ClientImpl::redirect(const Request &req, Response &res) { - if (req.redirect_count == 0) { - error_ = Error::ExceedRedirectCount; - return false; - } - - auto location = detail::decode_url(res.get_header_value("location"), true); - if (location.empty()) { return false; } - - const static std::regex re( - R"(^(?:(https?):)?(?://([^:/?#]*)(?::(\d+))?)?([^?#]*(?:\?[^#]*)?)(?:#.*)?)"); - - std::smatch m; - if (!std::regex_match(location, m, re)) { return false; } - - auto scheme = is_ssl() ? "https" : "http"; - - auto next_scheme = m[1].str(); - auto next_host = m[2].str(); - auto port_str = m[3].str(); - auto next_path = m[4].str(); - - auto next_port = port_; - if (!port_str.empty()) { - next_port = std::stoi(port_str); - } else if (!next_scheme.empty()) { - next_port = next_scheme == "https" ? 443 : 80; - } - - if (next_scheme.empty()) { next_scheme = scheme; } - if (next_host.empty()) { next_host = host_; } - if (next_path.empty()) { next_path = "/"; } - - if (next_scheme == scheme && next_host == host_ && next_port == port_) { - return detail::redirect(*this, req, res, next_path); - } else { - if (next_scheme == "https") { -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - SSLClient cli(next_host.c_str(), next_port); - cli.copy_settings(*this); - auto ret = detail::redirect(cli, req, res, next_path); - if (!ret) { error_ = cli.get_last_error(); } - return ret; -#else - return false; -#endif - } else { - ClientImpl cli(next_host.c_str(), next_port); - cli.copy_settings(*this); - auto ret = detail::redirect(cli, req, res, next_path); - if (!ret) { error_ = cli.get_last_error(); } - return ret; - } - } -} - -inline bool ClientImpl::write_request(Stream &strm, const Request &req, - bool close_connection) { - detail::BufferStream bstrm; - - // Request line - const auto &path = detail::encode_url(req.path); - - bstrm.write_format("%s %s HTTP/1.1\r\n", req.method.c_str(), path.c_str()); - - // Additonal headers - Headers headers; - if (close_connection) { headers.emplace("Connection", "close"); } - - if (!req.has_header("Host")) { - if (is_ssl()) { - if (port_ == 443) { - headers.emplace("Host", host_); - } else { - headers.emplace("Host", host_and_port_); - } - } else { - if (port_ == 80) { - headers.emplace("Host", host_); - } else { - headers.emplace("Host", host_and_port_); - } - } - } - - if (!req.has_header("Accept")) { headers.emplace("Accept", "*/*"); } - - if (!req.has_header("User-Agent")) { - headers.emplace("User-Agent", "cpp-httplib/0.7"); - } - - if (req.body.empty()) { - if (req.content_provider) { - auto length = std::to_string(req.content_length); - headers.emplace("Content-Length", length); - } else { - if (req.method == "POST" || req.method == "PUT" || - req.method == "PATCH") { - headers.emplace("Content-Length", "0"); - } - } - } else { - if (!req.has_header("Content-Type")) { - headers.emplace("Content-Type", "text/plain"); - } - - if (!req.has_header("Content-Length")) { - auto length = std::to_string(req.body.size()); - headers.emplace("Content-Length", length); - } - } - - if (!basic_auth_password_.empty()) { - headers.insert(make_basic_authentication_header( - basic_auth_username_, basic_auth_password_, false)); - } - - if (!proxy_basic_auth_username_.empty() && - !proxy_basic_auth_password_.empty()) { - headers.insert(make_basic_authentication_header( - proxy_basic_auth_username_, proxy_basic_auth_password_, true)); - } - - if (!bearer_token_auth_token_.empty()) { - headers.insert(make_bearer_token_authentication_header( - bearer_token_auth_token_, false)); - } - - if (!proxy_bearer_token_auth_token_.empty()) { - headers.insert(make_bearer_token_authentication_header( - proxy_bearer_token_auth_token_, true)); - } - - detail::write_headers(bstrm, req, headers); - - // Flush buffer - auto &data = bstrm.get_buffer(); - if (!detail::write_data(strm, data.data(), data.size())) { - error_ = Error::Write; - return false; - } - - // Body - if (req.body.empty()) { - if (req.content_provider) { - size_t offset = 0; - size_t end_offset = req.content_length; - - bool ok = true; - - DataSink data_sink; - data_sink.write = [&](const char *d, size_t l) { - if (ok) { - if (detail::write_data(strm, d, l)) { - offset += l; - } else { - ok = false; - } - } - }; - data_sink.is_writable = [&](void) { return ok && strm.is_writable(); }; - - while (offset < end_offset) { - if (!req.content_provider(offset, end_offset - offset, data_sink)) { - error_ = Error::Canceled; - return false; - } - if (!ok) { - error_ = Error::Write; - return false; - } - } - } - } else { - return detail::write_data(strm, req.body.data(), req.body.size()); - } - - return true; -} - -inline std::unique_ptr ClientImpl::send_with_content_provider( - const char *method, const char *path, const Headers &headers, - const std::string &body, size_t content_length, - ContentProvider content_provider, const char *content_type) { - - Request req; - req.method = method; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - if (content_type) { req.headers.emplace("Content-Type", content_type); } - -#ifdef CPPHTTPLIB_ZLIB_SUPPORT - if (compress_) { - detail::gzip_compressor compressor; - - if (content_provider) { - auto ok = true; - size_t offset = 0; - - DataSink data_sink; - data_sink.write = [&](const char *data, size_t data_len) { - if (ok) { - auto last = offset + data_len == content_length; - - auto ret = compressor.compress( - data, data_len, last, [&](const char *data, size_t data_len) { - req.body.append(data, data_len); - return true; - }); - - if (ret) { - offset += data_len; - } else { - ok = false; - } - } - }; - data_sink.is_writable = [&](void) { return ok && true; }; - - while (ok && offset < content_length) { - if (!content_provider(offset, content_length - offset, data_sink)) { - error_ = Error::Canceled; - return nullptr; - } - } - } else { - if (!compressor.compress(body.data(), body.size(), true, - [&](const char *data, size_t data_len) { - req.body.append(data, data_len); - return true; - })) { - return nullptr; - } - } - - req.headers.emplace("Content-Encoding", "gzip"); - } else -#endif - { - if (content_provider) { - req.content_length = content_length; - req.content_provider = std::move(content_provider); - } else { - req.body = body; - } - } - - auto res = detail::make_unique(); - - return send(req, *res) ? std::move(res) : nullptr; -} - -inline bool ClientImpl::process_request(Stream &strm, const Request &req, - Response &res, bool close_connection) { - // Send request - if (!write_request(strm, req, close_connection)) { return false; } - - // Receive response and headers - if (!read_response_line(strm, res) || - !detail::read_headers(strm, res.headers)) { - error_ = Error::Read; - return false; - } - - if (req.response_handler) { - if (!req.response_handler(res)) { - error_ = Error::Canceled; - return false; - } - } - - // Body - if (req.method != "HEAD" && req.method != "CONNECT") { - auto out = - req.content_receiver - ? static_cast( - [&](const char *buf, size_t n, uint64_t off, uint64_t len) { - auto ret = req.content_receiver(buf, n, off, len); - if (!ret) { error_ = Error::Canceled; } - return ret; - }) - : static_cast( - [&](const char *buf, size_t n, uint64_t /*off*/, - uint64_t /*len*/) { - if (res.body.size() + n > res.body.max_size()) { - return false; - } - res.body.append(buf, n); - return true; - }); - - auto progress = [&](uint64_t current, uint64_t total) { - if (!req.progress) { return true; } - auto ret = req.progress(current, total); - if (!ret) { error_ = Error::Canceled; } - return ret; - }; - - int dummy_status; - if (!detail::read_content(strm, res, (std::numeric_limits::max)(), - dummy_status, std::move(progress), std::move(out), - decompress_)) { - if (error_ != Error::Canceled) { error_ = Error::Read; } - return false; - } - } - - if (res.get_header_value("Connection") == "close" || - (res.version == "HTTP/1.0" && res.reason != "Connection established")) { - stop_core(); - } - - // Log - if (logger_) { logger_(req, res); } - - return true; -} - -inline bool -ClientImpl::process_socket(Socket &socket, - std::function callback) { - return detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, - write_timeout_usec_, std::move(callback)); -} - -inline bool ClientImpl::is_ssl() const { return false; } - -inline Result ClientImpl::Get(const char *path) { - return Get(path, Headers(), Progress()); -} - -inline Result ClientImpl::Get(const char *path, Progress progress) { - return Get(path, Headers(), std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers) { - return Get(path, headers, Progress()); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - Progress progress) { - Request req; - req.method = "GET"; - req.path = path; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.progress = std::move(progress); - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Get(const char *path, - ContentReceiver content_receiver) { - return Get(path, Headers(), nullptr, std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, Headers(), nullptr, std::move(content_receiver), - std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver) { - return Get(path, headers, nullptr, std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, headers, nullptr, std::move(content_receiver), - std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return Get(path, Headers(), std::move(response_handler), - std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return Get(path, headers, std::move(response_handler), - std::move(content_receiver), nullptr); -} - -inline Result ClientImpl::Get(const char *path, - ResponseHandler response_handler, - ContentReceiver content_receiver, - Progress progress) { - return Get(path, Headers(), std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} - -inline Result ClientImpl::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver, - Progress progress) { - Request req; - req.method = "GET"; - req.path = path; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.response_handler = std::move(response_handler); - req.content_receiver = - [content_receiver](const char *data, size_t data_length, - uint64_t /*offset*/, uint64_t /*total_length*/) { - return content_receiver(data, data_length); - }; - req.progress = std::move(progress); - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Head(const char *path) { - return Head(path, Headers()); -} - -inline Result ClientImpl::Head(const char *path, const Headers &headers) { - Request req; - req.method = "HEAD"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path) { - return Post(path, std::string(), nullptr); -} - -inline Result ClientImpl::Post(const char *path, const std::string &body, - const char *content_type) { - return Post(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("POST", path, headers, body, 0, nullptr, - content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path, const Params ¶ms) { - return Post(path, Headers(), params); -} - -inline Result ClientImpl::Post(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Post(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "POST", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const Params ¶ms) { - auto query = detail::params_to_query_str(params); - return Post(path, headers, query, "application/x-www-form-urlencoded"); -} - -inline Result ClientImpl::Post(const char *path, - const MultipartFormDataItems &items) { - return Post(path, Headers(), items); -} - -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items) { - return Post(path, headers, items, detail::make_multipart_data_boundary()); -} -inline Result ClientImpl::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, - const std::string &boundary) { - for (size_t i = 0; i < boundary.size(); i++) { - char c = boundary[i]; - if (!std::isalnum(c) && c != '-' && c != '_') { - error_ = Error::UnsupportedMultipartBoundaryChars; - return Result{nullptr, error_}; - } - } - - std::string body; - - for (const auto &item : items) { - body += "--" + boundary + "\r\n"; - body += "Content-Disposition: form-data; name=\"" + item.name + "\""; - if (!item.filename.empty()) { - body += "; filename=\"" + item.filename + "\""; - } - body += "\r\n"; - if (!item.content_type.empty()) { - body += "Content-Type: " + item.content_type + "\r\n"; - } - body += "\r\n"; - body += item.content + "\r\n"; - } - - body += "--" + boundary + "--\r\n"; - - std::string content_type = "multipart/form-data; boundary=" + boundary; - return Post(path, headers, body, content_type.c_str()); -} - -inline Result ClientImpl::Put(const char *path) { - return Put(path, std::string(), nullptr); -} - -inline Result ClientImpl::Put(const char *path, const std::string &body, - const char *content_type) { - return Put(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("PUT", path, headers, body, 0, nullptr, - content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Put(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Put(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "PUT", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Put(const char *path, const Params ¶ms) { - return Put(path, Headers(), params); -} - -inline Result ClientImpl::Put(const char *path, const Headers &headers, - const Params ¶ms) { - auto query = detail::params_to_query_str(params); - return Put(path, headers, query, "application/x-www-form-urlencoded"); -} - -inline Result ClientImpl::Patch(const char *path, const std::string &body, - const char *content_type) { - return Patch(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Patch(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - auto ret = send_with_content_provider("PATCH", path, headers, body, 0, - nullptr, content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Patch(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return Patch(path, Headers(), content_length, std::move(content_provider), - content_type); -} - -inline Result ClientImpl::Patch(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - auto ret = send_with_content_provider( - "PATCH", path, headers, std::string(), content_length, - std::move(content_provider), content_type); - return Result{std::move(ret), get_last_error()}; -} - -inline Result ClientImpl::Delete(const char *path) { - return Delete(path, Headers(), std::string(), nullptr); -} - -inline Result ClientImpl::Delete(const char *path, const std::string &body, - const char *content_type) { - return Delete(path, Headers(), body, content_type); -} - -inline Result ClientImpl::Delete(const char *path, const Headers &headers) { - return Delete(path, headers, std::string(), nullptr); -} - -inline Result ClientImpl::Delete(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - Request req; - req.method = "DELETE"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - if (content_type) { req.headers.emplace("Content-Type", content_type); } - req.body = body; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline Result ClientImpl::Options(const char *path) { - return Options(path, Headers()); -} - -inline Result ClientImpl::Options(const char *path, const Headers &headers) { - Request req; - req.method = "OPTIONS"; - req.headers = default_headers_; - req.headers.insert(headers.begin(), headers.end()); - req.path = path; - - auto res = detail::make_unique(); - auto ret = send(req, *res); - return Result{ret ? std::move(res) : nullptr, get_last_error()}; -} - -inline size_t ClientImpl::is_socket_open() const { - std::lock_guard guard(socket_mutex_); - return socket_.is_open(); -} - -inline void ClientImpl::stop() { - stop_core(); - error_ = Error::Canceled; -} - -inline void ClientImpl::stop_core() { - std::lock_guard guard(socket_mutex_); - if (socket_.is_open()) { - detail::shutdown_socket(socket_.sock); - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - close_socket(socket_, true); - std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } -} - -inline void ClientImpl::set_connection_timeout(time_t sec, time_t usec) { - connection_timeout_sec_ = sec; - connection_timeout_usec_ = usec; -} - -inline void ClientImpl::set_read_timeout(time_t sec, time_t usec) { - read_timeout_sec_ = sec; - read_timeout_usec_ = usec; -} - -inline void ClientImpl::set_write_timeout(time_t sec, time_t usec) { - write_timeout_sec_ = sec; - write_timeout_usec_ = usec; -} - -inline void ClientImpl::set_basic_auth(const char *username, - const char *password) { - basic_auth_username_ = username; - basic_auth_password_ = password; -} - -inline void ClientImpl::set_bearer_token_auth(const char *token) { - bearer_token_auth_token_ = token; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::set_digest_auth(const char *username, - const char *password) { - digest_auth_username_ = username; - digest_auth_password_ = password; -} -#endif - -inline void ClientImpl::set_keep_alive(bool on) { keep_alive_ = on; } - -inline void ClientImpl::set_follow_location(bool on) { follow_location_ = on; } - -inline void ClientImpl::set_default_headers(Headers headers) { - default_headers_ = std::move(headers); -} - -inline void ClientImpl::set_tcp_nodelay(bool on) { tcp_nodelay_ = on; } - -inline void ClientImpl::set_socket_options(SocketOptions socket_options) { - socket_options_ = std::move(socket_options); -} - -inline void ClientImpl::set_compress(bool on) { compress_ = on; } - -inline void ClientImpl::set_decompress(bool on) { decompress_ = on; } - -inline void ClientImpl::set_interface(const char *intf) { interface_ = intf; } - -inline void ClientImpl::set_proxy(const char *host, int port) { - proxy_host_ = host; - proxy_port_ = port; -} - -inline void ClientImpl::set_proxy_basic_auth(const char *username, - const char *password) { - proxy_basic_auth_username_ = username; - proxy_basic_auth_password_ = password; -} - -inline void ClientImpl::set_proxy_bearer_token_auth(const char *token) { - proxy_bearer_token_auth_token_ = token; -} - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::set_proxy_digest_auth(const char *username, - const char *password) { - proxy_digest_auth_username_ = username; - proxy_digest_auth_password_ = password; -} -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void ClientImpl::enable_server_certificate_verification(bool enabled) { - server_certificate_verification_ = enabled; -} -#endif - -inline void ClientImpl::set_logger(Logger logger) { - logger_ = std::move(logger); -} - -/* - * SSL Implementation - */ -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -namespace detail { - -template -inline SSL *ssl_new(socket_t sock, SSL_CTX *ctx, std::mutex &ctx_mutex, - U SSL_connect_or_accept, V setup) { - SSL *ssl = nullptr; - { - std::lock_guard guard(ctx_mutex); - ssl = SSL_new(ctx); - } - - if (ssl) { - set_nonblocking(sock, true); - auto bio = BIO_new_socket(static_cast(sock), BIO_NOCLOSE); - BIO_set_nbio(bio, 1); - SSL_set_bio(ssl, bio, bio); - - if (!setup(ssl) || SSL_connect_or_accept(ssl) != 1) { - SSL_shutdown(ssl); - { - std::lock_guard guard(ctx_mutex); - SSL_free(ssl); - } - set_nonblocking(sock, false); - return nullptr; - } - BIO_set_nbio(bio, 0); - set_nonblocking(sock, false); - } - - return ssl; -} - -inline void ssl_delete(std::mutex &ctx_mutex, SSL *ssl, - bool process_socket_ret) { - if (process_socket_ret) { - SSL_shutdown(ssl); // shutdown only if not already closed by remote - } - - std::lock_guard guard(ctx_mutex); - SSL_free(ssl); -} - -template -bool ssl_connect_or_accept_nonblocking(socket_t sock, SSL *ssl, - U ssl_connect_or_accept, - time_t timeout_sec, - time_t timeout_usec) { - int res = 0; - while ((res = ssl_connect_or_accept(ssl)) != 1) { - auto err = SSL_get_error(ssl, res); - switch (err) { - case SSL_ERROR_WANT_READ: - if (select_read(sock, timeout_sec, timeout_usec) > 0) { continue; } - break; - case SSL_ERROR_WANT_WRITE: - if (select_write(sock, timeout_sec, timeout_usec) > 0) { continue; } - break; - default: break; - } - return false; - } - return true; -} - -template -inline bool -process_server_socket_ssl(SSL *ssl, socket_t sock, size_t keep_alive_max_count, - time_t keep_alive_timeout_sec, - time_t read_timeout_sec, time_t read_timeout_usec, - time_t write_timeout_sec, time_t write_timeout_usec, - T callback) { - return process_server_socket_core( - sock, keep_alive_max_count, keep_alive_timeout_sec, - [&](bool close_connection, bool &connection_closed) { - SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm, close_connection, connection_closed); - }); -} - -template -inline bool -process_client_socket_ssl(SSL *ssl, socket_t sock, time_t read_timeout_sec, - time_t read_timeout_usec, time_t write_timeout_sec, - time_t write_timeout_usec, T callback) { - SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec, - write_timeout_sec, write_timeout_usec); - return callback(strm); -} - -#if OPENSSL_VERSION_NUMBER < 0x10100000L -static std::shared_ptr> openSSL_locks_; - -class SSLThreadLocks { -public: - SSLThreadLocks() { - openSSL_locks_ = - std::make_shared>(CRYPTO_num_locks()); - CRYPTO_set_locking_callback(locking_callback); - } - - ~SSLThreadLocks() { CRYPTO_set_locking_callback(nullptr); } - -private: - static void locking_callback(int mode, int type, const char * /*file*/, - int /*line*/) { - auto &lk = (*openSSL_locks_)[static_cast(type)]; - if (mode & CRYPTO_LOCK) { - lk.lock(); - } else { - lk.unlock(); - } - } -}; - -#endif - -class SSLInit { -public: - SSLInit() { -#if OPENSSL_VERSION_NUMBER < 0x1010001fL - SSL_load_error_strings(); - SSL_library_init(); -#else - OPENSSL_init_ssl( - OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); -#endif - } - - ~SSLInit() { -#if OPENSSL_VERSION_NUMBER < 0x1010001fL - ERR_free_strings(); -#endif - } - -private: -#if OPENSSL_VERSION_NUMBER < 0x10100000L - SSLThreadLocks thread_init_; -#endif -}; - -// SSL socket stream implementation -inline SSLSocketStream::SSLSocketStream(socket_t sock, SSL *ssl, - time_t read_timeout_sec, - time_t read_timeout_usec, - time_t write_timeout_sec, - time_t write_timeout_usec) - : sock_(sock), ssl_(ssl), read_timeout_sec_(read_timeout_sec), - read_timeout_usec_(read_timeout_usec), - write_timeout_sec_(write_timeout_sec), - write_timeout_usec_(write_timeout_usec) { - SSL_clear_mode(ssl, SSL_MODE_AUTO_RETRY); -} - -inline SSLSocketStream::~SSLSocketStream() {} - -inline bool SSLSocketStream::is_readable() const { - return detail::select_read(sock_, read_timeout_sec_, read_timeout_usec_) > 0; -} - -inline bool SSLSocketStream::is_writable() const { - return detail::select_write(sock_, write_timeout_sec_, write_timeout_usec_) > - 0; -} - -inline ssize_t SSLSocketStream::read(char *ptr, size_t size) { - if (SSL_pending(ssl_) > 0) { - return SSL_read(ssl_, ptr, static_cast(size)); - } else if (is_readable()) { - auto ret = SSL_read(ssl_, ptr, static_cast(size)); - if (ret < 0) { - auto err = SSL_get_error(ssl_, ret); - while (err == SSL_ERROR_WANT_READ) { - if (SSL_pending(ssl_) > 0) { - return SSL_read(ssl_, ptr, static_cast(size)); - } else if (is_readable()) { - ret = SSL_read(ssl_, ptr, static_cast(size)); - if (ret >= 0) { return ret; } - err = SSL_get_error(ssl_, ret); - } else { - return -1; - } - } - } - return ret; - } - return -1; -} - -inline ssize_t SSLSocketStream::write(const char *ptr, size_t size) { - if (is_writable()) { return SSL_write(ssl_, ptr, static_cast(size)); } - return -1; -} - -inline void SSLSocketStream::get_remote_ip_and_port(std::string &ip, - int &port) const { - detail::get_remote_ip_and_port(sock_, ip, port); -} - -inline socket_t SSLSocketStream::socket() const { return sock_; } - -static SSLInit sslinit_; - -} // namespace detail - -// SSL HTTP server implementation -inline SSLServer::SSLServer(const char *cert_path, const char *private_key_path, - const char *client_ca_cert_file_path, - const char *client_ca_cert_dir_path) { - ctx_ = SSL_CTX_new(SSLv23_server_method()); - - if (ctx_) { - SSL_CTX_set_options(ctx_, - SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | - SSL_OP_NO_COMPRESSION | - SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); - - // auto ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); - // SSL_CTX_set_tmp_ecdh(ctx_, ecdh); - // EC_KEY_free(ecdh); - - if (SSL_CTX_use_certificate_chain_file(ctx_, cert_path) != 1 || - SSL_CTX_use_PrivateKey_file(ctx_, private_key_path, SSL_FILETYPE_PEM) != - 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } else if (client_ca_cert_file_path || client_ca_cert_dir_path) { - // if (client_ca_cert_file_path) { - // auto list = SSL_load_client_CA_file(client_ca_cert_file_path); - // SSL_CTX_set_client_CA_list(ctx_, list); - // } - - SSL_CTX_load_verify_locations(ctx_, client_ca_cert_file_path, - client_ca_cert_dir_path); - - SSL_CTX_set_verify( - ctx_, - SSL_VERIFY_PEER | - SSL_VERIFY_FAIL_IF_NO_PEER_CERT, // SSL_VERIFY_CLIENT_ONCE, - nullptr); - } - } -} - -inline SSLServer::SSLServer(X509 *cert, EVP_PKEY *private_key, - X509_STORE *client_ca_cert_store) { - ctx_ = SSL_CTX_new(SSLv23_server_method()); - - if (ctx_) { - SSL_CTX_set_options(ctx_, - SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | - SSL_OP_NO_COMPRESSION | - SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION); - - if (SSL_CTX_use_certificate(ctx_, cert) != 1 || - SSL_CTX_use_PrivateKey(ctx_, private_key) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } else if (client_ca_cert_store) { - - SSL_CTX_set_cert_store(ctx_, client_ca_cert_store); - - SSL_CTX_set_verify( - ctx_, - SSL_VERIFY_PEER | - SSL_VERIFY_FAIL_IF_NO_PEER_CERT, // SSL_VERIFY_CLIENT_ONCE, - nullptr); - } - } -} - -inline SSLServer::~SSLServer() { - if (ctx_) { SSL_CTX_free(ctx_); } -} - -inline bool SSLServer::is_valid() const { return ctx_; } - -inline bool SSLServer::process_and_close_socket(socket_t sock) { - auto ssl = detail::ssl_new( - sock, ctx_, ctx_mutex_, - [&](SSL *ssl) { - return detail::ssl_connect_or_accept_nonblocking( - sock, ssl, SSL_accept, read_timeout_sec_, read_timeout_usec_); - }, - [](SSL * /*ssl*/) { return true; }); - - if (ssl) { - auto ret = detail::process_server_socket_ssl( - ssl, sock, keep_alive_max_count_, keep_alive_timeout_sec_, - read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, - write_timeout_usec_, - [this, ssl](Stream &strm, bool close_connection, - bool &connection_closed) { - return process_request(strm, close_connection, connection_closed, - [&](Request &req) { req.ssl = ssl; }); - }); - - detail::ssl_delete(ctx_mutex_, ssl, ret); - detail::shutdown_socket(sock); - detail::close_socket(sock); - return ret; - } - - detail::shutdown_socket(sock); - detail::close_socket(sock); - return false; -} - -// SSL HTTP client implementation -inline SSLClient::SSLClient(const std::string &host) - : SSLClient(host, 443, std::string(), std::string()) {} - -inline SSLClient::SSLClient(const std::string &host, int port) - : SSLClient(host, port, std::string(), std::string()) {} - -inline SSLClient::SSLClient(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : ClientImpl(host, port, client_cert_path, client_key_path) { - ctx_ = SSL_CTX_new(SSLv23_client_method()); - - detail::split(&host_[0], &host_[host_.size()], '.', - [&](const char *b, const char *e) { - host_components_.emplace_back(std::string(b, e)); - }); - if (!client_cert_path.empty() && !client_key_path.empty()) { - if (SSL_CTX_use_certificate_file(ctx_, client_cert_path.c_str(), - SSL_FILETYPE_PEM) != 1 || - SSL_CTX_use_PrivateKey_file(ctx_, client_key_path.c_str(), - SSL_FILETYPE_PEM) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } - } -} - -inline SSLClient::SSLClient(const std::string &host, int port, - X509 *client_cert, EVP_PKEY *client_key) - : ClientImpl(host, port) { - ctx_ = SSL_CTX_new(SSLv23_client_method()); - - detail::split(&host_[0], &host_[host_.size()], '.', - [&](const char *b, const char *e) { - host_components_.emplace_back(std::string(b, e)); - }); - if (client_cert != nullptr && client_key != nullptr) { - if (SSL_CTX_use_certificate(ctx_, client_cert) != 1 || - SSL_CTX_use_PrivateKey(ctx_, client_key) != 1) { - SSL_CTX_free(ctx_); - ctx_ = nullptr; - } - } -} - -inline SSLClient::~SSLClient() { - if (ctx_) { SSL_CTX_free(ctx_); } -} - -inline bool SSLClient::is_valid() const { return ctx_; } - -inline void SSLClient::set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path) { - if (ca_cert_file_path) { ca_cert_file_path_ = ca_cert_file_path; } - if (ca_cert_dir_path) { ca_cert_dir_path_ = ca_cert_dir_path; } -} - -inline void SSLClient::set_ca_cert_store(X509_STORE *ca_cert_store) { - if (ca_cert_store) { - if (ctx_) { - if (SSL_CTX_get_cert_store(ctx_) != ca_cert_store) { - // Free memory allocated for old cert and use new store `ca_cert_store` - SSL_CTX_set_cert_store(ctx_, ca_cert_store); - } - } else { - X509_STORE_free(ca_cert_store); - } - } -} - -inline long SSLClient::get_openssl_verify_result() const { - return verify_result_; -} - -inline SSL_CTX *SSLClient::ssl_context() const { return ctx_; } - -inline bool SSLClient::create_and_connect_socket(Socket &socket) { - return is_valid() && ClientImpl::create_and_connect_socket(socket); -} - -inline bool SSLClient::connect_with_proxy(Socket &socket, Response &res, - bool &success) { - success = true; - Response res2; - - if (!detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, [&](Stream &strm) { - Request req2; - req2.method = "CONNECT"; - req2.path = host_and_port_; - return process_request(strm, req2, res2, false); - })) { - close_socket(socket, true); - success = false; - return false; - } - - if (res2.status == 407) { - if (!proxy_digest_auth_username_.empty() && - !proxy_digest_auth_password_.empty()) { - std::map auth; - if (detail::parse_www_authenticate(res2, auth, true)) { - Response res3; - if (!detail::process_client_socket( - socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, [&](Stream &strm) { - Request req3; - req3.method = "CONNECT"; - req3.path = host_and_port_; - req3.headers.insert(detail::make_digest_authentication_header( - req3, auth, 1, detail::random_string(10), - proxy_digest_auth_username_, proxy_digest_auth_password_, - true)); - return process_request(strm, req3, res3, false); - })) { - close_socket(socket, true); - success = false; - return false; - } - } - } else { - res = res2; - return false; - } - } - - return true; -} - -inline bool SSLClient::load_certs() { - bool ret = true; - - std::call_once(initialize_cert_, [&]() { - std::lock_guard guard(ctx_mutex_); - if (!ca_cert_file_path_.empty()) { - if (!SSL_CTX_load_verify_locations(ctx_, ca_cert_file_path_.c_str(), - nullptr)) { - ret = false; - } - } else if (!ca_cert_dir_path_.empty()) { - if (!SSL_CTX_load_verify_locations(ctx_, nullptr, - ca_cert_dir_path_.c_str())) { - ret = false; - } - } else { -#ifdef _WIN32 - detail::load_system_certs_on_windows(SSL_CTX_get_cert_store(ctx_)); -#else - SSL_CTX_set_default_verify_paths(ctx_); -#endif - } - }); - - return ret; -} - -inline bool SSLClient::initialize_ssl(Socket &socket) { - auto ssl = detail::ssl_new( - socket.sock, ctx_, ctx_mutex_, - [&](SSL *ssl) { - if (server_certificate_verification_) { - if (!load_certs()) { - error_ = Error::SSLLoadingCerts; - return false; - } - SSL_set_verify(ssl, SSL_VERIFY_NONE, nullptr); - } - - if (!detail::ssl_connect_or_accept_nonblocking( - socket.sock, ssl, SSL_connect, connection_timeout_sec_, - connection_timeout_usec_)) { - error_ = Error::SSLConnection; - return false; - } - - if (server_certificate_verification_) { - verify_result_ = SSL_get_verify_result(ssl); - - if (verify_result_ != X509_V_OK) { - error_ = Error::SSLServerVerification; - return false; - } - - auto server_cert = SSL_get_peer_certificate(ssl); - - if (server_cert == nullptr) { - error_ = Error::SSLServerVerification; - return false; - } - - if (!verify_host(server_cert)) { - X509_free(server_cert); - error_ = Error::SSLServerVerification; - return false; - } - X509_free(server_cert); - } - - return true; - }, - [&](SSL *ssl) { - SSL_set_tlsext_host_name(ssl, host_.c_str()); - return true; - }); - - if (ssl) { - socket.ssl = ssl; - return true; - } - - close_socket(socket, false); - return false; -} - -inline void SSLClient::close_socket(Socket &socket, bool process_socket_ret) { - detail::close_socket(socket.sock); - socket_.sock = INVALID_SOCKET; - if (socket.ssl) { - detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret); - socket_.ssl = nullptr; - } -} - -inline bool -SSLClient::process_socket(Socket &socket, - std::function callback) { - assert(socket.ssl); - return detail::process_client_socket_ssl( - socket.ssl, socket.sock, read_timeout_sec_, read_timeout_usec_, - write_timeout_sec_, write_timeout_usec_, std::move(callback)); -} - -inline bool SSLClient::is_ssl() const { return true; } - -inline bool SSLClient::verify_host(X509 *server_cert) const { - /* Quote from RFC2818 section 3.1 "Server Identity" - - If a subjectAltName extension of type dNSName is present, that MUST - be used as the identity. Otherwise, the (most specific) Common Name - field in the Subject field of the certificate MUST be used. Although - the use of the Common Name is existing practice, it is deprecated and - Certification Authorities are encouraged to use the dNSName instead. - - Matching is performed using the matching rules specified by - [RFC2459]. If more than one identity of a given type is present in - the certificate (e.g., more than one dNSName name, a match in any one - of the set is considered acceptable.) Names may contain the wildcard - character * which is considered to match any single domain name - component or component fragment. E.g., *.a.com matches foo.a.com but - not bar.foo.a.com. f*.com matches foo.com but not bar.com. - - In some cases, the URI is specified as an IP address rather than a - hostname. In this case, the iPAddress subjectAltName must be present - in the certificate and must exactly match the IP in the URI. - - */ - return verify_host_with_subject_alt_name(server_cert) || - verify_host_with_common_name(server_cert); -} - -inline bool -SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const { - auto ret = false; - - auto type = GEN_DNS; - - struct in6_addr addr6; - struct in_addr addr; - size_t addr_len = 0; - -#ifndef __MINGW32__ - if (inet_pton(AF_INET6, host_.c_str(), &addr6)) { - type = GEN_IPADD; - addr_len = sizeof(struct in6_addr); - } else if (inet_pton(AF_INET, host_.c_str(), &addr)) { - type = GEN_IPADD; - addr_len = sizeof(struct in_addr); - } -#endif - - auto alt_names = static_cast( - X509_get_ext_d2i(server_cert, NID_subject_alt_name, nullptr, nullptr)); - - if (alt_names) { - auto dsn_matched = false; - auto ip_mached = false; - - auto count = sk_GENERAL_NAME_num(alt_names); - - for (decltype(count) i = 0; i < count && !dsn_matched; i++) { - auto val = sk_GENERAL_NAME_value(alt_names, i); - if (val->type == type) { - auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5); - auto name_len = (size_t)ASN1_STRING_length(val->d.ia5); - - switch (type) { - case GEN_DNS: dsn_matched = check_host_name(name, name_len); break; - - case GEN_IPADD: - if (!memcmp(&addr6, name, addr_len) || - !memcmp(&addr, name, addr_len)) { - ip_mached = true; - } - break; - } - } - } - - if (dsn_matched || ip_mached) { ret = true; } - } - - GENERAL_NAMES_free((STACK_OF(GENERAL_NAME) *)alt_names); - return ret; -} - -inline bool SSLClient::verify_host_with_common_name(X509 *server_cert) const { - const auto subject_name = X509_get_subject_name(server_cert); - - if (subject_name != nullptr) { - char name[BUFSIZ]; - auto name_len = X509_NAME_get_text_by_NID(subject_name, NID_commonName, - name, sizeof(name)); - - if (name_len != -1) { - return check_host_name(name, static_cast(name_len)); - } - } - - return false; -} - -inline bool SSLClient::check_host_name(const char *pattern, - size_t pattern_len) const { - if (host_.size() == pattern_len && host_ == pattern) { return true; } - - // Wildcard match - // https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/376484 - std::vector pattern_components; - detail::split(&pattern[0], &pattern[pattern_len], '.', - [&](const char *b, const char *e) { - pattern_components.emplace_back(std::string(b, e)); - }); - - if (host_components_.size() != pattern_components.size()) { return false; } - - auto itr = pattern_components.begin(); - for (const auto &h : host_components_) { - auto &p = *itr; - if (p != h && p != "*") { - auto partial_match = (p.size() > 0 && p[p.size() - 1] == '*' && - !p.compare(0, p.size() - 1, h)); - if (!partial_match) { return false; } - } - ++itr; - } - - return true; -} -#endif - -// Universal client implementation -inline Client::Client(const char *scheme_host_port) - : Client(scheme_host_port, std::string(), std::string()) {} - -inline Client::Client(const char *scheme_host_port, - const std::string &client_cert_path, - const std::string &client_key_path) { - const static std::regex re(R"(^(?:([a-z]+)://)?([^:/?#]+)(?::(\d+))?)"); - - std::cmatch m; - if (std::regex_match(scheme_host_port, m, re)) { - auto scheme = m[1].str(); - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - if (!scheme.empty() && (scheme != "http" && scheme != "https")) { -#else - if (!scheme.empty() && scheme != "http") { -#endif - std::string msg = "'" + scheme + "' scheme is not supported."; - throw std::invalid_argument(msg); - return; - } - - auto is_ssl = scheme == "https"; - - auto host = m[2].str(); - - auto port_str = m[3].str(); - auto port = !port_str.empty() ? std::stoi(port_str) : (is_ssl ? 443 : 80); - - if (is_ssl) { -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT - cli_ = detail::make_unique(host.c_str(), port, - client_cert_path, client_key_path); - is_ssl_ = is_ssl; -#endif - } else { - cli_ = detail::make_unique(host.c_str(), port, - client_cert_path, client_key_path); - } - } else { - cli_ = detail::make_unique(scheme_host_port, 80, - client_cert_path, client_key_path); - } -} - -inline Client::Client(const std::string &host, int port) - : cli_(detail::make_unique(host, port)) {} - -inline Client::Client(const std::string &host, int port, - const std::string &client_cert_path, - const std::string &client_key_path) - : cli_(detail::make_unique(host, port, client_cert_path, - client_key_path)) {} - -inline Client::~Client() {} - -inline bool Client::is_valid() const { - return cli_ != nullptr && cli_->is_valid(); -} - -inline Result Client::Get(const char *path) { return cli_->Get(path); } -inline Result Client::Get(const char *path, const Headers &headers) { - return cli_->Get(path, headers); -} -inline Result Client::Get(const char *path, Progress progress) { - return cli_->Get(path, std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - Progress progress) { - return cli_->Get(path, headers, std::move(progress)); -} -inline Result Client::Get(const char *path, ContentReceiver content_receiver) { - return cli_->Get(path, std::move(content_receiver)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver) { - return cli_->Get(path, headers, std::move(content_receiver)); -} -inline Result Client::Get(const char *path, ContentReceiver content_receiver, - Progress progress) { - return cli_->Get(path, std::move(content_receiver), std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, headers, std::move(content_receiver), - std::move(progress)); -} -inline Result Client::Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver) { - return cli_->Get(path, std::move(response_handler), - std::move(content_receiver)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver) { - return cli_->Get(path, headers, std::move(response_handler), - std::move(content_receiver)); -} -inline Result Client::Get(const char *path, ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} -inline Result Client::Get(const char *path, const Headers &headers, - ResponseHandler response_handler, - ContentReceiver content_receiver, Progress progress) { - return cli_->Get(path, headers, std::move(response_handler), - std::move(content_receiver), std::move(progress)); -} - -inline Result Client::Head(const char *path) { return cli_->Head(path); } -inline Result Client::Head(const char *path, const Headers &headers) { - return cli_->Head(path, headers); -} - -inline Result Client::Post(const char *path) { return cli_->Post(path); } -inline Result Client::Post(const char *path, const std::string &body, - const char *content_type) { - return cli_->Post(path, body, content_type); -} -inline Result Client::Post(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Post(path, headers, body, content_type); -} -inline Result Client::Post(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Post(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Post(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Post(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Post(const char *path, const Params ¶ms) { - return cli_->Post(path, params); -} -inline Result Client::Post(const char *path, const Headers &headers, - const Params ¶ms) { - return cli_->Post(path, headers, params); -} -inline Result Client::Post(const char *path, - const MultipartFormDataItems &items) { - return cli_->Post(path, items); -} -inline Result Client::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items) { - return cli_->Post(path, headers, items); -} -inline Result Client::Post(const char *path, const Headers &headers, - const MultipartFormDataItems &items, - const std::string &boundary) { - return cli_->Post(path, headers, items, boundary); -} -inline Result Client::Put(const char *path) { return cli_->Put(path); } -inline Result Client::Put(const char *path, const std::string &body, - const char *content_type) { - return cli_->Put(path, body, content_type); -} -inline Result Client::Put(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Put(path, headers, body, content_type); -} -inline Result Client::Put(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Put(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Put(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Put(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Put(const char *path, const Params ¶ms) { - return cli_->Put(path, params); -} -inline Result Client::Put(const char *path, const Headers &headers, - const Params ¶ms) { - return cli_->Put(path, headers, params); -} -inline Result Client::Patch(const char *path, const std::string &body, - const char *content_type) { - return cli_->Patch(path, body, content_type); -} -inline Result Client::Patch(const char *path, const Headers &headers, - const std::string &body, const char *content_type) { - return cli_->Patch(path, headers, body, content_type); -} -inline Result Client::Patch(const char *path, size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Patch(path, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Patch(const char *path, const Headers &headers, - size_t content_length, - ContentProvider content_provider, - const char *content_type) { - return cli_->Patch(path, headers, content_length, std::move(content_provider), - content_type); -} -inline Result Client::Delete(const char *path) { return cli_->Delete(path); } -inline Result Client::Delete(const char *path, const std::string &body, - const char *content_type) { - return cli_->Delete(path, body, content_type); -} -inline Result Client::Delete(const char *path, const Headers &headers) { - return cli_->Delete(path, headers); -} -inline Result Client::Delete(const char *path, const Headers &headers, - const std::string &body, - const char *content_type) { - return cli_->Delete(path, headers, body, content_type); -} -inline Result Client::Options(const char *path) { return cli_->Options(path); } -inline Result Client::Options(const char *path, const Headers &headers) { - return cli_->Options(path, headers); -} - -inline bool Client::send(const Request &req, Response &res) { - return cli_->send(req, res); -} - -inline size_t Client::is_socket_open() const { return cli_->is_socket_open(); } - -inline void Client::stop() { cli_->stop(); } - -inline void Client::set_default_headers(Headers headers) { - cli_->set_default_headers(std::move(headers)); -} - -inline void Client::set_tcp_nodelay(bool on) { cli_->set_tcp_nodelay(on); } -inline void Client::set_socket_options(SocketOptions socket_options) { - cli_->set_socket_options(std::move(socket_options)); -} - -inline void Client::set_connection_timeout(time_t sec, time_t usec) { - cli_->set_connection_timeout(sec, usec); -} -inline void Client::set_read_timeout(time_t sec, time_t usec) { - cli_->set_read_timeout(sec, usec); -} -inline void Client::set_write_timeout(time_t sec, time_t usec) { - cli_->set_write_timeout(sec, usec); -} - -inline void Client::set_basic_auth(const char *username, const char *password) { - cli_->set_basic_auth(username, password); -} -inline void Client::set_bearer_token_auth(const char *token) { - cli_->set_bearer_token_auth(token); -} -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_digest_auth(const char *username, - const char *password) { - cli_->set_digest_auth(username, password); -} -#endif - -inline void Client::set_keep_alive(bool on) { cli_->set_keep_alive(on); } -inline void Client::set_follow_location(bool on) { - cli_->set_follow_location(on); -} - -inline void Client::set_compress(bool on) { cli_->set_compress(on); } - -inline void Client::set_decompress(bool on) { cli_->set_decompress(on); } - -inline void Client::set_interface(const char *intf) { - cli_->set_interface(intf); -} - -inline void Client::set_proxy(const char *host, int port) { - cli_->set_proxy(host, port); -} -inline void Client::set_proxy_basic_auth(const char *username, - const char *password) { - cli_->set_proxy_basic_auth(username, password); -} -inline void Client::set_proxy_bearer_token_auth(const char *token) { - cli_->set_proxy_bearer_token_auth(token); -} -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_proxy_digest_auth(const char *username, - const char *password) { - cli_->set_proxy_digest_auth(username, password); -} -#endif - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::enable_server_certificate_verification(bool enabled) { - cli_->enable_server_certificate_verification(enabled); -} -#endif - -inline void Client::set_logger(Logger logger) { cli_->set_logger(logger); } - -#ifdef CPPHTTPLIB_OPENSSL_SUPPORT -inline void Client::set_ca_cert_path(const char *ca_cert_file_path, - const char *ca_cert_dir_path) { - if (is_ssl_) { - static_cast(*cli_).set_ca_cert_path(ca_cert_file_path, - ca_cert_dir_path); - } -} - -inline void Client::set_ca_cert_store(X509_STORE *ca_cert_store) { - if (is_ssl_) { - static_cast(*cli_).set_ca_cert_store(ca_cert_store); - } -} - -inline long Client::get_openssl_verify_result() const { - if (is_ssl_) { - return static_cast(*cli_).get_openssl_verify_result(); - } - return -1; // NOTE: -1 doesn't match any of X509_V_ERR_??? -} - -inline SSL_CTX *Client::ssl_context() const { - if (is_ssl_) { return static_cast(*cli_).ssl_context(); } - return nullptr; -} -#endif - -// ---------------------------------------------------------------------------- - -} // namespace httplib - -#endif // CPPHTTPLIB_HTTPLIB_H diff --git a/src/my-online-judge-master/MYOJ/compile_server/comm/util.hpp b/src/my-online-judge-master/MYOJ/compile_server/comm/util.hpp deleted file mode 100644 index 2834d55..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/comm/util.hpp +++ /dev/null @@ -1,202 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "../comm/Log.hpp" - -namespace ns_util -{ - // 公共编译路径 - const std::string defaultTempPath = "/home/zzy1/2024/my-online-judge/MYOJ/compile_server/temp/"; - - // 给文件名加路径和后缀 - class pathUtil - { - public: - pathUtil() - { - } - ~pathUtil() - { - } - - // 给要文件添加后缀,路径 - static std::string addSuffix(const std::string &file_name, const std::string &suffix) - { - return defaultTempPath + file_name + suffix; - } - - // 程序编译时的三个临时文件 - // 生成源文件 - static std::string src(const std::string &file_name) - { - return addSuffix(file_name, ".cpp"); - } - - // 生成可执行文件 - static std::string exe(const std::string &file_name) - { - return addSuffix(file_name, ".exe"); - } - - // 生成编译错误的完整文件名 - static std::string compilerError(const std::string &file_name) - { - return addSuffix(file_name, ".compile_error"); - } - - // 程序运行时的三个临时文件 - // 生成标准输入的完整文件名(标准输入所在路径+后缀)(这个地方函数名必须大写,否则命名冲突) - static std::string Stdin(const std::string &file_name) - { - return addSuffix(file_name, ".stdin"); - } - // 生成标准输出的完整文件名(标准输出所在路径+后缀) - static std::string Stdout(const std::string &file_name) - { - return addSuffix(file_name, ".stdout"); - } - // 生成标准错误的完整文件名(标准错误所在路径+后缀) - static std::string Stderr(const std::string &file_name) - { - return addSuffix(file_name, ".stderr"); - } - }; - - // 判断文件是否存在 - class fileUtil - { - public: - fileUtil() - { - } - ~fileUtil() - { - } - static bool isFileExist(const std::string &file_name) - { - struct stat buffer; - return (stat(file_name.c_str(), &buffer) == 0); - } - - // keep表示是否需要\n换行符 - static bool readFile(const std::string &file_name, std::string *input, bool keep = false) - { - input->clear(); - - std::ifstream in(file_name); - if (!in.is_open()) - { - return false; - } - - std::string line; - - while (getline(in, line)) - { - *input += line; - *input += (keep ? "\n" : ""); - } - - in.close(); - return true; - } - - static bool writeFile(const std::string &file_name, const std::string &output) - { - std::ofstream out(file_name); - if (!out.is_open()) - { - return false; - } - - out.write(output.c_str(), output.size()); - out.close(); - return true; - } - }; - - class TimeUtil - { - public: - // 获取时间戳(秒级) - static std::string GetTimeStamp() - { - struct timeval _time; - gettimeofday(&_time, nullptr); - return std::to_string(_time.tv_sec); // 累积到现在的秒数 - } - // 获取时间戳(毫秒级) - static std::string GetTimeMs() - { - struct timeval _time; - gettimeofday(&_time, nullptr); - return std::to_string(_time.tv_sec * 1000 + _time.tv_usec / 1000); - } - }; - - // 生成唯一的文件名 - class nameUtil - { - public: - nameUtil() - { - } - ~nameUtil() - { - } - static std::string getUniqueName() - { - static std::atomic_uint id(0); // atomic是C++提供的原子性计数器 - id++; - std::string ms = TimeUtil::GetTimeMs(); - std::string uniq_id = to_string(id); - return ms + "-" + uniq_id; - // // 获取当前时间戳 - // auto now = std::chrono::system_clock::now(); - // auto millis = std::chrono::duration_cast(now.time_since_epoch()).count(); - - // // 使用随机数生成器 - // std::random_device rd; // 非确定性随机数生成器 - // std::mt19937 gen(rd()); // 使用Mersenne Twister算法的伪随机数生成器 - // std::uniform_int_distribution<> dis(1000, 9999); - - // // 生成唯一的文件名 - // std::stringstream ss; - // ss << millis; - // ss << "_"; - // ss << dis(gen); // 添加一个随机数来进一步确保唯一性 - - // return ss.str(); - } - }; - - // 切分字符串工具 - class splitUtil - { - public: - splitUtil() - { - } - ~splitUtil() - { - } - static void splitString(const std::string& src, const std::string& sep, std::vector* tokens) - { - tokens->clear(); - boost::split(*tokens, src, boost::is_any_of(sep), boost::algorithm::token_compress_on); - } - }; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/compile_server/compile.hpp b/src/my-online-judge-master/MYOJ/compile_server/compile.hpp deleted file mode 100644 index 7e7f42e..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/compile.hpp +++ /dev/null @@ -1,72 +0,0 @@ -// 编译模块 -#pragma once -#include "./comm/util.hpp" - - -namespace ns_compile -{ - // 提供编译接口 - class Compiler - { - public: - Compiler() - {} - ~Compiler() - {} - - // 编译文件,并且返回编译结果 - bool compile(const std::string& file_name) - { - pid_t id = fork(); - if (id == -1) - { - // 创建失败 - lg(Error, "编译文件时创建子进程失败, errno:%d, strerror:%s\n",errno, strerror(errno)); - exit(1); - } - else if (id == 0) - { - // child - umask(0); - int _stderr = open(ns_util::pathUtil::compilerError(file_name).c_str(), O_CREAT | O_WRONLY, 0664); - if (_stderr < 0) - { - lg(Error, "子进程创建_stderr时出错, errno:%d, strerror:%s\n",errno, strerror(errno)); - exit(2); - } - - int ret = dup2(_stderr, 2); - if (ret == -1) - { - lg(Error, "子进程标准错误重定向错误, errno:%d, strerror:%s\n",errno, strerror(errno)); - exit(3); - } - - // 进程替换 - execlp("g++", "g++", "-o", ns_util::pathUtil::exe(file_name).c_str(), ns_util::pathUtil::src(file_name).c_str(), "-D", "COMPILER_ONLINE", "-std=c++11", nullptr); - - lg(Error, "进程替换错误, errno:%d, strerror:%s\n",errno, strerror(errno)); - exit(4); - } - else if (id > 0) - { - // parent - waitpid(id, nullptr, 0); - - if (ns_util::fileUtil::isFileExist(ns_util::pathUtil::exe(file_name))) - { - lg(Info, "%s 文件编译成功!\n", ns_util::pathUtil::src(file_name).c_str()); - return true; - } - lg(Error, "%s 文件编译失败!\n", ns_util::pathUtil::src(file_name).c_str()); - return false; - } - else - { - // 意料之外的情况 - lg(Debug, "compile创建子进程出现意料之外的情况\n"); - exit(5); - } - } - }; -} diff --git a/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp b/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp deleted file mode 100644 index 77e1971..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/compile_run.hpp +++ /dev/null @@ -1,207 +0,0 @@ -#pragma once - -#include -#include - -#include "./comm/util.hpp" -#include "compile.hpp" -#include "Runner.hpp" - -namespace ns_compile_run -{ - // 协调程序的编译和运行 - - enum STATUS - { - EmptyCodeError = -2, - CompileFailError - }; - - class Compile_Run - { - public: - Compile_Run() - { - } - ~Compile_Run() - { - } - - // in_json中包含: - // 1、code:用户提交的代码 - // 2、input:用户给自己提交的代码所做的输入,不做处理 - // 3、cpu_limit:CPU运行时间限制 - // 4、mem_limit:内存限制,即空间限制 - - static void start(const std::string &in_json, std::string *out_json) - { - // 程序状态 - int status = 0; - - // 1.把输入的in_json反序列化 - Json::Value in_value; - Json::Reader reader; - - reader.parse(in_json, in_value); - - std::string code = in_value["code"].asString(); - // std::cout << "输出code代码: " << std::endl; - // std::cout< -#include -using namespace std; - - -int main() -{ - std::string _exe("./temp/1727077555456-1.exe"); - execlp(_exe.c_str(), _exe.c_str(), nullptr); - return 0; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/compile_server/test/testCompile.cc b/src/my-online-judge-master/MYOJ/compile_server/test/testCompile.cc deleted file mode 100644 index 0d9fb11..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/test/testCompile.cc +++ /dev/null @@ -1,22 +0,0 @@ -#include "compile.hpp" - -int main() -{ - // 测试编译hello.cc文件 - // 1.hello.cc文件不存在 - // 2.hello.cc文件存在 - // 2.a hello.cc文件存在,且编译成功,生成.exe文件 - // 2.b hello.cc文件存在,但编译失败,没有生成.exe文件,并且有编译错误信息的文件产生 - - ns_compile::Compiler cpl; - if (cpl.compile("hello")) - { - lg(Debug, "编译成功\n"); - } - else - { - lg(Debug, "编译失败\n"); - } - - return 0; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRun.cc b/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRun.cc deleted file mode 100644 index 939e8a5..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRun.cc +++ /dev/null @@ -1,120 +0,0 @@ -#include "compile_run.hpp" - -int main() -{ - ns_compile_run::Compile_Run cr; - - Json::Value value_in; - Json::StyledWriter writer; - - // in_json中包含: - // 1、code:用户提交的代码 - // 2、input:用户给自己提交的代码所做的输入,不做处理 - // 3、cpu_limit:CPU运行时间限制 - // 4、mem_limit:内存限制,即空间限制 - - // 测试: - // 1.正常程序 - // value_in["code"] = "#include \nint main(){ std::cout << \"hello world\" << std::endl; return 0;}"; - // value_in["cpu_limit"] = 1; - // value_in["mem_limit"] = 1024 * 1024 * 1024; - - // 2.空程序 - // value_in["code"] = ""; - // value_in["cpu_limit"] = 1; - // value_in["mem_limit"] = 1024 * 1024 * 1024; - - // 3.编译错误 - // value_in["code"] = "dsadwadawdaw"; - // value_in["cpu_limit"] = 1; - // value_in["mem_limit"] = 1024 * 1024 * 1024; - - // 4.CPU超时等异常错误 - // value_in["code"] = "#include \n int main(){ while (true) { std::cout << \"hello zzy\" << std::endl; } return 0;}"; - // value_in["cpu_limit"] = 1; - // value_in["mem_limit"] = 1024 * 1024 * 1024; - - //value_in["code"] = "int main()\n {return 0;}"; - - value_in["code"] = R"(#include -#include -#include -#include -#include - -using namespace std; - -class Solution -{ -public: - bool isPalindrome(int x) - { - if (x < 0) - { - return false; // 负数不可能是回文数 - } - - string str1 = to_string(x); - string str2(str1); - reverse(str2.begin(), str2.end()); - - for (int i = 0; i < str1.size() / 2; i++) - { - if (str2[i] != str1[i]) - { - return false; - } - } - - return true; - } -}; - -void Test1() -{ - // 通过定义临时对象,来完成方法的调用 - bool ret = Solution().isPalindrome(121); - if (ret) - { - std::cout << "通过用例1, 测试121通过 ... OK!" << std::endl; - } - else - { - std::cout << "没有通过用例1, 测试的值是: 121" << std::endl; - } -} - -void Test2() -{ - // 通过定义临时对象,来完成方法的调用 - bool ret = Solution().isPalindrome(-10); - if (!ret) - { - std::cout << "通过用例2, 测试-10通过 ... OK!" << std::endl; - } - else - { - std::cout << "没有通过用例2, 测试的值是: -10" << std::endl; - } -} - -int main() -{ - Test1(); - Test2(); - - return 0; -})"; - value_in["cpu_limit"] = 1; - value_in["mem_limit"] = 1024 * 1024 * 1024; - - std::string in_json; - in_json = writer.write(value_in); - - std::string out_json; - cr.start(in_json, &out_json); - - std::cout << out_json << std::endl; - - return 0; -} diff --git a/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRunServer.cc b/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRunServer.cc deleted file mode 100644 index eda63b3..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/test/testCompileRunServer.cc +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include "comm/httplib.h" - -int main() -{ - httplib::Client cl("127.0.0.1", 8082); - - std::string compile_json; - - Json::Value value_in; - Json::StyledWriter writer; - - value_in["code"] = R"(#include -#include -#include -#include -#include - -using namespace std; - -class Solution -{ -public: - bool isPalindrome(int x) - { - if (x < 0) - { - return false; // 负数不可能是回文数 - } - - string str1 = to_string(x); - string str2(str1); - reverse(str2.begin(), str2.end()); - - for (int i = 0; i < str1.size() / 2; i++) - { - if (str2[i] != str1[i]) - { - return false; - } - } - - return true; - } -}; - -void Test1() -{ - // 通过定义临时对象,来完成方法的调用 - bool ret = Solution().isPalindrome(121); - if (ret) - { - std::cout << "通过用例1, 测试121通过 ... OK!" << std::endl; - } - else - { - std::cout << "没有通过用例1, 测试的值是: 121" << std::endl; - } -} - -void Test2() -{ - // 通过定义临时对象,来完成方法的调用 - bool ret = Solution().isPalindrome(-10); - if (!ret) - { - std::cout << "通过用例2, 测试-10通过 ... OK!" << std::endl; - } - else - { - std::cout << "没有通过用例2, 测试的值是: -10" << std::endl; - } -} - -int main() -{ - Test1(); - Test2(); - - return 0; -})"; - value_in["cpu_limit"] = 1; - value_in["mem_limit"] = 1024 * 1024 * 1024; - - compile_json = writer.write(value_in); - - httplib::Result res = cl.Post("/compile_and_run", compile_json, "application/json;charset=utf-8"); - - if (res && res->status == 200) - { - std::cout << "编译运行服务完成...\n" << std::endl; - std::cout << res->body << std::endl; - } - else - { - // 失败,需要重新请求,并且将此次选择的主机放到下线表中 - std::cout << "编译运行服务失败...\n" << std::endl; - } - - return 0; -} diff --git a/src/my-online-judge-master/MYOJ/compile_server/test/testRun.cc b/src/my-online-judge-master/MYOJ/compile_server/test/testRun.cc deleted file mode 100644 index 71b2702..0000000 --- a/src/my-online-judge-master/MYOJ/compile_server/test/testRun.cc +++ /dev/null @@ -1,13 +0,0 @@ -#include "run.hpp" - -int main() -{ - // ns_Runner::Runner runner; - // runner.Run("hello", 5, 1024); - // 1. exe文件能顺利执行 - // 2. exe文件不能顺利执行,如:超时,除0等情况 - ns_run::Runner runner; - runner.run("hello", 1, 1024 * 1024 * 1024); - - return 0; -} \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/data_server/config.conf b/src/my-online-judge-master/MYOJ/data_server/config.conf deleted file mode 100644 index ddb6b99..0000000 --- a/src/my-online-judge-master/MYOJ/data_server/config.conf +++ /dev/null @@ -1 +0,0 @@ -password=123456 \ No newline at end of file diff --git a/src/my-online-judge-master/MYOJ/data_server/data_server b/src/my-online-judge-master/MYOJ/data_server/data_server deleted file mode 100644 index 4f3e6a1..0000000 Binary files a/src/my-online-judge-master/MYOJ/data_server/data_server and /dev/null differ diff --git a/src/my-online-judge-master/MYOJ/data_server/data_server.cc b/src/my-online-judge-master/MYOJ/data_server/data_server.cc deleted file mode 100644 index 5a65f8b..0000000 --- a/src/my-online-judge-master/MYOJ/data_server/data_server.cc +++ /dev/null @@ -1,264 +0,0 @@ -#include -#include - -#include "../comm/httplib.h" -#include "../comm/Comm_model_MySQL.hpp" -#include "../comm/Log.hpp" - -const std::string conf_file_path = "/home/zzy1/2024/my-online-judge/MYOJ/data_server/config.conf"; -const std::string passwd_call_word = "password="; - -// 浏览器不会自动识别普通的换行符 -// 需要手动进行转换 -// 要在 HTML 页面上正确显示预设代码(header)和测试用例(tail)的换行符 -// 需要将换行符(\n)转换为 HTML 中的
标签 -void replaceNewlinesWithBR(std::string &str) -{ - size_t pos = 0; - // 查找换行符的位置,并用
替换 - while ((pos = str.find('\n', pos)) != std::string::npos) - { - str.replace(pos, 1, "
"); - pos += 4; // 移动到替换后的下一个位置 - } -} - -bool read_password_from_conf(std::string *password) -{ - if (password == nullptr) - { - return false; - } - - password->clear(); - std::ifstream file(conf_file_path); - if (!file.is_open()) - { - // std::cerr << "无法打开配置文件: " << file_path << std::endl; - lg(Fatal, "无法打开 %s 配置文件, 请检查!\n", conf_file_path.c_str()); - return false; - } - - std::string line; - while (std::getline(file, line)) - { - if (line.find(passwd_call_word) == 0) - { - *password = line.substr(passwd_call_word.size()); // 截取 "admin_password=" 之后的部分 - break; - } - } - - file.close(); - return true; -} - -int main(int argc, char *argv[]) -{ - if (argc == 2) - { - std::string option(argv[1]); - if (option == "-d") - { - // 1、守护进程化 - if (daemon(1, 0) == -1) - { - perror("data_server 守护进程化失败!\n"); - exit(1); - } - } - } - - std::string stored_password; - if (!read_password_from_conf(&stored_password)) - { - exit(2); - } - - lg(Info, "加载配置文件 %s 成功\n", conf_file_path.c_str()); - - httplib::Server svr; - ns_model_MySQL::Model model; - - svr.set_base_dir("/home/zzy1/2024/my-online-judge/MYOJ/data_server/wwwdata"); - - // 处理密码验证请求 - svr.Post("/verify-password", - [&stored_password](const httplib::Request &req, httplib::Response &res) - { - Json::Value requestData; - Json::Reader reader; - if (reader.parse(req.body, requestData)) - { - std::string password = requestData["password"].asString(); - - Json::Value responseData; - if (password == stored_password) - { - responseData["success"] = true; - } - else - { - responseData["success"] = false; - } - res.set_content(responseData.toStyledString(), "application/json"); - } - else - { - res.status = 400; - res.set_content("Invalid JSON", "text/plain"); - } }); - - // 管理界面路由 - svr.Get("/manage", - [](const httplib::Request &, httplib::Response &res) - { - // 这里可以返回题库管理的界面(前端HTML页面) - std::string html; - ns_util::fileUtil::readFile("/home/zzy1/2024/my-online-judge/MYOJ/data_server/wwwdata/manage.html", &html, true); - res.set_content(html, "text/html"); - }); - - // 处理查询指定题目的请求 - svr.Get(R"(/manage/questions/(\d+))", - [&](const httplib::Request &req, httplib::Response &res) - { - std::string question_num = req.matches[1]; // 获取题目编号 - ns_model_MySQL::Question question; - - if (model.getOneQuestion(question_num, &question)) - { - replaceNewlinesWithBR(question.desc); - replaceNewlinesWithBR(question.header); - replaceNewlinesWithBR(question.tail); - - Json::Value json_question; - json_question["number"] = question.number; - json_question["title"] = question.title; - json_question["star"] = question.star; - json_question["cpu_limit"] = question.cpu_limit; - json_question["mem_limit"] = question.mem_limit; - json_question["desc"] = question.desc; - json_question["header"] = question.header; - json_question["tail"] = question.tail; - - Json::StreamWriterBuilder writer; - std::string output = Json::writeString(writer, json_question); - res.set_content(output, "application/json"); - lg(Info, "查找单个题目操作成功\n"); - } - else - { - res.status = 404; - res.set_content("Question not found", "text/plain"); - lg(Warning, "查找单个题目操作失败\n"); - } - }); - - // 添加题目 - svr.Post("/manage/questions", - [&](const httplib::Request &req, httplib::Response &res) - { - Json::CharReaderBuilder reader; - Json::Value json_question; - std::string errs; - - std::unique_ptr const jsonReader(reader.newCharReader()); - // std::cout << "收到的请求body: " << req.body << std::endl; debug - - auto json = jsonReader->parse(req.body.c_str(), - req.body.c_str() + req.body.length(), - &json_question, &errs); - - if (!jsonReader->parse(req.body.c_str(), req.body.c_str() + req.body.length(), &json_question, &errs)) - { - - res.status = 400; - res.set_content("Invalid JSON format", "text/plain"); - // lg(Warning, "parse添加题目失败\n"); - // std::cout << "1111" << std::endl; - return; - } - - // 获取前端传入的字段 - std::string title = json_question["title"].asString(); - std::string star = json_question["star"].asString(); - int cpu_limit = json_question["cpu_limit"].asInt(); - int mem_limit = json_question["mem_limit"].asInt(); - std::string desc = json_question["desc"].asString(); - std::string header = json_question["header"].asString(); - std::string tail = json_question["tail"].asString(); - - std::string sql; - - if (!json_question.isMember("number")) - { - sql = "INSERT INTO " + ns_model_MySQL::table_name + " (title, star, cpu_limit, mem_limit, `desc`, header, tail) VALUES ('"; - sql += title + "', '"; - sql += star + "', "; - sql += std::to_string(cpu_limit) + ", "; - sql += std::to_string(mem_limit) + ", '"; - sql += desc + "', '"; - sql += header + "', '"; - sql += tail + "');"; - } - else - { - int number = json_question["number"].asInt(); - // 自定义题号插入SQL - sql = "INSERT INTO " + ns_model_MySQL::table_name + " (number, title, star, cpu_limit, mem_limit, `desc`, header, tail) VALUES ("; - sql += std::to_string(number) + ", '"; - sql += title + "', '"; - sql += star + "', "; - sql += std::to_string(cpu_limit) + ", "; - sql += std::to_string(mem_limit) + ", '"; - sql += desc + "', '"; - sql += header + "', '"; - sql += tail + "');"; - } - - // lg(Debug, "sql finish\n"); - - if (model.queryMySQL(sql, nullptr)) - { - // lg(Debug, "sql query finish\n"); - res.status = 200; - res.set_content("Question added successfully", "text/plain"); - lg(Info, "添加题目成功\n"); - } - else - { - // lg(Debug, "sql query finish\n"); - res.status = 500; - res.set_content("Failed to add question", "text/plain"); - lg(Warning, "添加题目失败\n"); - } - }); - - // 删除题目 - svr.Delete(R"(/manage/questions/(\d+))", - [&](const httplib::Request &req, httplib::Response &res) - { - std::string question_num = req.matches[1]; // 获取题目编号 - - // 删除 SQL 语句 - std::string sql = "DELETE FROM " + ns_model_MySQL::table_name + " WHERE number = " + question_num + ";"; - - if (model.queryMySQL(sql, nullptr)) - { - res.status = 200; - res.set_content("Question deleted successfully", "text/plain"); - lg(Info, "题目删除操作成功\n"); - } - else - { - res.status = 500; - res.set_content("Failed to delete question", "text/plain"); - lg(Warning, "题目删除操作失败\n"); - } - }); - - lg(Info, "题库管理服务启动成功\n"); - svr.listen("0.0.0.0", 9999); - return 0; -} diff --git a/src/my-online-judge-master/MYOJ/data_server/wwwdata/index.html b/src/my-online-judge-master/MYOJ/data_server/wwwdata/index.html deleted file mode 100644 index 15e2a93..0000000 --- a/src/my-online-judge-master/MYOJ/data_server/wwwdata/index.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - 管理系统登录 - - - - - - - - - - diff --git a/src/my-online-judge-master/MYOJ/data_server/wwwdata/manage.html b/src/my-online-judge-master/MYOJ/data_server/wwwdata/manage.html deleted file mode 100644 index 5a673e9..0000000 --- a/src/my-online-judge-master/MYOJ/data_server/wwwdata/manage.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - - 题库管理系统 - - - - -
-

题库管理系统

- - -
-

查询指定题目

- - - - -
-
- - -
-

删除题目

- - - - -
-
- - -
-

添加题目

- -
- -
- - - - - - - - - - - - - -
-
- -
-
- -
-
- - -
-
-
- - - - - \ No newline at end of file diff --git a/src/my-online-judge-master/README.en.md b/src/my-online-judge-master/README.en.md deleted file mode 100644 index 9706e51..0000000 --- a/src/my-online-judge-master/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# MyOnlineJudge - -#### Description -这是一个能提供web在线OJ服务的项目 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/src/my-online-judge-master/README.md b/src/my-online-judge-master/README.md deleted file mode 100644 index 991ee32..0000000 --- a/src/my-online-judge-master/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# MyOnlineJudge - -#### 介绍 -这是一个能提供web在线OJ服务的项目 - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)