Borderou de evaluare (job #3270697)

Utilizator iulia_morariuIuli Morariu iulia_morariu Data 24 ianuarie 2025 11:13:49
Problema Rubarba 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:46:12: error: 'sqrt' was not declared in this scope 46 | return sqrt( abs(a.x - b.x) * abs(a.x - b.x) + abs(a.y - b.y) * abs(a.y - b.y) ); | ^~~~ main.cpp: In function 'punct pr(punct, punct, punct)': main.cpp:54:8: warning: unused variable 'd' [-Wunused-variable] 54 | db d = C.y - C.x * c; | ^ main.cpp: In function 'int main()': main.cpp:79:5: error: 'sort' was not declared in this scope; did you mean 'short'? 79 | sort(v + 0, v + n, cmp); | ^~~~ | short main.cpp:101:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<punct>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 101 | for(int i = 0; i + 1 < infs.size(); i++){ | ~~~~~~^~~~~~~~~~~~~ main.cpp:107:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<punct>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 107 | for(int k = 0; k < infs.size(); k++){ | ~~^~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?