#3325
Ohoo
Porumbeii au pornit un război crâncen împotriva ciorilor, dar ele au construit garduri defensive pe toate rutele pe care le-ar putea folosi armata porumbeilor pentru a le ataca cetatea. Pentru a ajunge la cetatea ciorilor armata trebuie sa treacă de gardurile construite de ciori.
Moisil++ 2019
Problema | Ohoo | Operații I/O |
Ohoo.in /Ohoo.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #41549781 | Utilizator | |
Fișier | ohoo.cpp | Dimensiune | 1.30 KB |
Data încărcării | 27 Ianuarie 2023, 17:57 | Scor / rezultat | Eroare de compilare |
ohoo.cpp:5:13: error: variable 'std::ifstream cin' has initializer but incomplete type ifstream cin("Ohoo.in"); ^ ohoo.cpp:6:14: error: variable 'std::ofstream cout' has initializer but incomplete type ofstream cout("Ohoo.out"); ^ ohoo.cpp: In function 'void dijkstra(int)': ohoo.cpp:25:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < g[v].size(); i++) { ^ ohoo.cpp: In function 'int main()': ohoo.cpp:36:5: error: reference to 'cin' is ambiguous cin >> n >> m; ^ ohoo.cpp:5:10: note: candidates are: <typeprefixerror>cin ifstream cin("Ohoo.in"); ^ In file included from ohoo.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ ohoo.cpp:38:9: error: reference to 'cin' is ambiguous cin >> a >> b >> c; ^ ohoo.cpp:5:10: note: candidates are: <typeprefixerror>cin ifstream cin("Ohoo.in"); ^ In file included from ohoo.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ ohoo.cpp:46:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < g[i].size(); j++) { ^ ohoo.cpp:52:5: error: reference to 'cout' is ambiguous cout << k << endl; ^ ohoo.cpp:6:10: note: candidates are: <typeprefixerror>cout ofstream cout("Ohoo.out"); ^ In file included from ohoo.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Ohoo 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ă.