Borderou de evaluare (job #3271886)
Utilizator | Data | 27 ianuarie 2025 17:58:17 | |
---|---|---|---|
Problema | Geometrie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'db d(punct, punct)':
main.cpp:20:12: error: 'sqrt' was not declared in this scope
20 | return sqrt( (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y) );
| ^~~~
main.cpp: In function 'int main()':
main.cpp:56:13: error: 'sort' was not declared in this scope; did you mean 'short'?
56 | sort(st.begin(), st.end());
| ^~~~
| short
main.cpp:59:26: warning: comparison of integer expressions of different signedness: 'std::vector<long double>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
59 | if(st.size() > k - 2) dmin = min(dmin, st[k - 2]);
| ~~~~~~~~~~^~~~~~~
main.cpp:60:26: warning: comparison of integer expressions of different signedness: 'std::vector<long double>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
60 | if(dr.size() > k - 2) dmin = min(dmin, dr[k - 2]);
| ~~~~~~~~~~^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !