Borderou de evaluare (job #1260473)
Utilizator | Data | 11 noiembrie 2014 12:42:27 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:67: error: ‘int y1’ redeclared as different kind of symbol
int i,x,y,n,m,c,poz[400007],k,j,cost,aa[400007],bb[400007],aux,x1,y1,nr,h[400007];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
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 ‘int main()’:
user.cpp:46:11: error: assignment of function ‘double y1(double)’
y1=tata(a[i].y);
^
user.cpp:46:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:47:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1!=y1)
^
user.cpp:49:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1<y1) poz[x1]=y1;
^
user.cpp:49:30: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
if(x1<y1) poz[x1]=y1;
^
user.cpp:50:24: error: invalid types ‘int [400007][double(double)throw ()]’ for array subscript
else poz[y1]=x1;
^
user.cpp:51:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1==y1) y1++;
^
user.cpp:51:26: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
if(x1==y1) y1++;
^
user.cpp:51:26: error: lvalue required as increment operand
user.cpp:54:18: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
bb[k]=y1;
^
user.cpp:25:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("apm.in", "r", stdin);
^
user.cpp:26:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("apm.out", "w", stdout);
^
user.cpp:27:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &n, &m);
^
user.cpp:30:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &x, &y, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !