Show More
Commit Description:
add more logging
Commit Description:
add more logging
References:
File last commit:
Show/Diff file:
Action:
test/data/test_run_stat.c | 32 lines | 405 B | text/x-c | CLexer |
jittat
[grader] added memory usage status report, better running time report...
r42 /*
LANG: C
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,d;
int i,j;
char *c = malloc(100000);
jittat
fixed engine test source codes to avoid gcc warning of unused return values...
r75 int r;
jittat
[grader] added memory usage status report, better running time report...
r42
jittat
fixed engine test source codes to avoid gcc warning of unused return values...
r75 r = scanf("%d %d",&a,&b);
jittat
[grader] added memory usage status report, better running time report...
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);
Jittat Fakcharoenphol
fixed grader to work with ruby 1.9
r137
a += r;
jittat
[grader] added memory usage status report, better running time report...
r42 return 0;
}