Borderou de evaluare (job #2728504)

Utilizator om6gaLungu Adrian om6ga Data 23 martie 2021 12:54:48
Problema Hashuri Status done
Runda Arhiva educationala Compilator c-32 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.c: In function 'op_add': main.c:62:16: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] b->members = realloc(b->members, b->capacity<<3); ^~~~~~~ main.c:62:16: warning: incompatible implicit declaration of built-in function 'realloc' main.c:62:16: note: include '<stdlib.h>' or provide a declaration of 'realloc' main.c:56:61: warning: unused variable 'i' [-Wunused-variable] unsigned int pos = binary_search(n, b->members, b->count), i; ^ main.c: At top level: main.c:101:6: warning: return type of 'main' is not 'int' [-Wmain] void main() { ^~~~ main.c: In function 'main': main.c:109:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] hashtable[i] = malloc(sizeof(bucket)); ^~~~~~ main.c:109:18: warning: incompatible implicit declaration of built-in function 'malloc' main.c:109:18: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:110:27: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] hashtable[i]->members = calloc(1300, sizeof(unsigned int)); ^~~~~~ main.c:110:27: warning: incompatible implicit declaration of built-in function 'calloc' main.c:110:27: note: include '<stdlib.h>' or provide a declaration of 'calloc' main.c:102:21: warning: unused variable 'flag' [-Wunused-variable] unsigned int n, o, flag; ^~~~ main.c:103:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.in", "r", stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:104:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.out", "w", stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:115:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^~~~~~~~~~~~~~~ main.c:119:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%u %u", &o, &n); ^~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
16ms2752kbIncorect00
28ms2752kbKilled by Signal 1100
38ms2752kbKilled by Signal 1100
478ms2883kbOK100
57ms2752kbKilled by Signal 110
6103ms2883kbOK10
7256ms3014kbOK1010
8497ms3014kbOK100
91157ms5636kbOK10
101201ms3735kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?