#472
Bipartit1
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 | Bipartit1 | Operații I/O |
bipartit1.in /bipartit1.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55051479 | Utilizator | |
Fișier | bipartit1.cpp | Dimensiune | 1.46 KB |
Data încărcării | 18 Decembrie 2024, 18:07 | Scor / rezultat | Eroare de compilare |
bipartit1.cpp:28:17: warning: missing terminating " character [enabled by default] fout << "DA ^ bipartit1.cpp:28:9: error: missing terminating " character fout << "DA ^ bipartit1.cpp:29:1: warning: missing terminating " character [enabled by default] "; ^ bipartit1.cpp:29:1: error: missing terminating " character bipartit1.cpp:36:17: warning: missing terminating " character [enabled by default] fout << " ^ bipartit1.cpp:36:9: error: missing terminating " character fout << " ^ bipartit1.cpp:37:1: warning: missing terminating " character [enabled by default] "; ^ bipartit1.cpp:37:1: error: missing terminating " character bipartit1.cpp:41:17: warning: missing terminating " character [enabled by default] fout << " ^ bipartit1.cpp:41:9: error: missing terminating " character fout << " ^ bipartit1.cpp:42:1: warning: missing terminating " character [enabled by default] "; ^ bipartit1.cpp:42:1: error: missing terminating " character bipartit1.cpp: In function 'void verif()': bipartit1.cpp:30:9: error: expected primary-expression before 'int' int p=0, q = 1; ^ bipartit1.cpp:30:9: error: expected ';' before 'int' bipartit1.cpp:32:13: error: 'p' was not declared in this scope p = 1, q = 0; ^ bipartit1.cpp:32:20: error: 'q' was not declared in this scope p = 1, q = 0; ^ bipartit1.cpp:34:24: error: 'p' was not declared in this scope if(x[i] == p) ^ bipartit1.cpp:38:9: error: expected primary-expression before 'for' for(int i =1 ; i <= n ; ++i) ^ bipartit1.cpp:38:9: error: expected ';' before 'for' bipartit1.cpp:38:24: error: 'i' was not declared in this scope for(int i =1 ; i <= n ; ++i) ^ bipartit1.cpp:38:36: error: expected ';' before ')' token for(int i =1 ; i <= n ; ++i) ^ bipartit1.cpp:43:15: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int') gasit = 1; ^ bipartit1.cpp:43:15: note: candidate is: In file included from /usr/include/c++/4.8/iostream:39:0, from bipartit1.cpp:1: /usr/include/c++/4.8/ostream:58:11: note: std::basic_ostream<char>& std::basic_ostream<char>::operator=(const std::basic_ostream<char>&) <deleted> class basic_ostream : virtual public basic_ios<_CharT, _Traits> ^ /usr/include/c++/4.8/ostream:58:11: note: no known conversion for argument 1 from 'int' to 'const std::basic_ostream<char>&'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bipartit1 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ă.