#1652
RF
Se dă un graf orientat în care arcele au asociate costuri (numere naturale nenule). Să se determine câte arce (x,y)
din graf au costul egal cu costul drumului de cost minim de la x
la y
.
Problema | RF | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50966308 | Utilizator | |
Fișier | rf.cpp | Dimensiune | 474 B |
Data încărcării | 16 Mai 2024, 11:43 | Scor / rezultat | Eroare de compilare |
rf.cpp:18:5: error: stray '\342' in program cout<<j<<” ”; ^ rf.cpp:18:5: error: stray '\200' in program rf.cpp:18:5: error: stray '\235' in program rf.cpp:18:5: error: stray '\342' in program rf.cpp:18:5: error: stray '\200' in program rf.cpp:18:5: error: stray '\235' in program rf.cpp: In function 'int main()': rf.cpp:7:5: error: 'fin' was not declared in this scope fin>>n>>m; ^ rf.cpp:11:17: error: 'cin' was not declared in this scope cin[i][j]; ^ rf.cpp:18:5: error: 'cout' was not declared in this scope cout<<j<<” ”; ^ rf.cpp:18:21: error: expected primary-expression before ';' token cout<<j<<” ”; ^ rf.cpp:19:13: error: 'T' was not declared in this scope j = T[i][j]; ^ rf.cpp:21:29: error: a function-definition is not allowed here before '{' token void drum(int i, int j) { ^ rf.cpp:32:1: error: expected '}' at end of input } ^ rf.cpp:6:29: warning: unused variable 'cnt' [-Wunused-variable] int n,m,i,j,a[200][200],cnt; ^ rf.cpp:32:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema RF 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ă.