Borderou de evaluare (job #2772128)

Utilizator CelestinNegraru Celestin Celestin Data 30 august 2021 20:28:09
Problema Concurs Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void SOLVE()': main.cpp:103:47: warning: narrowing conversion of 'p' from 'int' to 'short int' inside { } [-Wnarrowing] M.insert(pair<int,team>(val[lca],{p,t})); ^ main.cpp:103:47: warning: narrowing conversion of 't' from 'int' to 'short int' inside { } [-Wnarrowing] main.cpp:118:60: error: conversion from 'std::unordered_multimap<int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, team>, false, false>}' to non-scalar type 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' requested unordered_multimap<short,team>::iterator I=M2.begin(); ~~~~~~~~^~ main.cpp:123:59: error: conversion from 'std::unordered_multimap<int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, team>, false, false>}' to non-scalar type 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' requested for(unordered_multimap<short,team>::iterator I=M2.begin();I!=M2.end();I++) ~~~~~~~~^~ main.cpp:123:63: error: no match for 'operator!=' (operand types are 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' and 'std::unordered_multimap<int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, team>, false, false>}') for(unordered_multimap<short,team>::iterator I=M2.begin();I!=M2.end();I++) ~^~~~~~~~~~ In file included from /usr/include/c++/6/iosfwd:40:0, from /usr/include/c++/6/ios:38, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/postypes.h:221:5: note: candidate: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&) operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) ^~~~~~~~ /usr/include/c++/6/bits/postypes.h:221:5: note: template argument deduction/substitution failed: main.cpp:123:72: note: 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' is not derived from 'const std::fpos<_StateT>' for(unordered_multimap<short,team>::iterator I=M2.begin();I!=M2.end();I++) ^ In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/stl_pair.h:448:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^~~~~~~~ /usr/include/c++/6/bits/stl_pair.h:448:5: note: template argument deduction/substitution failed: main.cpp:123:72: note: 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' is not derived from 'const std::pair<_T1, _T2>' for(unordered_multimap<short,team>::iterator I=M2.begin();I!=M2.end();I++) ^ In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/stl_iterator.h:304:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator!=(const reverse_iterator<_Iterator>& __x, ^~~~~~~~ /usr/include/c++/6/bits/stl_iterator.h:304:5: note: template argument deduction/substitution failed: main.cpp:123:72: note: 'std::unordered_multimap<short int, team>::iterator {aka std::__detail::_Node_iterator<std::pair<const short int, team>, false, false>}' is not derived from 'const std::reverse_iterator<_Iterator>' Non zero exit status: 1

Ceva nu functioneaza?