#4061
Se dă un graf neorientat cu n vârfuri și un număr natural q. Să se determine toate lanțurile elementare formate din cel puțin o muchie, cu extremitatea finală în vârful q.
| Problema | LantQ | Operații I/O |
lantq.in/lantq.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64373031 | Utilizator | |
| Fișier | lantq.cpp | Dimensiune | 1.01 KB |
| Data încărcării | 04 Mai 2026, 10:05 | Scor/rezultat | Eroare de compilare |
lantq.cpp: In function ‘int main()’: lantq.cpp:47:18: error: ‘e1’ was not declared in this scope 47 | fin>>e1>>e2; | ^~ lantq.cpp:47:22: error: ‘e2’ was not declared in this scope 47 | fin>>e1>>e2; | ^~ lantq.cpp:46:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 46 | for (int j=1; j<=n;j++) | ^~~ lantq.cpp:48:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 48 | a[e1][e2]=a[e2][e1]=1; | ^ lantq.cpp:48:15: error: ‘e1’ was not declared in this scope 48 | a[e1][e2]=a[e2][e1]=1; | ^~ lantq.cpp:48:19: error: ‘e2’ was not declared in this scope 48 | a[e1][e2]=a[e2][e1]=1; | ^~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LantQ 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ă.