Borderou de evaluare (job #1473418)

Utilizator raulvasileRaul Vasile raulvasile Data 19 august 2015 13:16:16
Problema Ciurul lui Eratosthenes Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:47:16: warning: assignment from incompatible pointer type [enabled by default] vector = (int *) calloc(n + 1, sizeof(short int)); ^ user.c:49:9: warning: passing argument 2 of ‘solve’ from incompatible pointer type [enabled by default] fprintf(output, "%d\n", solve(n, vector)); ^ user.c:9:5: note: expected ‘int *’ but argument is of type ‘short int *’ int solve(int n, int* vector) { ^ user.c:45:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(input, "%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbIncorect0
20ms272kbIncorect0
30ms392kbOK10
40ms2196kbKilled by signal 11(SIGSEGV).0
50ms2388kbKilled by signal 11(SIGSEGV).0
64ms2888kbKilled by signal 11(SIGSEGV).0
74msDepăşitMemory limit exceeded.0
84msDepăşitMemory limit exceeded.0
94msDepăşitMemory limit exceeded.0
104msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?