Borderou de evaluare (job #2594835)
| Utilizator | Data | 6 aprilie 2020 18:00:24 | |
|---|---|---|---|
| Problema | Sortare topologica | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:7:5: error: unknown type name 'LinkedList'
LinkedList **neighbors; /* Listele de adiacenta ale grafului */
^~~~~~~~~~
main.c: In function 'clear_list_graph':
main.c:71:9: warning: implicit declaration of function 'free_list' [-Wimplicit-function-declaration]
free_list(&graph->neighbors[i]);
^~~~~~~~~
main.c: At top level:
main.c:76:6: warning: conflicting types for 'free_list'
void free_list(LinkedList **pp_list) {
^~~~~~~~~
main.c:71:9: note: previous implicit declaration of 'free_list' was here
free_list(&graph->neighbors[i]);
^~~~~~~~~
main.c: In function 'free_list':
main.c:83:11: warning: implicit declaration of function 'get_size' [-Wimplicit-function-declaration]
while(get_size(*pp_list) > 0) {
^~~~~~~~
main.c:84:20: warning: implicit declaration of function 'remove_nth_node' [-Wimplicit-function-declaration]
currNode = remove_nth_node(*pp_list, 0);
^~~~~~~~~~~~~~~
main.c:84:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
currNode = remove_nth_node(*pp_list, 0);
^
main.c: In function 'dfs_topo_sort':
main.c:97:36: error: request for member 'head' in something not a structure or union
for(Node* it = lg->neighbors[x]->head; it; it = it->next){
^~
main.c: In function 'topo_sort':
main.c:109:5: warning: implicit declaration of function 'init_list' [-Wimplicit-function-declaration]
init_list(&result);
^~~~~~~~~
main.c:116:5: warning: implicit declaration of function 'print_int_linkedlist' [-Wimplicit-function-declaration]
print_int_linkedlist(&result);
^~~~~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:121:15: error: 'MAX_NODES' undeclared (first use in this function)
int color[MAX_NODES];
^~~~~~~~~
main.c:121:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:127:5: warning: implicit declaration of function 'init_list_graph' [-Wimplicit-function-declaration]
init_list_graph(lg, nodes);
^~~~~~~~~~~~~~~
main.c:134:9: warning: implicit declaration of function 'add_edge_list_graph' [-Wimplicit-function-declaration]
add_edge_list_graph(lg, x[i], &y[i]);
^~~~~~~~~~~~~~~~~~~
main.c:123:23: warning: unused variable 'y' [-Wunused-variable]
int x[MAX_NODES], y[MAX_NODES];
^
main.c:123:9: warning: unused variable 'x' [-Wunused-variable]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
