#474
VerifLant
Se dă lista muchiilor unui graf neorientat cu n
vârfuri și o succesiune de k
vârfuri. Să se verifice dacă vârfurile din succesiune formează un lanț.
Problema | VerifLant | Operații I/O |
veriflant.in /veriflant.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #42851136 | Utilizator | |
Fișier | veriflant.cpp | Dimensiune | 1.02 KB |
Data încărcării | 20 Martie 2023, 11:37 | Scor / rezultat | Eroare de compilare |
veriflant.cpp:2:7: error: expected nested-name-specifier before 'namepsace' using namepsace std; ^ veriflant.cpp:2:7: error: 'namepsace' has not been declared veriflant.cpp:2:17: error: expected ';' before 'std' using namepsace std; ^ veriflant.cpp:2:17: error: 'std' does not name a type veriflant.cpp:4:1: error: 'ifstream' does not name a type ifstream fin ("veriflant.in"); ^ veriflant.cpp:5:1: error: 'ofstream' does not name a type ofstream fout ("veriflant.out"); ^ veriflant.cpp: In function 'int main()': veriflant.cpp:10:5: error: 'fin' was not declared in this scope fin >> n >> m; ^ veriflant.cpp:32:17: error: 'fout' was not declared in this scope fout << "NU"; ^ veriflant.cpp:46:17: error: 'fout' was not declared in this scope fout << "NEELEMENTAR"; ^ veriflant.cpp:50:9: error: 'fout' was not declared in this scope fout << "ELEMENTAR"; ^ veriflant.cpp:9:57: warning: unused variable 'el' [-Wunused-variable] int n, m, x, y, a[101][101], l[201], k, lg, s, okl, el; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VerifLant 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ă.