Borderou de evaluare (job #3341639)

Utilizator Iancu007Sandea Iancu-Ioan Iancu007 Data 20 februarie 2026 14:48:19
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:31:36: warning: narrowing conversion of 'std::sqrt<int>((((vx[i] - vx[j]) * (vx[i] - vx[j])) + ((vy[i] - vy[j]) * (vy[i] - vy[j]))))' from '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to 'float' [-Wnarrowing] 31 | g[i].push_back({j, sqrt((vx[i]-vx[j])*(vx[i]-vx[j])+(vy[i]-vy[j])*(vy[i]-vy[j]))}); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:32:36: warning: narrowing conversion of 'std::sqrt<int>((((vx[i] - vx[j]) * (vx[i] - vx[j])) + ((vy[i] - vy[j]) * (vy[i] - vy[j]))))' from '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} to 'float' [-Wnarrowing] 32 | g[j].push_back({i, sqrt((vx[i]-vx[j])*(vx[i]-vx[j])+(vy[i]-vy[j])*(vy[i]-vy[j]))}); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:47:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<pe>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for (int i=0; i<g[c.vf].size(); i++) | ~^~~~~~~~~~~~~~~ main.cpp:24:12: warning: unused variable 'a' [-Wunused-variable] 24 | int n, a, b; | ^ main.cpp:24:15: warning: unused variable 'b' [-Wunused-variable] 24 | int n, a, b; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms557kbIncorect0
31ms823kbIncorect0
42ms4960kbMemory limit exceeded0
52ms5013kbMemory limit exceeded0
62ms5013kbMemory limit exceeded0
72ms5013kbMemory limit exceeded0
82ms5013kbMemory limit exceeded0
92ms5013kbMemory limit exceeded0
102ms5013kbMemory limit exceeded0
Punctaj total10

Ceva nu functioneaza?