Borderou de evaluare (job #1874267)
Utilizator | Data | 9 februarie 2017 20:47:36 | |
---|---|---|---|
Problema | Puternic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:32: error: ‘int exp2’ redeclared as different kind of symbol
int n, i, j, e, maxim, ii, nr, exp2, jj;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:143:1: error: previous declaration of ‘double exp2(double)’
__MATHCALL (exp2,, (_Mdouble_ __x));
^
user.cpp: In function ‘void mult1(char*, int, char*)’:
user.cpp:53:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
w[ ++w[0] ] = t % 10;
^
user.cpp: In function ‘int main()’:
user.cpp:102:14: error: overloaded function with no contextual type information
exp2 = e - 1;
^
user.cpp:106:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(jj = 0; jj < diviz[j].size(); jj++){
^
user.cpp:108:35: error: no matching function for call to ‘min(<unresolved overloaded function type>, int&)’
if(e > min(exp2, j)){
^
user.cpp:108:35: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const int&’
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed:
user.cpp:108:35: note: candidate expects 3 arguments, 2 provided
if(e > min(exp2, j)){
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !