Borderou de evaluare (job #3349668)

Utilizator popescumalinaPopescu Malina popescumalina Data 1 aprilie 2026 14:46:45
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'void calc(int, int)': main.cpp:17:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 17 | for(i = 0; i < A[nod].size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:50:9: warning: 'crt' may be used uninitialized [-Wmaybe-uninitialized] 50 | calc(crt, 0); | ~~~~^~~~~~~~ main.cpp:30:21: note: 'crt' was declared here 30 | int x, y, maxi, crt; | ^~~ main.cpp:43:9: warning: 'maxi' may be used uninitialized [-Wmaybe-uninitialized] 43 | if(dist[i] > maxi) | ^~ main.cpp:30:15: note: 'maxi' was declared here 30 | int x, y, maxi, crt; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
211ms417kbKilled by Signal 110
30ms303kbOK10
411ms479kbKilled by Signal 110
512ms1052kbKilled by Signal 110
67ms2392kbOK10
79ms3440kbOK10
814ms5058kbOK10
923ms11911kbKilled by Signal 110
1019ms6553kbOK10
Punctaj total60

Ceva nu functioneaza?