#126
DMax
Să se determine maximul distanţelor minime între nodul 1
şi celelalte noduri, într-un graf neorientat.
Problema | DMax | Operații I/O |
dmax.in /dmax.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #39776311 | Utilizator | |
Fișier | dmax.cpp | Dimensiune | 1.27 KB |
Data încărcării | 17 Noiembrie 2022, 16:28 | Scor / rezultat | Eroare de compilare |
dmax.cpp:7:7: error: 'NAMX' does not name a type const NAMX = 1e2; ^ dmax.cpp:10:1: error: expected ',' or ';' before 'ofstream' ofstream cout("dmax.out") ^ dmax.cpp:14:10: error: 'NMAX' was not declared in this scope int cost[NMAX + 1]; ^ dmax.cpp:16:1: error: 'coid' does not name a type coid dijkstra(int x){ ^ dmax.cpp: In function 'int main()': dmax.cpp:43:9: error: 'cost' was not declared in this scope cost[i] = inf; ^ dmax.cpp:53:9: error: 'g' was not declared in this scope g[x].push_back({x, c}); ^ dmax.cpp:58:15: error: 'dijkstra' was not declared in this scope dijkstra(1); ^ dmax.cpp:60:14: error: expected initializer before 'max_min' int dist max_min = -1, nod = 0; ^ dmax.cpp:62:13: error: 'dist_max_min' was not declared in this scope if (dist_max_min = cost[i]; ^ dmax.cpp:62:28: error: 'cost' was not declared in this scope if (dist_max_min = cost[i]; ^ dmax.cpp:62:35: error: expected ')' before ';' token if (dist_max_min = cost[i]; ^ dmax.cpp:63:13: error: 'nod' was not declared in this scope nod = 1; ^ dmax.cpp: At global scope: dmax.cpp:69:13: error: 'cout' does not name a type cout << nod; ^ dmax.cpp:70:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DMax 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ă.