Show More
Commit Description:
fix logg() in compile, add more logging to engine.rb when the problem cannot be found
Commit Description:
fix logg() in compile, add more logging to engine.rb when the problem cannot be found
References:
File last commit:
Show/Diff file:
Action:
test/data/add_too_much_memory_dynamic.c
| 21 lines
| 262 B
| text/x-c
| CLexer
|
|
r23 | #include <stdio.h> | ||
#include <stdlib.h> | ||||
int main() | ||||
{ | ||||
int a,b; | ||||
|
r75 | int r; | ||
|
r23 | char *huge_array; | ||
|
r75 | r = scanf("%d %d",&a,&b); | ||
|
r23 | |||
huge_array = (char *)malloc(5000000); | ||||
if(huge_array==NULL) | ||||
printf("NO!"); | ||||
else | ||||
printf("%d\n",a+b); | ||||
|
r137 | |||
a+=r; | ||||
|
r23 | return 0; | ||
} | ||||