Borderou de evaluare (job #3166764)

Utilizator tudor_costinCostin Tudor tudor_costin Data 9 noiembrie 2023 16:09:24
Problema Biperm Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int dfs(int, int)': main.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 24 | for(int i=0;i<v[nod].size();i++) | ~^~~~~~~~~~~~~~ main.cpp: In function 'void dfs2(int, int, int)': main.cpp:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, bool> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 53 | for(int i=0;i<v[nod].size();i++) | ~^~~~~~~~~~~~~~ main.cpp: In function 'int dfs(int, int)': main.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type] 32 | } | ^ main.cpp:15:5: warning: infinite recursion detected [-Winfinite-recursion] 15 | int dfs(int nod,int first) | ^~~ main.cpp:20:22: note: recursive call 20 | int cand0=dfs(v[nod][0].first,0)+v[nod][0].second; | ~~~^~~~~~~~~~~~~~~~~~~ main.cpp:29:23: note: recursive call 29 | return dfs(u.first,0)+u.second; | ~~~^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
19ms417kbKilled by Signal 110
29ms425kbKilled by Signal 110
39ms421kbKilled by Signal 110
410ms425kbKilled by Signal 110
510ms430kbKilled by Signal 110
64ms430kbKilled by Signal 110
74ms450kbKilled by Signal 110
810ms454kbKilled by Signal 110
911ms1089kbKilled by Signal 110
1011ms1093kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?