Borderou de evaluare (job #2315148)

Utilizator PredaBossPreda Andrei PredaBoss Data 9 ianuarie 2019 15:13:50
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:27:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<sir[i].size();j++) ~^~~~~~~~~~~~~~ main.cpp:30:37: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] counter-=(1<<mid-1); ~~~^~ main.cpp:37:61: error: conversion from 'std::unordered_map<long long int, bool>::iterator {aka std::__detail::_Node_iterator<std::pair<const long long int, bool>, false, false>}' to non-scalar type 'std::map<long long int, bool>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, bool> >}' requested for(map<long long,bool>::iterator it=local.begin();it!=local.end();it++) ~~~~~~~~~~~^~ main.cpp:37:66: error: no match for 'operator!=' (operand types are 'std::map<long long int, bool>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, bool> >}' and 'std::unordered_map<long long int, bool>::iterator {aka std::__detail::_Node_iterator<std::pair<const long long int, bool>, false, false>}') for(map<long long,bool>::iterator it=local.begin();it!=local.end();it++) ~~^~~~~~~~~~~~~ In file included from /usr/include/c++/6/map:60:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_tree.h:241:7: note: candidate: bool std::_Rb_tree_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = std::pair<const long long int, bool>; std::_Rb_tree_iterator<_Tp>::_Self = std::_Rb_tree_iterator<std::pair<const long long int, bool> >] operator!=(const _Self& __x) const _GLIBCXX_NOEXCEPT ^~~~~~~~ /usr/include/c++/6/bits/stl_tree.h:241:7: note: no known conversion for argument 1 from 'std::unordered_map<long long int, bool>::iterator {aka std::__detail::_Node_iterator<std::pair<const long long int, bool>, false, false>}' to 'const _Self& {aka const std::_Rb_tree_iterator<std::pair<const long long int, bool> >&}' In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:951:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&) operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) ^~~~~~~~ /usr/include/c++/6/bits/regex.h:951:5: note: template argument deduction/substitution failed: main.cpp:37:78: note: 'std::map<long long int, bool>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, bool> >}' is not derived from 'const std::__cxx11::sub_match<_BiIter>' for(map<long long,bool>::iterator it=local.begin();it!=local.end();it++) ^ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:1029:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&) operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1029:5: note: template argument deduction/substitution failed: main.cpp:37:78: note: 'std::map<long long int, bool>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, bool> >}' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' for(map<long long,bool>::iterator it=local.begin();it!=local.end();it++) ^ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/6/bits/regex.h:1109:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&) operator!=(const sub_match<_Bi_iter>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1109:5: note: template argument deduction/substitution failed: main.cpp:37:78: note: 'std::map<long long int, bool>::iterator {aka std::_Rb_tree_iterator<std::pair<const long long int, bool> >}' is not derived from 'const std::__cxx11::sub_match<_BiIter>' for(map<long long,bool>::iterator it=local.begin();it!=local.end();it++) ^ Non zero exit status: 1

Ceva nu functioneaza?