Borderou de evaluare (job #1852832)
Utilizator | Data | 21 ianuarie 2017 10:55:48 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:40: error: ‘int y1’ redeclared as different kind of symbol
int i,n,m,p[200004],r[200004],x,y,s,x1,y1,nr;
^
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:26:11: error: assignment of function ‘double y1(double)’
y1=y;
^
user.cpp:26:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:29:20: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
while (p[y1]!=y1)
^
user.cpp:30:20: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
y1=p[y1];
^
user.cpp:31:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (x1!=y1)
^
user.cpp:36:27: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
if (r[x1]>r[y1])
^
user.cpp:37:21: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
p[y1]=x1;
^
user.cpp:38:32: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
else if (r[x1]<r[y1])
^
user.cpp:39:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
p[x1]=y1;
^
user.cpp:42:21: error: invalid types ‘int [200004][double(double)throw ()]’ for array subscript
p[y1]=x;
^
user.cpp:10:33: 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:11:35: 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:12: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:14:81: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !