Borderou de evaluare (job #2495522)
Utilizator | Data | 19 noiembrie 2019 16:32:39 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'double distanta(Punct, Punct)':
main.cpp:40:67: error: 'sqrt' was not declared in this scope
return sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
^
main.cpp: In function 'double cmap(int, int, const std::vector<Punct>&)':
main.cpp:45:20: error: 'FLT_MAX' was not declared in this scope
double distMin = FLT_MAX;
^~~~~~~
main.cpp:73:100: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int poz = dreapta + 1, delta = Puncte[dreapta + 1].x - currentX; delta <= minimGlobal && poz < Puncte.size(); poz++) {
~~~~^~~~~~~~~~~~~~~
main.cpp:82:16: error: 'INT_MAX' was not declared in this scope
int distMin = INT_MAX;
^~~~~~~
main.cpp:84:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < PuncteApropiate.size() - distPozVerificari; i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:85:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i + 1; j <= i + distPozVerificari && j < PuncteApropiate.size(); j++)
~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:88:39: error: 'sqrtf' was not declared in this scope
return min(minimGlobal, sqrtf(distMin));
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !