Borderou de evaluare (job #3240363)

Utilizator andrei_botorogeanuBotorogeanu Andrei andrei_botorogeanu Data 14 august 2024 13:46:55
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void ReadGraph_Lists()': main.cpp:26:11: error: 'FIN2' was not declared in this scope; did you mean 'FIN'? 26 | freopen(FIN2, "r", stdin); | ^~~~ | FIN main.cpp: In function 'void BFS_ListsAdj(int)': main.cpp:49:27: error: 'List' was not declared in this scope 49 | struct Node *c = List[ Queue[ first_index ] ]; | ^~~~ main.cpp:53:34: error: invalid use of incomplete type 'struct BFS_ListsAdj(int)::Node' 53 | if(!used[c->data]) { | ^~ main.cpp:49:17: note: forward declaration of 'struct BFS_ListsAdj(int)::Node' 49 | struct Node *c = List[ Queue[ first_index ] ]; | ^~~~ main.cpp:55:47: error: invalid use of incomplete type 'struct BFS_ListsAdj(int)::Node' 55 | Queue[last_index] = c->data; | ^~ main.cpp:49:17: note: forward declaration of 'struct BFS_ListsAdj(int)::Node' 49 | struct Node *c = List[ Queue[ first_index ] ]; | ^~~~ main.cpp:56:32: error: invalid use of incomplete type 'struct BFS_ListsAdj(int)::Node' 56 | used[c->data] = 1; | ^~ main.cpp:49:17: note: forward declaration of 'struct BFS_ListsAdj(int)::Node' 49 | struct Node *c = List[ Queue[ first_index ] ]; | ^~~~ main.cpp:59:29: error: invalid use of incomplete type 'struct BFS_ListsAdj(int)::Node' 59 | c = c->next; | ^~ main.cpp:49:17: note: forward declaration of 'struct BFS_ListsAdj(int)::Node' 49 | struct Node *c = List[ Queue[ first_index ] ]; | ^~~~ main.cpp: In function 'void display_graph_list_adj()': main.cpp:110:27: error: 'List' was not declared in this scope 110 | struct Node *c = List[ i ]; | ^~~~ main.cpp:116:33: error: invalid use of incomplete type 'struct display_graph_list_adj()::Node' 116 | printf("%d ", c->data); | ^~ main.cpp:110:17: note: forward declaration of 'struct display_graph_list_adj()::Node' 110 | struct Node *c = List[ i ]; | ^~~~ main.cpp:118:23: error: invalid use of incomplete type 'struct display_graph_list_adj()::Node' 118 | c = c->next; | ^~ main.cpp:110:17: note: forward declaration of 'struct display_graph_list_adj()::Node' 110 | struct Node *c = List[ i ]; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?