Borderou de evaluare (job #988599)
Utilizator | Data | 23 august 2013 13:53:34 | |
---|---|---|---|
Problema | Drept3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:8: error: ‘int y1’ redeclared as different kind of symbol
int x1,y1,x2,y2,D,n,m,linie,lx,ly,dract,Ly,arie,nr,N;
^
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:29:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d%d%d",&x1,&y1,&D);
^
user.cpp:30:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
x2=x1+D;y2=y1+D;
^
user.cpp:30:16: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
x2=x1+D;y2=y1+D;
^
user.cpp:32:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
b[N+1]=EVENT(y1,0,i);
^
user.cpp:10:5: error: initializing argument 1 of ‘EVENT::EVENT(int, int, int)’ [-fpermissive]
EVENT(int Val,int Tip,int Nr) {val=Val;tip=Tip;nr=Nr;}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !