#474
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 | #56166052 | Utilizator | |
Fișier | veriflant.cpp | Dimensiune | 749 B |
Data încărcării | 08 Februarie 2025, 16:33 | Scor / rezultat | Eroare de compilare |
veriflant.cpp: In function 'int main()': veriflant.cpp:31:19: error: lvalue required as left operand of assignment a[x][y]==a[y][x]=1; ^ veriflant.cpp:34:5: error: expected '(' before '{' token for{i=1;i<=nr;i++) ^ veriflant.cpp:34:5: error: expected primary-expression before '{' token veriflant.cpp:34:5: error: expected ';' before '{' token veriflant.cpp:45:1: error: expected primary-expression at end of input } ^ veriflant.cpp:45:1: error: expected ';' at end of input veriflant.cpp:45:1: error: expected primary-expression at end of input veriflant.cpp:45:1: error: expected ')' at end of input veriflant.cpp:45:1: error: expected statement at end of input veriflant.cpp:24:12: warning: unused variable 'p' [-Wunused-variable] {int n,m,i,p,j,x,y,v[201],nr; ^ veriflant.cpp:24:14: warning: unused variable 'j' [-Wunused-variable] {int n,m,i,p,j,x,y,v[201],nr; ^ veriflant.cpp:24:20: warning: unused variable 'v' [-Wunused-variable] {int n,m,i,p,j,x,y,v[201],nr; ^ veriflant.cpp:45:1: error: expected '}' at end of input } ^
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ă.