Borderou de evaluare (job #3380827)

Utilizator teosimSimzianu Teodora teosim Data 2 decembrie 2026 16:35:41
Problema Drumuri minime Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:36:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | for (int i=0;i<graf[nod].size();i++) | ~^~~~~~~~~~~~~~~~~ main.cpp:39:32: error: 'log' was not declared in this scope; did you mean 'long'? 39 | long double dNou=d+log((long double)graf[nod][i].cost); | ^~~ | long main.cpp:54:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 54 | for (int j=0;j<graf[nod].size();j++) | ~^~~~~~~~~~~~~~~~~ main.cpp:57:44: error: 'log' was not declared in this scope; did you mean 'long'? 57 | long double dNou=distanta[nod]+log((long double)graf[nod][j].cost); | ^~~ | long Non zero exit status: 1

Ceva nu functioneaza?