Borderou de evaluare (job #1265599)
Utilizator | Data | 17 noiembrie 2014 14:58:26 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:8: error: ‘int y1’ redeclared as different kind of symbol
int x1,y1;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
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 ‘void unite(int, int)’:
user.cpp:25:23: error: invalid types ‘int [10000][double(double)throw ()]’ for array subscript
if(RG[x]>RG[y])TT[y1]=x1;
^
user.cpp:26:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
else TT[x1]=y1;
^
user.cpp: In function ‘int main()’:
user.cpp:52:15: error: assignment of function ‘double y1(double)’
y1=search1(y);
^
user.cpp:52:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:53:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1!=y1)
^
user.cpp:32:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d",&n,&m);
^
user.cpp:36:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d%d",&x,&y,&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !