#4635
Se dă un graf orientat cu n
vârfuri și m
arce. Să se determine toate circuitele elementare formate din vârfuri care au aceeași paritate.
Problema | CircuiteParitate | Operații I/O |
![]() circuiteparitate.in /circuiteparitate.out
|
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58215453 | Utilizator | |
Fișier | circuiteparitate.cpp | Dimensiune | 1.02 KB |
Data încărcării | 20 Mai 2025, 17:22 | Scor / rezultat | Eroare de compilare |
circuiteparitate.cpp:8:1: error: 'ifstream' does not name a type ifstream f("circuitseparitate.in"); ^ circuiteparitate.cpp:9:1: error: 'ofstream' does not name a type ofstream g("circuitseparitate.out"); ^ circuiteparitate.cpp: In function 'void citire()': circuiteparitate.cpp:14:5: error: 'f' was not declared in this scope f >> n >> m; ^ circuiteparitate.cpp: In function 'void afis(int)': circuiteparitate.cpp:26:9: error: 'g' was not declared in this scope g << sol[i] << ' '; ^ circuiteparitate.cpp:27:5: error: 'g' was not declared in this scope g << sol[1] << '\n'; ^ circuiteparitate.cpp: In function 'int main()': circuiteparitate.cpp:57:14: error: 'g' was not declared in this scope if (!ok) g << "NU EXISTA"; ^ circuiteparitate.cpp:58:5: error: 'f' was not declared in this scope f.close(); ^ circuiteparitate.cpp:59:5: error: 'g' was not declared in this scope g.close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CircuiteParitate 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ă.