#437
Conex
Se dă lista muchiilor unui graf neorientat. Să se verifice dacă graful este sau nu conex.
Problema | Conex | Operații I/O |
conex.in /conex.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22217170 | Utilizator | |
Fișier | conex.cpp | Dimensiune | 576 B |
Data încărcării | 30 Martie 2020, 12:54 | Scor / rezultat | Eroare de compilare |
conex.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("conez.in"); ^ conex.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("conex.out"); ^ conex.cpp: In function 'bool conex()': conex.cpp:8:2: error: 'queue' was not declared in this scope queue<int>q; ^ conex.cpp:8:2: note: suggested alternative: In file included from /usr/include/c++/4.8/queue:64:0, from conex.cpp:2: /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: 'std::queue' class queue ^ conex.cpp:8:8: error: expected primary-expression before 'int' queue<int>q; ^ conex.cpp:8:8: error: expected ';' before 'int' conex.cpp:11:2: error: 'q' was not declared in this scope q.push(vf); ^ conex.cpp:12:2: error: 'viz' was not declared in this scope viz[vf]=1; ^ conex.cpp: In function 'int main()': conex.cpp:31:2: error: 'fin' was not declared in this scope fin>>n; ^ conex.cpp:38:3: error: 'fout' was not declared in this scope fout<<"DA"; ^ conex.cpp:40:3: error: 'fout' was not declared in this scope fout<<"NU"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Conex 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ă.