#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 | #42660511 | Utilizator | |
Fișier | dmax.cpp | Dimensiune | 763 B |
Data încărcării | 13 Martie 2023, 22:50 | Scor / rezultat | Eroare de compilare |
dmax.cpp:1:2: error: invalid preprocessing directive #inlcude #inlcude <fstream> ^ dmax.cpp:2:2: error: invalid preprocessing directive #inlcude #inlcude <queue> ^ dmax.cpp:3:2: error: invalid preprocessing directive #inlcude #inlcude <vector> ^ dmax.cpp:5:1: error: 'ifstream' does not name a type ifstream in("dmax.in"); ^ dmax.cpp:6:1: error: 'ofstream' does not name a type ofstream out("dmax.out"); ^ dmax.cpp:9:1: error: 'vector' does not name a type vector<int> la[111];f() ^ dmax.cpp:9:23: error: ISO C++ forbids declaration of 'f' with no type [-fpermissive] vector<int> la[111];f() ^ dmax.cpp: In function 'int f()': dmax.cpp:11:5: error: 'queue' was not declared in this scope queue<int> q; ^ dmax.cpp:11:11: error: expected primary-expression before 'int' queue<int> q; ^ dmax.cpp:11:11: error: expected ';' before 'int' dmax.cpp:12:5: error: 'q' was not declared in this scope q.push(1); ^ dmax.cpp:17:20: error: 'la' was not declared in this scope for (int x:la[nodcrt]) ^ dmax.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ dmax.cpp: In function 'int main()': dmax.cpp:30:5: error: 'in' was not declared in this scope in >>n>>m; ^ dmax.cpp:35:9: error: 'la' was not declared in this scope la[x].push_back(y); ^ dmax.cpp:38:9: error: 'bf' was not declared in this scope bf(1); ^ dmax.cpp:39:5: error: 'out' was not declared in this scope out<<max_element(d+1,d+n+1) - d; ^ dmax.cpp:39:31: error: 'max_element' was not declared in this scope out<<max_element(d+1,d+n+1) - d; ^
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ă.