Borderou de evaluare (job #1006009)

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

Raport evaluator

Eroare de compilare: user.cpp:10:14: error: ‘unsigned int y1’ redeclared as different kind of symbol unsigned 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 int’ 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 ‘void init()’: user.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=1;(1<<k)<=m;k++) ^ user.cpp:40:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=1;(1<<k)<=n;k++) ^ user.cpp:51:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(p=1;(1<<p)<=n;p++) ^ user.cpp:53:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(k=1;(1<<k)<=m;k++) ^ user.cpp: In function ‘int main()’: user.cpp:86:34: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 2 has type ‘unsigned int*’ [-Wformat=] scanf("%hu %hu %d\n", &n, &m, &q); ^ user.cpp:86:34: warning: format ‘%hu’ expects argument of type ‘short unsigned int*’, but argument 3 has type ‘unsigned int*’ [-Wformat=] 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]

Ceva nu functioneaza?