]> iEval git - gruntmaster-daemon.git/commitdiff
Rename t/problems/increment/int.cpp to ver.cpp
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 22 Jan 2015 21:24:44 +0000 (23:24 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 22 Jan 2015 21:24:44 +0000 (23:24 +0200)
t/problems/increment/int.cpp [deleted file]
t/problems/increment/meta.yml
t/problems/increment/ver.cpp [new file with mode: 0644]

diff --git a/t/problems/increment/int.cpp b/t/problems/increment/int.cpp
deleted file mode 100644 (file)
index 3b89262..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#include<cstdio>
-#include<cstdlib>
-#include<ctime>
-#include<unistd.h>
-
-int main(void){
-       srand(time(NULL));
-       for(int i=0;i<100;i++){
-               int nr = rand() % 100;
-               printf("%d\n", nr);
-               fflush(stdout);
-               int ret;
-               scanf("%d", &ret);
-               if(ret != nr + 1){
-                       fprintf(stderr, "bad ret: %d instead of %d", ret, nr + 1);
-                       return 1;
-               }
-       }
-
-       if(write(4, "20", 2) == -1)
-               perror("write");
-       return 0;
-}
index ebf126a690c24b466c557a95d5b5e94d8f385d15..0e18762759be9b83354a56372e9289d4535f7a80 100644 (file)
@@ -10,4 +10,4 @@ description: A trivial interactive problem
 files:
   ver:
     format: CPP
-    name: int.cpp
+    name: ver.cpp
diff --git a/t/problems/increment/ver.cpp b/t/problems/increment/ver.cpp
new file mode 100644 (file)
index 0000000..3b89262
--- /dev/null
@@ -0,0 +1,23 @@
+#include<cstdio>
+#include<cstdlib>
+#include<ctime>
+#include<unistd.h>
+
+int main(void){
+       srand(time(NULL));
+       for(int i=0;i<100;i++){
+               int nr = rand() % 100;
+               printf("%d\n", nr);
+               fflush(stdout);
+               int ret;
+               scanf("%d", &ret);
+               if(ret != nr + 1){
+                       fprintf(stderr, "bad ret: %d instead of %d", ret, nr + 1);
+                       return 1;
+               }
+       }
+
+       if(write(4, "20", 2) == -1)
+               perror("write");
+       return 0;
+}
This page took 0.030429 seconds and 4 git commands to generate.