#1318
Se dă lista muchiilor unui graf neorientat cu n vârfuri, etichetate de la 1 la n. Să se verifice dacă graful este bipartit.
| Problema | Bipartit1mare | Operații I/O |
bipartit1mare.in/bipartit1mare.out
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64256256 | Utilizator | |
| Fișier | bipartit1mare.cpp | Dimensiune | 1.36 KB |
| Data încărcării | 26 Aprilie 2026, 16:15 | Scor/rezultat | Eroare de compilare |
bipartit1mare.cpp: In function ‘void afiseaza()’: bipartit1mare.cpp:44:14: error: expected primary-expression before ‘if’ 44 | (if(st[i]==2)) | ^~ bipartit1mare.cpp:44:14: error: expected ‘)’ before ‘if’ 44 | (if(st[i]==2)) | ~^~ | ) bipartit1mare.cpp:53:1: error: a function-definition is not allowed here before ‘{’ token 53 | { | ^ bipartit1mare.cpp:66:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 66 | int main() | ^~ bipartit1mare.cpp:66:9: note: remove parentheses to default-initialize a variable 66 | int main() | ^~ | -- bipartit1mare.cpp:66:9: note: or replace parentheses with braces to value-initialize a variable bipartit1mare.cpp:67:1: error: a function-definition is not allowed here before ‘{’ token 67 | { | ^ bipartit1mare.cpp:75:2: error: expected ‘}’ at end of input 75 | } | ^ bipartit1mare.cpp:28:1: note: to match this ‘{’ 28 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bipartit1mare 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ă.