Borderou de evaluare (job #1990613)

Utilizator KeitaroAbderus Alastor Keitaro Data 12 iunie 2017 18:54:53
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.c: In function ‘eratosthenes’: user.c:4:2: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] int *a = malloc(2000005 * sizeof(int)); ^ user.c:4:11: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default] int *a = malloc(2000005 * sizeof(int)); ^ user.c:15:2: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(a); ^ user.c:15:2: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default] user.c: In function ‘main’: user.c:22:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciur.in", "r", stdin); ^ user.c:23:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciur.out", "w", stdout); ^ user.c:24:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms268kbOK10
30ms260kbOK10
448msDepăşitMemory limit exceeded.0
548msDepăşitMemory limit exceeded.0
648msDepăşitMemory limit exceeded.0
748msDepăşitMemory limit exceeded.0
848msDepăşitMemory limit exceeded.0
948msDepăşitMemory limit exceeded.0
1048msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?