#4061
LantQ
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.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #41644774 | Utilizator | |
Fișier | lantq.cpp | Dimensiune | 974 B |
Data încărcării | 31 Ianuarie 2023, 09:23 | Scor / rezultat | Eroare de compilare |
lantq.cpp:6:12: error: 'p' does not name a type int X[50]; p[50]; ^ lantq.cpp: In function 'void afisare(int)': lantq.cpp:10:24: error: 'x' was not declared in this scope fout<<x[1]<<" "; ^ lantq.cpp: In function 'void back(int)': lantq.cpp:23:13: error: expected unqualified-id before '=' token for (int=1; i<=n; i++) ^ lantq.cpp:23:13: error: expected ';' before '=' token lantq.cpp:23:13: error: expected primary-expression before '=' token lantq.cpp:23:17: error: 'i' was not declared in this scope for (int=1; i<=n; i++) ^ lantq.cpp:23:21: error: expected ')' before ';' token for (int=1; i<=n; i++) ^ lantq.cpp:23:23: error: 'i' was not declared in this scope for (int=1; i<=n; i++) ^ lantq.cpp:23:26: error: expected ';' before ')' token for (int=1; i<=n; i++) ^ lantq.cpp:36:5: error: a function-definition is not allowed here before '{' token { ^ lantq.cpp:49:5: error: expected '}' at end of input } ^
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ă.