#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 | #16051519 | Utilizator | |
Fișier | veriflant.cpp | Dimensiune | 816 B |
Data încărcării | 30 Mai 2019, 12:18 | Scor / rezultat | Eroare de compilare |
veriflant.cpp:10:1: error: 'muchie' does not name a type muchie v[100]; ^ veriflant.cpp: In function 'void citire()': veriflant.cpp:15:14: error: 'v' was not declared in this scope cin>>v[i].x>>v[i].y; ^ veriflant.cpp:19:14: error: 'p' was not declared in this scope cin>>p; ^ veriflant.cpp:22:18: error: 'x' was not declared in this scope cin>>x; ^ veriflant.cpp:28:18: error: 'v' was not declared in this scope if(u[v[i].x]==0 || u[v[i].y]==0) ^ veriflant.cpp:37:24: error: 'v' was not declared in this scope if(v[a].x==v[b].x && v[a].) ^ veriflant.cpp:37:47: error: expected unqualified-id before ')' token if(v[a].x==v[b].x && v[a].) ^ veriflant.cpp:38:9: error: expected primary-expression before '}' token } ^ veriflant.cpp:38:9: error: expected ';' before '}' token veriflant.cpp: At global scope: veriflant.cpp:7:2: warning: 'muchie' defined but not used [-Wunused-variable] }muchie; ^
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ă.