#541
Se dă lista muchiilor unui graf neorientat și trei vârfuri p q r . Să se determine un lanț cu extremitățile p q care conține vârful r.
| Problema | Lant1 | Operații I/O |
lant1.in/lant1.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63715099 | Utilizator | |
| Fișier | lant1.cpp | Dimensiune | 908 B |
| Data încărcării | 16 Martie 2026, 13:47 | Scor/rezultat | Eroare de compilare |
lant1.cpp:47:5: error: stray '\303' in program çitire(); ^ lant1.cpp:47:5: error: stray '\247' in program lant1.cpp: In function 'void bfs(int)': lant1.cpp:18:5: error: 'queue' was not declared in this scope queue<int>q; ^ lant1.cpp:18:11: error: expected primary-expression before 'int' queue<int>q; ^ lant1.cpp:18:11: error: expected ';' before 'int' lant1.cpp:19:7: error: request for member 'push' in 'q', which is of non-class type 'int' q.push(vf); ^ lant1.cpp:22:14: error: request for member 'empty' in 'q', which is of non-class type 'int' while(!q.empty()) ^ lant1.cpp:25:13: error: request for member 'front' in 'q', which is of non-class type 'int' x=q.front(); ^ lant1.cpp:26:11: error: request for member 'pop' in 'q', which is of non-class type 'int' q.pop(); ^ lant1.cpp:30:15: error: request for member 'push' in 'q', which is of non-class type 'int' q.push(i); ^ lant1.cpp: In function 'int main()': lant1.cpp:47:13: error: 'itire' was not declared in this scope çitire(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Lant1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.