Borderou de evaluare (job #2748201)

Utilizator carmenacatrineiCarmen-Lorena Acatrinei carmenacatrinei Data 29 aprilie 2021 23:32:34
Problema Sea Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:40:33: error: 'Far' has not been declared float distantaVaporFar(Vapor v, Far f) ^~~ main.cpp: In function 'float distantaVaporFar(Vapor, int)': main.cpp:42:20: error: request for member 'x' in 'f', which is of non-class type 'int' return sqrt((f.x - v.x) * (f.x - v.x) + v.y * v.y); ^ main.cpp:42:34: error: request for member 'x' in 'f', which is of non-class type 'int' return sqrt((f.x - v.x) * (f.x - v.x) + v.y * v.y); ^ main.cpp: In function 'int main()': main.cpp:90:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (ultimulVaporAdaugat < vapoare.size() ) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ main.cpp:103:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int v = 0; v < listVap.size(); v++) ~~^~~~~~~~~~~~~~~~ main.cpp:107:63: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<Far> >::value_type {aka Far}' to 'int' for argument '2' to 'float distantaVaporFar(Vapor, int)' if (distantaVaporFar(listVap[v], faruri[i]) < distantaVaporFar(listVap[v - 1], faruri[i])) ^ main.cpp:107:109: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<Far> >::value_type {aka Far}' to 'int' for argument '2' to 'float distantaVaporFar(Vapor, int)' if (distantaVaporFar(listVap[v], faruri[i]) < distantaVaporFar(listVap[v - 1], faruri[i])) ^ main.cpp:115:85: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<Far> >::value_type {aka Far}' to 'int' for argument '2' to 'float distantaVaporFar(Vapor, int)' faruri[i].razaMin = distantaVaporFar(listVap[faruri[i].n - 1], faruri[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?