#1462
Gasti
Problema | Gasti | Operații I/O |
![]() gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #51695744 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 2.29 KB |
Data încărcării | 05 August 2024, 00:44 | Scor / rezultat | Eroare de compilare |
gasti.cpp: In function 'int main()': gasti.cpp:56:5: error: 'unordered_map' was not declared in this scope unordered_map<long long, long long> component_size; ^ gasti.cpp:56:19: error: expected primary-expression before 'long' unordered_map<long long, long long> component_size; ^ gasti.cpp:56:19: error: expected ';' before 'long' gasti.cpp:59:9: error: 'component_size' was not declared in this scope component_size[root] = size[root]; ^ gasti.cpp:65:16: error: expected unqualified-id before '[' token for (auto& [root, comp_size] : component_size) { ^ gasti.cpp:65:16: error: expected ';' before '[' token gasti.cpp:65:17: error: 'root' was not declared in this scope for (auto& [root, comp_size] : component_size) { ^ gasti.cpp:65:23: error: 'comp_size' was not declared in this scope for (auto& [root, comp_size] : component_size) { ^ gasti.cpp: In lambda function: gasti.cpp:65:34: error: expected '{' before ':' token for (auto& [root, comp_size] : component_size) { ^ gasti.cpp: In function 'int main()': gasti.cpp:65:34: error: expected ';' before ':' token gasti.cpp:65:34: error: expected primary-expression before ':' token gasti.cpp:65:34: error: expected ')' before ':' token gasti.cpp:65:34: error: expected primary-expression before ':' token gasti.cpp:65:34: error: expected ';' before ':' token gasti.cpp:62:15: warning: unused variable 'max1' [-Wunused-variable] long long max1 = 0, max2 = 0; ^ gasti.cpp:62:25: warning: unused variable 'max2' [-Wunused-variable] long long max1 = 0, max2 = 0; ^ gasti.cpp:63:15: warning: unused variable 'count_max1' [-Wunused-variable] long long count_max1 = 0, count_max2 = 0; ^ gasti.cpp:63:31: warning: unused variable 'count_max2' [-Wunused-variable] long long count_max1 = 0, count_max2 = 0; ^ gasti.cpp:94:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti 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ă.