Borderou de evaluare (job #2187001)

Utilizator OldpugAlex Ionescu Oldpug Data 26 martie 2018 09:37:40
Problema Elementul majoritar Status done
Runda bpc10 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:19:20: error: base operand of ‘->’ has non-pointer type ‘std::pair<const int, int>’ auto count{elem->second}; ^~ user.cpp:19:28: error: unable to deduce ‘auto’ from ‘<expression error>’ auto count{elem->second}; ^ user.cpp:22:18: error: base operand of ‘->’ has non-pointer type ‘std::pair<const int, int>’ out << elem->first << ' ' << count; ^~

Ceva nu functioneaza?