Borderou de evaluare (job #965633)
Utilizator | Data | 24 iunie 2013 12:52:51 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:21: error: ‘int y1 [110]’ redeclared as different kind of symbol
int x1[N],x2[N],y1[N],y2[N];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:40:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
in>>y1[i];
^
user.cpp:40:11: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/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:45:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
push(ver,y1[i],i,1);
^
user.cpp:45:16: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:14:6: error: initializing argument 2 of ‘void push(pct*, int, int, int)’ [-fpermissive]
void push(pct A[],int q1,int q2,int q3){
^
user.cpp:73:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(ver[i].con==1) y1[ver[i].ind]=ver[i].val;
^
user.cpp:73:35: error: assignment of read-only location ‘*(y1 + ((sizetype)ver[i].pct::ind))’
if(ver[i].con==1) y1[ver[i].ind]=ver[i].val;
^
user.cpp:73:35: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:81:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(j=y1[k]+1;j<=y2[k];j++){
^
user.cpp:81:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(j=y1[k]+1;j<=y2[k];j++){
^
user.cpp:81:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(j=y1[k]+1;j<=y2[k];j++){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !