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.
References:
File last commit:
Show/Diff file:
Action:
test/data/test_run_stat.c
| 32 lines
| 405 B
| text/x-c
| CLexer
|
|
r42 | /* | ||
LANG: C | ||||
*/ | ||||
#include <stdio.h> | ||||
#include <stdlib.h> | ||||
int main() | ||||
{ | ||||
int a,b,d; | ||||
int i,j; | ||||
char *c = malloc(100000); | ||||
|
r75 | int r; | ||
|
r42 | |||
|
r75 | r = scanf("%d %d",&a,&b); | ||
|
r42 | d = a+b; | ||
// printf("%d\n",a+b); | ||||
for(j=0; j<1; j++) | ||||
for(i=0; i<100000000; i++) { | ||||
b+=a; | ||||
a++; | ||||
} | ||||
if((c!=NULL) || (b<100)) | ||||
b++; | ||||
if(b==100) | ||||
printf("hello"); | ||||
else | ||||
printf("%d\n",d); | ||||
|
r137 | |||
a += r; | ||||
|
r42 | return 0; | ||
} | ||||