From 889e6e2800565514064d59087dedfb640863ef55 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 25 Jan 2015 14:08:40 +0200 Subject: [PATCH] Convert all test programs from CPP to C --- MANIFEST | 32 +++++++++---------- t/problems/aminusb/meta.yml | 4 +-- t/problems/aminusb/tests/ac/meta.yml | 4 +-- .../aminusb/tests/ac/{prog.cpp => prog.c} | 2 +- t/problems/aminusb/tests/wa/meta.yml | 4 +-- .../aminusb/tests/wa/{prog.cpp => prog.c} | 0 t/problems/aminusb/{ver.cpp => ver.c} | 2 +- t/problems/aplusb/tests/40/meta.yml | 4 +-- .../aplusb/tests/40/{prog.cpp => prog.c} | 0 t/problems/aplusb/tests/ac/meta.yml | 4 +-- .../aplusb/tests/ac/{prog.cpp => prog.c} | 2 +- .../aplusb/tests/compile-error/meta.yml | 4 +-- .../tests/compile-error/{prog.cpp => prog.c} | 0 t/problems/aplusb/tests/mle/meta.yml | 4 +-- .../aplusb/tests/mle/{prog.cpp => prog.c} | 0 t/problems/aplusb/tests/nzx/meta.yml | 4 +-- .../aplusb/tests/nzx/{prog.cpp => prog.c} | 0 t/problems/aplusb/tests/ole/meta.yml | 4 +-- .../aplusb/tests/ole/{prog.cpp => prog.c} | 2 +- t/problems/aplusb/tests/tle/meta.yml | 4 +-- .../aplusb/tests/tle/{prog.cpp => prog.c} | 0 t/problems/double/tests/wa/meta.yml | 4 +-- .../double/tests/wa/{prog.cpp => prog.c} | 2 +- t/problems/increment/meta.yml | 4 +-- t/problems/increment/tests/ac/meta.yml | 4 +-- .../increment/tests/ac/{prog.cpp => prog.c} | 2 +- t/problems/increment/{ver.cpp => ver.c} | 6 ++-- t/problems/square/{gen.cpp => gen.c} | 4 +-- t/problems/square/meta.yml | 8 ++--- t/problems/square/tests/ac/meta.yml | 4 +-- .../square/tests/ac/{prog.cpp => prog.c} | 2 +- t/problems/square/{ver.cpp => ver.c} | 2 +- 32 files changed, 61 insertions(+), 61 deletions(-) rename t/problems/aminusb/tests/ac/{prog.cpp => prog.c} (83%) rename t/problems/aminusb/tests/wa/{prog.cpp => prog.c} (100%) rename t/problems/aminusb/{ver.cpp => ver.c} (90%) rename t/problems/aplusb/tests/40/{prog.cpp => prog.c} (100%) rename t/problems/aplusb/tests/ac/{prog.cpp => prog.c} (83%) rename t/problems/aplusb/tests/compile-error/{prog.cpp => prog.c} (100%) rename t/problems/aplusb/tests/mle/{prog.cpp => prog.c} (100%) rename t/problems/aplusb/tests/nzx/{prog.cpp => prog.c} (100%) rename t/problems/aplusb/tests/ole/{prog.cpp => prog.c} (78%) rename t/problems/aplusb/tests/tle/{prog.cpp => prog.c} (100%) rename t/problems/double/tests/wa/{prog.cpp => prog.c} (81%) rename t/problems/increment/tests/ac/{prog.cpp => prog.c} (87%) rename t/problems/increment/{ver.cpp => ver.c} (86%) rename t/problems/square/{gen.cpp => gen.c} (73%) rename t/problems/square/tests/ac/{prog.cpp => prog.c} (80%) rename t/problems/square/{ver.cpp => ver.c} (90%) diff --git a/MANIFEST b/MANIFEST index 8ba39c9..5c441b2 100644 --- a/MANIFEST +++ b/MANIFEST @@ -35,10 +35,10 @@ t/problems/aminusb/4.in t/problems/aminusb/5.in t/problems/aminusb/meta.yml t/problems/aminusb/tests/ac/meta.yml -t/problems/aminusb/tests/ac/prog.cpp +t/problems/aminusb/tests/ac/prog.c t/problems/aminusb/tests/wa/meta.yml -t/problems/aminusb/tests/wa/prog.cpp -t/problems/aminusb/ver.cpp +t/problems/aminusb/tests/wa/prog.c +t/problems/aminusb/ver.c t/problems/aplusb/1.in t/problems/aplusb/1.ok t/problems/aplusb/2.in @@ -53,19 +53,19 @@ t/problems/aplusb/6.in t/problems/aplusb/6.ok t/problems/aplusb/meta.yml t/problems/aplusb/tests/40/meta.yml -t/problems/aplusb/tests/40/prog.cpp +t/problems/aplusb/tests/40/prog.c t/problems/aplusb/tests/ac/meta.yml -t/problems/aplusb/tests/ac/prog.cpp +t/problems/aplusb/tests/ac/prog.c t/problems/aplusb/tests/compile-error/meta.yml -t/problems/aplusb/tests/compile-error/prog.cpp +t/problems/aplusb/tests/compile-error/prog.c t/problems/aplusb/tests/mle/meta.yml -t/problems/aplusb/tests/mle/prog.cpp +t/problems/aplusb/tests/mle/prog.c t/problems/aplusb/tests/nzx/meta.yml -t/problems/aplusb/tests/nzx/prog.cpp +t/problems/aplusb/tests/nzx/prog.c t/problems/aplusb/tests/ole/meta.yml -t/problems/aplusb/tests/ole/prog.cpp +t/problems/aplusb/tests/ole/prog.c t/problems/aplusb/tests/tle/meta.yml -t/problems/aplusb/tests/tle/prog.cpp +t/problems/aplusb/tests/tle/prog.c t/problems/double/1.in t/problems/double/1.ok t/problems/double/10.in @@ -88,13 +88,13 @@ t/problems/double/9.in t/problems/double/9.ok t/problems/double/meta.yml t/problems/double/tests/wa/meta.yml -t/problems/double/tests/wa/prog.cpp -t/problems/increment/ver.cpp +t/problems/double/tests/wa/prog.c +t/problems/increment/ver.c t/problems/increment/meta.yml t/problems/increment/tests/ac/meta.yml -t/problems/increment/tests/ac/prog.cpp -t/problems/square/gen.cpp +t/problems/increment/tests/ac/prog.c +t/problems/square/gen.c t/problems/square/meta.yml t/problems/square/tests/ac/meta.yml -t/problems/square/tests/ac/prog.cpp -t/problems/square/ver.cpp +t/problems/square/tests/ac/prog.c +t/problems/square/ver.c diff --git a/t/problems/aminusb/meta.yml b/t/problems/aminusb/meta.yml index 69bcc74..5906488 100644 --- a/t/problems/aminusb/meta.yml +++ b/t/problems/aminusb/meta.yml @@ -10,5 +10,5 @@ olimit: 100 description: The A-B problem, with a verifier files: ver: - format: CPP - name: ver.cpp + format: C + name: ver.c diff --git a/t/problems/aminusb/tests/ac/meta.yml b/t/problems/aminusb/tests/ac/meta.yml index faec381..82086ad 100644 --- a/t/problems/aminusb/tests/ac/meta.yml +++ b/t/problems/aminusb/tests/ac/meta.yml @@ -21,5 +21,5 @@ expected_results: result_text: 20 files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aminusb/tests/ac/prog.cpp b/t/problems/aminusb/tests/ac/prog.c similarity index 83% rename from t/problems/aminusb/tests/ac/prog.cpp rename to t/problems/aminusb/tests/ac/prog.c index 298dd43..371c59a 100644 --- a/t/problems/aminusb/tests/ac/prog.cpp +++ b/t/problems/aminusb/tests/ac/prog.c @@ -1,4 +1,4 @@ -#include +#include int main() { int a,b; diff --git a/t/problems/aminusb/tests/wa/meta.yml b/t/problems/aminusb/tests/wa/meta.yml index 87d6d0e..145e8ec 100644 --- a/t/problems/aminusb/tests/wa/meta.yml +++ b/t/problems/aminusb/tests/wa/meta.yml @@ -21,5 +21,5 @@ expected_results: result_text: Wrong answer files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aminusb/tests/wa/prog.cpp b/t/problems/aminusb/tests/wa/prog.c similarity index 100% rename from t/problems/aminusb/tests/wa/prog.cpp rename to t/problems/aminusb/tests/wa/prog.c diff --git a/t/problems/aminusb/ver.cpp b/t/problems/aminusb/ver.c similarity index 90% rename from t/problems/aminusb/ver.cpp rename to t/problems/aminusb/ver.c index 87cc931..3c0c239 100644 --- a/t/problems/aminusb/ver.cpp +++ b/t/problems/aminusb/ver.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ FILE *output = fdopen(3, "r"); diff --git a/t/problems/aplusb/tests/40/meta.yml b/t/problems/aplusb/tests/40/meta.yml index 80180bd..d9f6509 100644 --- a/t/problems/aplusb/tests/40/meta.yml +++ b/t/problems/aplusb/tests/40/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: 10 files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/40/prog.cpp b/t/problems/aplusb/tests/40/prog.c similarity index 100% rename from t/problems/aplusb/tests/40/prog.cpp rename to t/problems/aplusb/tests/40/prog.c diff --git a/t/problems/aplusb/tests/ac/meta.yml b/t/problems/aplusb/tests/ac/meta.yml index e5fa091..2527e65 100644 --- a/t/problems/aplusb/tests/ac/meta.yml +++ b/t/problems/aplusb/tests/ac/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: 10 files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/ac/prog.cpp b/t/problems/aplusb/tests/ac/prog.c similarity index 83% rename from t/problems/aplusb/tests/ac/prog.cpp rename to t/problems/aplusb/tests/ac/prog.c index f8a683a..69f4bc5 100644 --- a/t/problems/aplusb/tests/ac/prog.cpp +++ b/t/problems/aplusb/tests/ac/prog.c @@ -1,4 +1,4 @@ -#include +#include int main() { int a,b; diff --git a/t/problems/aplusb/tests/compile-error/meta.yml b/t/problems/aplusb/tests/compile-error/meta.yml index d994edb..1ae5db3 100644 --- a/t/problems/aplusb/tests/compile-error/meta.yml +++ b/t/problems/aplusb/tests/compile-error/meta.yml @@ -5,5 +5,5 @@ expected_result: -1 expected_result_text: Compile error files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/compile-error/prog.cpp b/t/problems/aplusb/tests/compile-error/prog.c similarity index 100% rename from t/problems/aplusb/tests/compile-error/prog.cpp rename to t/problems/aplusb/tests/compile-error/prog.c diff --git a/t/problems/aplusb/tests/mle/meta.yml b/t/problems/aplusb/tests/mle/meta.yml index 3228dd4..5a1e58a 100644 --- a/t/problems/aplusb/tests/mle/meta.yml +++ b/t/problems/aplusb/tests/mle/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: Crash (SIGKILL) files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/mle/prog.cpp b/t/problems/aplusb/tests/mle/prog.c similarity index 100% rename from t/problems/aplusb/tests/mle/prog.cpp rename to t/problems/aplusb/tests/mle/prog.c diff --git a/t/problems/aplusb/tests/nzx/meta.yml b/t/problems/aplusb/tests/nzx/meta.yml index 1d5241b..ccaf4c1 100644 --- a/t/problems/aplusb/tests/nzx/meta.yml +++ b/t/problems/aplusb/tests/nzx/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: 'Non-zero exit status: 42' files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/nzx/prog.cpp b/t/problems/aplusb/tests/nzx/prog.c similarity index 100% rename from t/problems/aplusb/tests/nzx/prog.cpp rename to t/problems/aplusb/tests/nzx/prog.c diff --git a/t/problems/aplusb/tests/ole/meta.yml b/t/problems/aplusb/tests/ole/meta.yml index 15f8430..b05d98c 100644 --- a/t/problems/aplusb/tests/ole/meta.yml +++ b/t/problems/aplusb/tests/ole/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: Output Limit Exceeded files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/ole/prog.cpp b/t/problems/aplusb/tests/ole/prog.c similarity index 78% rename from t/problems/aplusb/tests/ole/prog.cpp rename to t/problems/aplusb/tests/ole/prog.c index 92fffb1..197df17 100644 --- a/t/problems/aplusb/tests/ole/prog.cpp +++ b/t/problems/aplusb/tests/ole/prog.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ for(int i=0;i<100;i++) diff --git a/t/problems/aplusb/tests/tle/meta.yml b/t/problems/aplusb/tests/tle/meta.yml index 0abafd3..b66b40e 100644 --- a/t/problems/aplusb/tests/tle/meta.yml +++ b/t/problems/aplusb/tests/tle/meta.yml @@ -24,5 +24,5 @@ expected_results: result_text: Time Limit Exceeded files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/aplusb/tests/tle/prog.cpp b/t/problems/aplusb/tests/tle/prog.c similarity index 100% rename from t/problems/aplusb/tests/tle/prog.cpp rename to t/problems/aplusb/tests/tle/prog.c diff --git a/t/problems/double/tests/wa/meta.yml b/t/problems/double/tests/wa/meta.yml index 286a611..1000f53 100644 --- a/t/problems/double/tests/wa/meta.yml +++ b/t/problems/double/tests/wa/meta.yml @@ -18,5 +18,5 @@ expected_results: result_text: Wrong answer files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/double/tests/wa/prog.cpp b/t/problems/double/tests/wa/prog.c similarity index 81% rename from t/problems/double/tests/wa/prog.cpp rename to t/problems/double/tests/wa/prog.c index 8dd19c7..524d8c9 100644 --- a/t/problems/double/tests/wa/prog.cpp +++ b/t/problems/double/tests/wa/prog.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ char x; diff --git a/t/problems/increment/meta.yml b/t/problems/increment/meta.yml index eb1fa5a..c35e45e 100644 --- a/t/problems/increment/meta.yml +++ b/t/problems/increment/meta.yml @@ -9,5 +9,5 @@ mlimit: 20971520 description: A trivial interactive problem files: ver: - format: CPP - name: ver.cpp + format: C + name: ver.c diff --git a/t/problems/increment/tests/ac/meta.yml b/t/problems/increment/tests/ac/meta.yml index 37dd268..2660535 100644 --- a/t/problems/increment/tests/ac/meta.yml +++ b/t/problems/increment/tests/ac/meta.yml @@ -21,5 +21,5 @@ expected_results: result_text: 20 files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/increment/tests/ac/prog.cpp b/t/problems/increment/tests/ac/prog.c similarity index 87% rename from t/problems/increment/tests/ac/prog.cpp rename to t/problems/increment/tests/ac/prog.c index da549a7..156da0c 100644 --- a/t/problems/increment/tests/ac/prog.cpp +++ b/t/problems/increment/tests/ac/prog.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ for(int i=0;i<100;i++){ diff --git a/t/problems/increment/ver.cpp b/t/problems/increment/ver.c similarity index 86% rename from t/problems/increment/ver.cpp rename to t/problems/increment/ver.c index 3b89262..bdd5820 100644 --- a/t/problems/increment/ver.cpp +++ b/t/problems/increment/ver.c @@ -1,6 +1,6 @@ -#include -#include -#include +#include +#include +#include #include int main(void){ diff --git a/t/problems/square/gen.cpp b/t/problems/square/gen.c similarity index 73% rename from t/problems/square/gen.cpp rename to t/problems/square/gen.c index f5fe75b..324e0c1 100644 --- a/t/problems/square/gen.cpp +++ b/t/problems/square/gen.c @@ -1,5 +1,5 @@ -#include -#include +#include +#include int main(int argc, char **argv){ int testnum = atoi(argv[0]); diff --git a/t/problems/square/meta.yml b/t/problems/square/meta.yml index 330ea65..72f5069 100644 --- a/t/problems/square/meta.yml +++ b/t/problems/square/meta.yml @@ -10,8 +10,8 @@ olimit: 100 description: The X^2 problem files: ver: - format: CPP - name: ver.cpp + format: C + name: ver.c gen: - format: CPP - name: gen.cpp + format: C + name: gen.c diff --git a/t/problems/square/tests/ac/meta.yml b/t/problems/square/tests/ac/meta.yml index 04437d6..e218ef8 100644 --- a/t/problems/square/tests/ac/meta.yml +++ b/t/problems/square/tests/ac/meta.yml @@ -36,5 +36,5 @@ expected_results: result_text: 10 files: prog: - format: CPP - name: prog.cpp + format: C + name: prog.c diff --git a/t/problems/square/tests/ac/prog.cpp b/t/problems/square/tests/ac/prog.c similarity index 80% rename from t/problems/square/tests/ac/prog.cpp rename to t/problems/square/tests/ac/prog.c index 0a66015..041dcc1 100644 --- a/t/problems/square/tests/ac/prog.cpp +++ b/t/problems/square/tests/ac/prog.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ int x; diff --git a/t/problems/square/ver.cpp b/t/problems/square/ver.c similarity index 90% rename from t/problems/square/ver.cpp rename to t/problems/square/ver.c index cb4d031..0f5008c 100644 --- a/t/problems/square/ver.cpp +++ b/t/problems/square/ver.c @@ -1,4 +1,4 @@ -#include +#include int main(void){ FILE *output = fdopen(3, "r"); -- 2.39.2