Borderou de evaluare (job #1689196)
Utilizator | Data | 14 aprilie 2016 00:58:53 | |
---|---|---|---|
Problema | Interesant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:20: error: ‘int j1’ redeclared as different kind of symbol
int k,i,m,x,j,ct,p,j1,ok;
^
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/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:31:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(f[k].m>g.length())
^
user.cpp:33:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(f[k].m==g.length())
^
user.cpp:47:27: error: assignment of function ‘double j1(double)’
for(j=0,j1=0,ok=0;j1<f[i].m;j1++)
^
user.cpp:47:27: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:47:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j=0,j1=0,ok=0;j1<f[i].m;j1++)
^
user.cpp:47:47: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
for(j=0,j1=0,ok=0;j1<f[i].m;j1++)
^
user.cpp:47:47: error: lvalue required as increment operand
user.cpp:49:44: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::basic_string<char>::size_type {aka unsigned int}’ [-fpermissive]
if(f[k].f[j]==f[i].f[j1])
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:843:7: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::reference std::basic_string<_CharT, _Traits, _Alloc>::operator[](std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::reference = char&; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]’ [-fpermissive]
operator[](size_type __pos)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !