Borderou de evaluare (job #2526310)

Utilizator theprdvtheprdv theprdv Data 18 ianuarie 2020 14:39:53
Problema Hashuri Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:11:3: error: unknown type name 'hash_line' hash_line *next; ^~~~~~~~~ main.c: In function 'find_val': main.c:7:10: error: unknown type name 'hash_line' for (hash_line *it = (G); it; it = it->next) ^ main.c:17:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:7:10: note: use 'struct' keyword to refer to the type for (hash_line *it = (G); it; it = it->next) ^ main.c:17:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:7:26: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] for (hash_line *it = (G); it; it = it->next) ^ main.c:17:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:7:42: error: request for member 'next' in something not a structure or union for (hash_line *it = (G); it; it = it->next) ^ main.c:17:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:18:11: error: request for member 'key' in something not a structure or union if (it->key == key) ^~ main.c: In function 'insert_val': main.c:7:10: error: unknown type name 'hash_line' for (hash_line *it = (G); it; it = it->next) ^ main.c:26:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:7:10: note: use 'struct' keyword to refer to the type for (hash_line *it = (G); it; it = it->next) ^ main.c:26:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ main.c:7:26: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] for (hash_line *it = (G); it; it = it->next) ^ main.c:26:3: note: in expansion of macro 'foreach' foreach (hash_table[list]) ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?