checker in linux

只是放个模板= =

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
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <vector>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <stack>
#include <iostream>
#include <algorithm>
#include <string>
#include <functional>
#include <sstream>
using namespace std;
typedef long long ll;
typedef long double ld;

int main()
{
    for (int i = 1; ; ++i)
    {
        system("./2431_data");
        system("./2431");
        system("./2431_force");
        if (system("diff output.out output2.out"))
        {
            cerr << "ERROR!--" << i << endl;
            break;
        }
        cerr << "PASSED!--" << i << endl;
        system("sleep 1");
    }
}