Borderou de evaluare (job #2305971)
Utilizator | Data | 21 decembrie 2018 13:39:18 | |
---|---|---|---|
Problema | Elicoptere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:63: error: 'int y1 [101]' redeclared as different kind of symbol
int nr,v[101],insule,elicoptere,x1[101],x2[101],x3[101],y1[101],y2[101],y3[101],n,c,rasp1,rasp2;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/iosfwd:38,
from /usr/include/c++/6/ios:38,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)'
__MATHCALL (y1,, (_Mdouble_));
^
main.cpp: In function 'void dijkstra()':
main.cpp:120:87: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pair<double,pair<double,double> >ec1=calculeaza_ecuatia_dreptei(x1[poz],y1[poz],x2[poz],y2[poz]);
^
main.cpp:120:104: error: cannot convert 'double (*)(double) throw ()' to 'double' for argument '2' to 'std::pair<double, std::pair<double, double> > calculeaza_ecuatia_dreptei(double, double, double, double)'
pair<double,pair<double,double> >ec1=calculeaza_ecuatia_dreptei(x1[poz],y1[poz],x2[poz],y2[poz]);
^
main.cpp:122:87: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pair<double,pair<double,double> >ec3=calculeaza_ecuatia_dreptei(x1[poz],y1[poz],x3[poz],y3[poz]);
^
main.cpp:122:104: error: cannot convert 'double (*)(double) throw ()' to 'double' for argument '2' to 'std::pair<double, std::pair<double, double> > calculeaza_ecuatia_dreptei(double, double, double, double)'
pair<double,pair<double,double> >ec3=calculeaza_ecuatia_dreptei(x1[poz],y1[poz],x3[poz],y3[poz]);
^
main.cpp:128:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d=min(d,calculeaza_distanta(x1[i],y1[i],ec1,x1[poz],y1[poz],x2[poz],y2[poz]));
^
main.cpp:128:75: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d=min(d,calculeaza_distanta(x1[i],y1[i],ec1,x1[poz],y1[poz],x2[poz],y2[poz]));
^
main.cpp:128:92: error: cannot convert 'double (*)(double) throw ()' to 'double' for argument '2' to 'double calculeaza_distanta(double, double, std::pair<double, std::pair<double, double> >, double, double, double, double)'
d=min(d,calculeaza_distanta(x1[i],y1[i],ec1,x1[poz],y1[poz],x2[poz],y2[poz]));
^
main.cpp:129:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d=min(d,calculeaza_distanta(x1[i],y1[i],ec2,x3[poz],y3[poz],x2[poz],y2[poz]));
^
main.cpp:129:92: error: cannot convert 'double (*)(double) throw ()' to 'double' for argument '2' to 'double calculeaza_distanta(double, double, std::pair<double, std::pair<double, double> >, double, double, double, double)'
d=min(d,calculeaza_distanta(x1[i],y1[i],ec2,x3[poz],y3[poz],x2[poz],y2[poz]));
^
main.cpp:130:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d=min(d,calculeaza_distanta(x1[i],y1[i],ec3,x1[poz],y1[poz],x3[poz],y3[poz]));
^
main.cpp:130:75: warning: pointer to a function used in arithmetic [-Wpointer-arith]
d=min(d,calculeaza_distanta(x1[i],y1[i],ec3,x1[poz],y1[poz],x3[poz],y3[poz]));
^
main.cpp:130:92: error: cannot convert 'double (*)(double) throw ()' to 'double' for argument '2' to 'double calculeaza_distanta(double, double, std::pair<double, std::pair<double, double> >, double, double, double, double)'
d=min(d,calculeaza_distanta(x1[i],y1[i],ec3,x1[poz],y1[poz],x3[poz],y3[poz]));
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !