-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (23 loc) · 699 Bytes
/
main.cpp
File metadata and controls
29 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// main.cpp
#include <iostream>
#include <string>
#include "Judge.hpp"
#include "ColorPrint.hpp"
#include "Utils.hpp"
namespace {
const std::string userDataPath = "./data/user/user.csv";
const std::string problemDataPath = "./data/problem/problem.csv";
const std::string version = "4.4";
}
int main() {
ClearScreen();
try {
JudgeSystem judge(userDataPath, problemDataPath, version);
std::cout << blue("Simple Judge System started! Version: ") << version << "\n";
judge.loginProcess();
} catch (const std::exception& e) {
std::cerr << red("[Fatal Error] ") << e.what() << '\n';
return 1;
}
return 0;
}