#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 | #57052525 | Utilizator | |
Fișier | circuiteparitate.cpp | Dimensiune | 922 B |
Data încărcării | 14 Martie 2025, 08:40 | Scor / rezultat | Eroare de compilare |
circuiteparitate.cpp:4:14: error: 'circuiteparitate' was not declared in this scope ifstream fin(circuiteparitate.in); ^ circuiteparitate.cpp:5:15: error: 'circuiteparitate' was not declared in this scope ofstream fout(circuiteparitate.out); ^ circuiteparitate.cpp:6:9: error: redefinition of 'int n' int n , n , A[21][21] , x[21] , uz[21]; ^ circuiteparitate.cpp:6:5: error: 'int n' previously declared here int n , n , A[21][21] , x[21] , uz[21]; ^ circuiteparitate.cpp: In function 'bool ok(int)': circuiteparitate.cpp:12:8: error: 'a' was not declared in this scope if(a[x[k-1]][x[k]]==0) ^ circuiteparitate.cpp: In function 'int main()': circuiteparitate.cpp:42:12: error: 'm' was not declared in this scope fin>n>>m; ^ circuiteparitate.cpp:45:17: error: 'j' was not declared in this scope fin>>i>>j; ^
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ă.