Borderou de evaluare (job #1140436)
| Utilizator | Data | 11 martie 2014 23:32:09 | |
|---|---|---|---|
| Problema | Patrate 3 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:9:28: error: ‘int yn’ redeclared as different kind of symbol
int n,i,j,x1,yy1,x2,yy2,xn,yn,p,u,mid,ok,nr,semn,l,a;
^
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:243:1: error: previous declaration of ‘double yn(int, double)’
__MATHCALL (yn,, (int, _Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:46:15: error: assignment of function ‘double yn(int, double)’
yn=(v[i].y+v[j].y)/2;
^
user.cpp:46:15: error: cannot convert ‘int’ to ‘double(int, double)throw ()’ in assignment
user.cpp:47:27: error: invalid operands of types ‘int’ and ‘double(int, double)throw ()’ to binary ‘operator-’
x1=xn-(v[j].y-yn);
^
user.cpp:48:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yy1=yn+(xn-v[i].x);
^
user.cpp:48:19: error: invalid conversion from ‘double (*)(int, double)throw ()’ to ‘int’ [-fpermissive]
yy1=yn+(xn-v[i].x);
^
user.cpp:49:27: error: invalid operands of types ‘int’ and ‘double(int, double)throw ()’ to binary ‘operator-’
x2=xn+(v[j].y-yn);
^
user.cpp:50:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yy2=yn-(xn-v[i].x);
^
user.cpp:50:19: error: invalid conversion from ‘double (*)(int, double)throw ()’ to ‘int’ [-fpermissive]
yy2=yn-(xn-v[i].x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
