#1318
Bipartit1mare
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 | #51290104 | Utilizator | |
Fișier | bipartit1mare.cpp | Dimensiune | 1.50 KB |
Data încărcării | 04 Iunie 2024, 13:21 | Scor / rezultat | Eroare de compilare |
bipartit1mare.cpp:1:2: error: stray '#' in program d#include <bits/stdc++.h> ^ bipartit1mare.cpp:1:1: error: 'd' does not name a type d#include <bits/stdc++.h> ^ bipartit1mare.cpp:3:1: error: 'ifstream' does not name a type ifstream fin ("bipartit1mare.in"); ^ bipartit1mare.cpp:4:1: error: 'ofstream' does not name a type ofstream fout ("bipartit1mare.out"); ^ bipartit1mare.cpp:9:1: error: 'set' does not name a type set <int> G[lmax];///major time save ^ bipartit1mare.cpp:11:1: error: 'queue' does not name a type queue <int> q; ^ bipartit1mare.cpp: In function 'void parcurg(int)': bipartit1mare.cpp:15:5: error: 'q' was not declared in this scope q.push(start); ^ bipartit1mare.cpp:22:24: error: 'G' was not declared in this scope for(auto aux : G[nod]) ^ bipartit1mare.cpp: In function 'int main()': bipartit1mare.cpp:40:5: error: 'fin' was not declared in this scope fin>>n>>m; ^ bipartit1mare.cpp:46:9: error: 'G' was not declared in this scope G[x].insert(y); ^ bipartit1mare.cpp:55:21: error: 'fout' was not declared in this scope if(valid==false)fout<<"NU"; ^ bipartit1mare.cpp:58:9: error: 'fout' was not declared in this scope fout<<"DA\n"; ^ bipartit1mare.cpp:73:5: error: 'fout' was not declared in this scope fout.close(); ^
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ă.