#3325
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 | #62863572 | Utilizator | |
| Fișier | ohoo.cpp | Dimensiune | 1.13 KB |
| Data încărcării | 04 Februarie 2026, 14:51 | Scor/rezultat | Eroare de compilare |
ohoo.cpp: In function 'int main()': ohoo.cpp:35:14: error: expected unqualified-id before '[' token auto [cur, u] = pq.top(); ^ ohoo.cpp:38:13: error: 'cur' was not declared in this scope if (cur > dist[u]) continue; ^ ohoo.cpp:38:24: error: 'u' was not declared in this scope if (cur > dist[u]) continue; ^ ohoo.cpp:40:19: error: expected unqualified-id before '[' token for (auto [v, r] : adj[u]) { ^ ohoo.cpp:40:19: error: expected ';' before '[' token ohoo.cpp:40:20: error: 'v' was not declared in this scope for (auto [v, r] : adj[u]) { ^ ohoo.cpp:40:23: error: 'r' was not declared in this scope for (auto [v, r] : adj[u]) { ^ ohoo.cpp: In lambda function: ohoo.cpp:40:26: error: expected '{' before ':' token for (auto [v, r] : adj[u]) { ^ ohoo.cpp: In function 'int main()': ohoo.cpp:40:26: error: expected ';' before ':' token ohoo.cpp:40:26: error: expected primary-expression before ':' token ohoo.cpp:40:26: error: expected ')' before ':' token ohoo.cpp:40:26: error: expected primary-expression before ':' token ohoo.cpp:40:26: error: expected ';' before ':' token ohoo.cpp:51:1: error: expected '}' at end of input } ^ ohoo.cpp:51:1: error: expected '}' at end of input ohoo.cpp:11:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("Ohoo.in", "r", stdin); ^ ohoo.cpp:12:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("Ohoo.out", "w", stdout); ^
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ă.