-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecuter.h
More file actions
45 lines (39 loc) · 740 Bytes
/
executer.h
File metadata and controls
45 lines (39 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _EXECUTER_H_
#define _EXECUTER_H_
#define WAIT 0
#define JUDGING 1
#define AC 2
#define WA 3
#define CE 4
#define RE 5
#define ML 6
#define TL 7
#define OL 8
#include <unistd.h>
class Executer {
private:
// initialize value
int problem_id;
int lang;
int special;
int time_limit;
int memory_limit;
char judge_input[110];
char user_output[110];
char dir[110];
// this value will be used at runtime.
int result;
int max_time;
int max_memory;
public:
Executer(int, int, int, int, int, const char*, const char*, const char*);
~Executer();
bool isSplecial();
int get_result();
int get_max_time();
int get_max_memory();
int running();
int watching(const pid_t&);
void execute();
};
#endif