Borderou de evaluare (job #1166326)
Utilizator | Data | 3 aprilie 2014 14:37:48 | |
---|---|---|---|
Problema | Coduri Huffman | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%I64d", &val[i]);
^
user.cpp:46:5: error: reference to ‘end’ is ambiguous
end[0] = N;
^
user.cpp:12:13: note: candidates are: int end [2]
int beg[2], end[2];
^
In file included from /usr/local/include/c++/4.8.0/string:51:0,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
/usr/local/include/c++/4.8.0/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
/usr/local/include/c++/4.8.0/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from /usr/local/include/c++/4.8.0/utility:74:0,
from /usr/local/include/c++/4.8.0/algorithm:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
user.cpp:48:5: error: reference to ‘end’ is ambiguous
end[1] = 0;
^
user.cpp:12:13: note: candidates are: int end [2]
int beg[2], end[2];
^
In file included from /usr/local/include/c++/4.8.0/string:51:0,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
/usr/local/include/c++/4.8.0/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
/usr/local/include/c++/4.8.0/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !