Borderou de evaluare (job #986389)
Utilizator | Data | 18 august 2013 17:08:55 | |
---|---|---|---|
Problema | Rectangles | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:114: error: ‘int y1 [1009]’ redeclared as different kind of symbol
int grad,diag,st,dr,k,po,mini,maxi,ok,vf,nx,ny,N,S,E,V,nn,ss,ee,vv,n,i,j,npct,mod1,mod2,x1[1009],x2[1009],y1[1009],y2[1009],no[4009],su[4009],es[4009],ve[4009];
^
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 ‘int main()’:
user.cpp:77:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d",&y1[i]);
^
user.cpp:77:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d",&y1[i]);
^
user.cpp:80:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
push(x1[i],y1[i],4*i);push(x1[i],y2[i],4*i+1);push(x2[i],y1[i],4*i+2);push(x2[i],y2[i],4*i+3);
^
user.cpp:80:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:60:6: error: initializing argument 2 of ‘void push(int, int, int)’ [-fpermissive]
void push(int x,int y,int p){vf++;P[vf].x=x;P[vf].y=y;P[vf].p=p;}
^
user.cpp:80:66: warning: pointer to a function used in arithmetic [-Wpointer-arith]
push(x1[i],y1[i],4*i);push(x1[i],y2[i],4*i+1);push(x2[i],y1[i],4*i+2);push(x2[i],y2[i],4*i+3);
^
user.cpp:80:66: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:60:6: error: initializing argument 2 of ‘void push(int, int, int)’ [-fpermissive]
void push(int x,int y,int p){vf++;P[vf].x=x;P[vf].y=y;P[vf].p=p;}
^
user.cpp:81:38: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nx++;X[nx].pz=x1[i];X[nx].st=y1[i];X[nx].dr=y2[i];
^
user.cpp:81:38: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:82:38: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nx++;X[nx].pz=x2[i];X[nx].st=y1[i];X[nx].dr=y2[i];
^
user.cpp:82:38: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:84:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
ny++;Y[ny].pz=y1[i];Y[ny].st=x1[i];Y[ny].dr=x2[i];
^
user.cpp:84:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:170:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
src(x1[i],y1[i]);if(ok==0) bag(x1[i],y1[i],no[4*i],su[4*i],es[4*i],ve[4*i]);
^
user.cpp:170:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:20:6: error: initializing argument 2 of ‘void src(int, int)’ [-fpermissive]
void src(int x,int y)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !