Borderou de evaluare (job #1725657)

Utilizator timicsIoana Tamas timics Data 6 iulie 2016 05:56:25
Problema Cuiburi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:79: error: ‘int y1 [2020]’ redeclared as different kind of symbol int N,skip[2020],cnt[2020],deg[2020],o[2020],x1[2020],d[2020],x2[2020],y1[2020],y2[2020]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘bool inside(int, int)’: user.cpp:23:61: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (x1[i] >= x1[j] && x2[i] <= x2[j] && y1[i] >= y1[j] && y2[i] <= y2[j]); ^ user.cpp:23:70: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (x1[i] >= x1[j] && x2[i] <= x2[j] && y1[i] >= y1[j] && y2[i] <= y2[j]); ^ user.cpp:25:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] return dist(x1[i],y1[i],x1[j],y1[j]) <= y1[j] ^ user.cpp:25:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] return dist(x1[i],y1[i],x1[j],y1[j]) <= y1[j] ^ user.cpp:25:35: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] return dist(x1[i],y1[i],x1[j],y1[j]) <= y1[j] ^ user.cpp:16:5: error: initializing argument 2 of ‘int dist(int, int, int, int)’ [-fpermissive] int dist(int x1, int y1, int x2, int y2) { ^ user.cpp:25:47: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] return dist(x1[i],y1[i],x1[j],y1[j]) <= y1[j] ^ user.cpp:16:5: error: initializing argument 4 of ‘int dist(int, int, int, int)’ [-fpermissive] int dist(int x1, int y1, int x2, int y2) { ^ user.cpp:25:57: warning: pointer to a function used in arithmetic [-Wpointer-arith] return dist(x1[i],y1[i],x1[j],y1[j]) <= y1[j] ^ user.cpp:25:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:26:52: warning: pointer to a function used in arithmetic [-Wpointer-arith] && dist(x1[i],y2[i],x1[j],y1[j]) <= x2[j] ^ user.cpp:26:52: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] user.cpp:16:5: error: initializing argument 4 of ‘int dist(int, int, int, int)’ [-fpermissive] int dist(int x1, int y1, int x2, int y2) { ^ user.cpp:27:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] && dist(x2[i],y1[i],x1[j],y1[j]) <= x2[j] ^ user.cpp:27:52: warning: pointer to a function used in arithmetic [-Wpointer-arith] && dist(x2[i],y1[i],x1[j],y1[j]) <= x2[j]

Ceva nu functioneaza?