Borderou de evaluare (job #1006003)

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

Raport evaluator

Eroare de compilare: user.cpp:11: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:17:10: error: assignment of function ‘double y1(double)’ x1=x2=y1=y2=0; ^ user.cpp:17:10: error: cannot convert ‘unsigned char’ to ‘double(double)throw ()’ in assignment user.cpp:21: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:110:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:110:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:113:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:113:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:113:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:116:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:116:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘short unsigned int’ [-fpermissive] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:73:5: error: initializing argument 2 of ‘short unsigned int query(short unsigned int, short unsigned int, short unsigned int, short unsigned int)’ [-fpermissive] ush query(ush x1, ush y1, ush x2, ush y2) ^

Ceva nu functioneaza?