Borderou de evaluare (job #2064842)
Utilizator | Data | 12 noiembrie 2017 21:52:05 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘double cmap(int, int)’:
user.cpp:25:24: error: ‘INT_MAX’ was not declared in this scope
double bestsol=INT_MAX;
^
user.cpp:25:16: warning: unused variable ‘bestsol’ [-Wunused-variable]
double bestsol=INT_MAX;
^
user.cpp:31:24: error: ‘INT_MAX’ was not declared in this scope
double bestsol=INT_MAX;
^
user.cpp:45:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<sideLane.size()-1; ++i)
^
user.cpp:46:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i+1; j<=i+7 && j<sideLane.size(); ++j) if(dist(myVect[sideLane[i]],myVect[sideLane[j]]) < bestsol) bestsol=dist(myVect[sideLane[i]],myVect[sideLane[j]]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !