Borderou de evaluare (job #2728735)

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

Raport evaluator

Compilare: main.c: In function 'op_add': main.c:55:46: warning: right-hand operand of comma expression has no effect [-Wunused-value] pos = binary_search(n, b->members, b->count), i; ^ main.c:61:16: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] b->members = realloc(b->members, b->capacity<<3); ^~~~~~~ main.c:61:16: warning: incompatible implicit declaration of built-in function 'realloc' main.c:61:16: note: include '<stdlib.h>' or provide a declaration of 'realloc' main.c: At top level: main.c:99:6: warning: return type of 'main' is not 'int' [-Wmain] void main() { ^~~~ main.c: In function 'main': main.c:107:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] hashtable[i] = malloc(sizeof(bucket)); ^~~~~~ main.c:107:18: warning: incompatible implicit declaration of built-in function 'malloc' main.c:107:18: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:108:27: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration] hashtable[i]->members = calloc(64, sizeof(unsigned int)); ^~~~~~ main.c:108:27: warning: incompatible implicit declaration of built-in function 'calloc' main.c:108:27: note: include '<stdlib.h>' or provide a declaration of 'calloc' main.c:124:9: warning: format not a string literal and no format arguments [-Wformat-security] printf(output); ^~~~~~ main.c:100:21: warning: unused variable 'flag' [-Wunused-variable] unsigned int n, o, flag; ^~~~ At top level: main.c:7:45: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) unsigned int lowbias32(unsigned int x) { ^~~~~~~~~ main.c: In function 'main': main.c:101:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.in", "r", stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:102:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.out", "w", stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:113:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^~~~~~~~~~~~~~~ main.c:117: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
18ms2490kbOK1010
28ms2490kbOK1010
38ms2490kbOK1010
473ms2621kbOK1030
587ms2490kbOK10
695ms2621kbOK10
7203ms2895kbOK1010
8467ms2883kbOK1030
9812ms7864kbOK10
10888ms5767kbOK10
Punctaj total100

Ceva nu functioneaza?