Show More
Commit Description:
add a new modified sandbox "box"...
Commit Description:
add a new modified sandbox "box" The original file was pulled from moe (git://git.ucw.cz/moe.git) by Martin Mares's commit on Sun Jul 29 23:53:56 2012 +0200 The modification is to make it separately compilable and add more option to specify additional argument to the program. (Please see usage guide) run `gcc -o box -std=c99 box64-new.c` to compile.
File last commit:
Show/Diff file:
Action:
test/data/add_fail_test_case_1.c | 16 lines | 180 B | text/x-c | CLexer |
#include <stdio.h>
int main()
{
int a,b;
int r;
r = scanf("%d %d",&a,&b);
if((a==1) && (b==1))
printf("100\n");
else
printf("%d\n",a+b);
a+=r;
return 0;
}