Borderou de evaluare (job #1862303)
Utilizator | Data | 29 ianuarie 2017 19:15:52 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:63: error: ‘int y0’ redeclared as different kind of symbol
int k1,k2,a[205][205],dx[]={-1,0,1,0},dy[]={0,-1,0,1},cont,x0,y0,m,p,n,nrlin,nrcol;
^
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:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp:8:33: error: ‘int y1 [205]’ redeclared as different kind of symbol
int x[205],y[205],x1[205],y1[205],y2[205],x2[205];
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:45:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin>>x1[i]>>y1[i]>>x2[i]>>y2[i];
^
user.cpp:45:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin>>x1[i]>>y1[i]>>x2[i]>>y2[i];
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:48:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(y1[i]==0)y0++;
^
user.cpp:48:23: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
if(y1[i]==0)y0++;
^
user.cpp:48:23: error: lvalue required as increment operand
user.cpp:49:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(y1[i]==p)y0++;
^
user.cpp:49:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1[i]==p)y0++;
^
user.cpp:49:23: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
if(y1[i]==p)y0++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !