#851
Email
Se dă o listă de adrese de email corecte ca structură. Să se determine câte adrese de email sunt asociate cu fiecare nume de domeniu.
Problema | Operații I/O |
![]() email.in /email.out
|
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51687224 | Utilizator | |
Fișier | email.cpp | Dimensiune | 1.25 KB |
Data încărcării | 03 August 2024, 11:13 | Scor / rezultat | Eroare de compilare |
In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from email.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<std::basic_string<char>, int>*, std::vector<std::pair<std::basic_string<char>, int> > >; _Tp = std::pair<std::basic_string<char>, int>; _Compare = bool (*)(std::pair<std::basic_string<char>, int>&, std::pair<std::basic_string<char>, int>&)]': /usr/include/c++/4.8/bits/stl_algo.h:2296:78: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<std::basic_string<char>, int>*, std::vector<std::pair<std::basic_string<char>, int> > >; _Compare = bool (*)(std::pair<std::basic_string<char>, int>&, std::pair<std::basic_string<char>, int>&)]' /usr/include/c++/4.8/bits/stl_algo.h:2337:62: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<std::basic_string<char>, int>*, std::vector<std::pair<std::basic_string<char>, int> > >; _Size = int; _Compare = bool (*)(std::pair<std::basic_string<char>, int>&, std::pair<std::basic_string<char>, int>&)]' /usr/include/c++/4.8/bits/stl_algo.h:5499:44: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::pair<std::basic_string<char>, int>*, std::vector<std::pair<std::basic_string<char>, int> > >; _Compare = bool (*)(std::pair<std::basic_string<char>, int>&, std::pair<std::basic_string<char>, int>&)]' email.cpp:26:39: required from here /usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: invalid initialization of reference of type 'std::pair<std::basic_string<char>, int>&' from expression of type 'const std::pair<std::basic_string<char>, int>' while (__comp(*__first, __pivot)) ^ /usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: invalid initialization of reference of type 'std::pair<std::basic_string<char>, int>&' from expression of type 'const std::pair<std::basic_string<char>, int>' while (__comp(__pivot, *__last)) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Email 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ă.