Borderou de evaluare (job #1006005)

Utilizator nicuvladNicu Vlad nicuvlad Data 6 octombrie 2013 07:29:19
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:19: error: ‘unsigned char y1’ redeclared as different kind of symbol unsigned char x1, y1, x2, y2; ^ 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/cstdio:41, 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 ‘void read()’: user.cpp:16:10: error: assignment of function ‘double y1(double)’ x1=x2=y1=y2=0; ^ user.cpp:16:10: error: cannot convert ‘unsigned char’ to ‘double(double)throw ()’ in assignment user.cpp:20:35: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’ for(;*p>='0'&&*p<='9';p++) y1=10*y1+*p-'0';p++; ^ user.cpp: In function ‘int main()’: user.cpp:109:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:109:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:112:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:112:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:112:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:115:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:115:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘short unsigned int’ [-fpermissive] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:72:16: error: initializing argument 2 of ‘short unsigned int query(short unsigned int, short unsigned int, short unsigned int, short unsigned int)’ [-fpermissive] unsigned short query(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2) ^

Ceva nu functioneaza?