Borderou de evaluare (job #1002858)

Utilizator andreiiiiPopa Andrei andreiiii Data 28 septembrie 2013 22:41:47
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:15: error: ‘unsigned char y1’ redeclared as different kind of symbol uss n, m, 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:15:10: error: assignment of function ‘double y1(double)’ x1=x2=y1=y2=0; ^ user.cpp:15:10: error: cannot convert ‘unsigned char’ to ‘double(double)throw ()’ in assignment user.cpp:19: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:92:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘unsigned char*’ [-Wformat=] scanf("%d %d %d\n", &n, &m, &q); ^ user.cpp:92:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘unsigned char*’ [-Wformat=] user.cpp:114:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:114:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(step=1;(x1+step<=x2)&&(y1+step<=y2);step<<=1); ^ user.cpp:117:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:117:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:117:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if((x1+step+i<=x2)&&(y1+step+i<=y2)) ^ user.cpp:120:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:120:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘unsigned char’ [-fpermissive] if(query(x1+i, y1+i, x2, y2)>=i) ^ user.cpp:78:5: error: initializing argument 2 of ‘int query(unsigned char, unsigned char, unsigned char, unsigned char)’ [-fpermissive] int query(uss x1, uss y1, uss x2, uss y2) ^

Ceva nu functioneaza?