Borderou de evaluare (job #945378)

Utilizator dariusdariusMarian Darius dariusdarius Data 1 mai 2013 20:12:41
Problema Camion Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:13: error: ‘int y1 [30005]’ redeclared as different kind of symbol int y1[30005]; ^ In file included from /usr/include/features.h:346:0, from /usr/include/stdio.h:28, 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:16:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] scanf("%d%d%d%d",&x1[i],&y1[i],&x2[i],&y2[i]); ^ user.cpp:16:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d%d%d%d",&x1[i],&y1[i],&x2[i],&y2[i]); ^ user.cpp:21:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(x1[j]<=i && i<=x2[j] && C>=y1[j]) ^ user.cpp:21:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:22:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] C+=(y2[j]-y1[j]+1); ^ user.cpp:22:31: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’

Ceva nu functioneaza?