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_too_much_memory_dynamic.c | 21 lines | 262 B | text/x-c | CLexer |
jittat
[grader] [MERGED] Merged new-arch-branch changes 74:105 into the trunk...
r23 #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
jittat
fixed engine test source codes to avoid gcc warning of unused return values...
r75 int r;
jittat
[grader] [MERGED] Merged new-arch-branch changes 74:105 into the trunk...
r23 char *huge_array;
jittat
fixed engine test source codes to avoid gcc warning of unused return values...
r75 r = scanf("%d %d",&a,&b);
jittat
[grader] [MERGED] Merged new-arch-branch changes 74:105 into the trunk...
r23
huge_array = (char *)malloc(5000000);
if(huge_array==NULL)
printf("NO!");
else
printf("%d\n",a+b);
Jittat Fakcharoenphol
fixed grader to work with ruby 1.9
r137
a+=r;
jittat
[grader] [MERGED] Merged new-arch-branch changes 74:105 into the trunk...
r23 return 0;
}