Borderou de evaluare (job #2170706)

Utilizator PinkiePie1189Preoteasa Mircea-Costin PinkiePie1189 Data 15 martie 2018 09:29:17
Problema Dragoni Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:9:1: warning: useless storage class specifier in empty declaration }; ^ user.c:10:22: error: unknown type name ‘Edge’ void Adauga(int list,Edge x); ^ user.c:15:10: error: unknown type name ‘Edge’ void add(Edge val); ^ user.c:23:1: error: unknown type name ‘Edge’ Edge val[2*MAXE+1]; ^ user.c:28:1: error: unknown type name ‘Edge’ Edge heap[MAXV*MAXV+1]; ^ user.c: In function ‘main’: user.c:44:9: warning: implicit declaration of function ‘Adauga’ [-Wimplicit-function-declaration] Adauga(x,{y,cost}); ^ user.c:44:18: error: expected expression before ‘{’ token Adauga(x,{y,cost}); ^ user.c:45:18: error: expected expression before ‘{’ token Adauga(y,{x,cost}); ^ user.c:64:9: warning: implicit declaration of function ‘add’ [-Wimplicit-function-declaration] add({1,1}); ^ user.c:64:13: error: expected expression before ‘{’ token add({1,1}); ^ user.c: At top level: user.c:80:22: error: unknown type name ‘Edge’ void Adauga(int list,Edge x) ^ user.c: In function ‘dfs’: user.c:91:23: error: request for member ‘dst’ in something not a structure or union int vec=val[p].dst; ^ user.c:92:23: error: request for member ‘cost’ in something not a structure or union int cst=val[p].cost; ^ user.c: At top level: user.c:106:10: error: unknown type name ‘Edge’ void add(Edge val) ^ user.c: In function ‘rmv’: user.c:115:37: error: request for member ‘dst’ in something not a structure or union if(N>1 && shortestPath[heap[nod].dst][heap[nod].cost] < shortestPath[heap[nod/2].dst][heap[nod/2].cost]) ^

Ceva nu functioneaza?