]> iEval git - gruntmaster-daemon.git/blob - t/problems/square/ver.c
Test pipes when running interactive programs before executing them
[gruntmaster-daemon.git] / t / problems / square / ver.c
1 #include <stdio.h>
2
3 int main(void){
4 FILE *output = fdopen(3, "r");
5 int x, ret;
6 scanf("%d", &x);
7 fscanf(output, "%d", &ret);
8 if(x*x == ret){
9 printf("10");
10 return 0;
11 } else
12 return 1;
13 }
14
This page took 0.037463 seconds and 4 git commands to generate.