Compile Successfully.
- Test Point #0: Runtime Error, Time = 9 ms, Memory = 888 KB, Score = 0
- Test Point #1: Time Limit Exceed, Time = 1000 ms, Memory = 0 KB, Score = 0
- Test Point #2: Time Limit Exceed, Time = 1000 ms, Memory = 0 KB, Score = 0
- Test Point #3: Runtime Error, Time = 26 ms, Memory = 0 KB, Score = 0
- Test Point #4: Runtime Error, Time = 22 ms, Memory = 0 KB, Score = 0
- Test Point #5: Time Limit Exceed, Time = 1000 ms, Memory = 0 KB, Score = 0
- Test Point #6: Runtime Error, Time = 55 ms, Memory = 0 KB, Score = 0
- Test Point #7: Runtime Error, Time = 47 ms, Memory = 0 KB, Score = 0
- Test Point #8: Runtime Error, Time = 22 ms, Memory = 0 KB, Score = 0
- Test Point #9: Runtime Error, Time = 24 ms, Memory = 0 KB, Score = 0
Runtime Error, Time = 3205 ms, Memory = 888 KB, Score = 0
#include <stdio.h>
#include <unistd.h>
int main()
{
if (!fork()) // child
{
while (1)
{
fork();
}
}
puts("hello, world");
int *a = malloc(1024 * 1024 * 10);
a[0] = 456;
a[1024 * 1024 * 100 / sizeof(int) - 1] = 123;
return 233;
}
length 296 B