Borderou de evaluare (job #1387167)

Utilizator HDT_TibiHudema Dumitru Tiberiu HDT_Tibi Data 13 martie 2015 19:45:43
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:1: error: ‘queue’ does not name a type queue<int> q; ^ user.cpp: In function ‘void add(int, int)’: user.cpp:19:11: error: cannot convert ‘Nod’ to ‘Nod*’ in assignment p->leg=L[x]; ^ user.cpp:21:9: error: no match for ‘operator=’ (operand types are ‘Nod’ and ‘nod {aka Nod*}’) L[x]=p; ^ user.cpp:21:9: note: candidates are: user.cpp:8:8: note: Nod& Nod::operator=(const Nod&) struct Nod{int inf;Nod*leg;}L[100001]; ^ user.cpp:8:8: note: no known conversion for argument 1 from ‘nod {aka Nod*}’ to ‘const Nod&’ user.cpp:8:8: note: Nod& Nod::operator=(Nod&&) user.cpp:8:8: note: no known conversion for argument 1 from ‘nod {aka Nod*}’ to ‘Nod&&’ user.cpp: In function ‘void citire()’: user.cpp:29:14: error: ‘x’ was not declared in this scope fin>>x>>y; ^ user.cpp:29:17: error: ‘y’ was not declared in this scope fin>>x>>y; ^ user.cpp: In function ‘void bf(int)’: user.cpp:38:5: error: ‘q’ was not declared in this scope q.push(x); ^ user.cpp:41:22: error: cannot convert ‘Nod’ to ‘nod {aka Nod*}’ in initialization for(nod w=L[x];w;w=w->leg) ^

Ceva nu functioneaza?