Borderou de evaluare (job #2202442)

Utilizator Robert_VRVRobert Vadastreanu Robert_VRV Data 8 mai 2018 19:43:50
Problema Ratina Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:7:3: error: unknown type name ‘Node’ Node* parent; ^~~~ user.c:8:3: error: unknown type name ‘Node’ Node* children[SIGMA]; ^~~~ user.c:8:9: error: variably modified ‘children’ at file scope Node* children[SIGMA]; ^~~~~~~~ user.c:12:1: error: unknown type name ‘Node’ Node* newNode(Node* parent = NULL) { ^~~~ user.c:12:1: note: use ‘struct’ keyword to refer to the type user.c:12:15: error: unknown type name ‘Node’ Node* newNode(Node* parent = NULL) { ^~~~ user.c:24:1: error: unknown type name ‘Node’ Node* insert(Node* trie, char* s) { ^~~~ user.c:24:1: note: use ‘struct’ keyword to refer to the type user.c:24:14: error: unknown type name ‘Node’ Node* insert(Node* trie, char* s) { ^~~~ user.c:34:1: error: unknown type name ‘Node’ Node* lca(Node* u, Node* v) { ^~~~ user.c:34:1: note: use ‘struct’ keyword to refer to the type user.c:34:11: error: unknown type name ‘Node’ Node* lca(Node* u, Node* v) { ^~~~ user.c:34:20: error: unknown type name ‘Node’ Node* lca(Node* u, Node* v) { ^~~~ user.c: In function ‘main’: user.c:52:3: error: unknown type name ‘Node’ Node* lambda = newNode(); ^~~~ user.c:52:3: note: use ‘struct’ keyword to refer to the type user.c:52:18: warning: implicit declaration of function ‘newNode’ [-Wimplicit-function-declaration] Node* lambda = newNode(); ^~~~~~~ user.c:52:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion] user.c:53:3: error: unknown type name ‘Node’ Node* words[1 + n]; ^~~~ user.c:53:3: note: use ‘struct’ keyword to refer to the type user.c:58:16: warning: implicit declaration of function ‘insert’ [-Wimplicit-function-declaration] words[i] = insert(lambda, s); ^~~~~~ user.c:58:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]

Ceva nu functioneaza?