Borderou de evaluare (job #2681726)

Utilizator giotoPopescu Ioan gioto Data 6 decembrie 2020 15:34:01
Problema Arboras Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 24

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:397:48: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] for (int i = 1; i < n ; ++i) scanf("%d", &l[i]); ^ main.cpp:391:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("arboras.in", "r", stdin); ^ main.cpp:392:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("arboras.out", "w", stdout); ^ main.cpp:394:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:396:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for (int i = 1; i < n ; ++i) scanf("%d", &tt[i]); ^ main.cpp:397:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for (int i = 1; i < n ; ++i) scanf("%d", &l[i]); ^ main.cpp:407:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ main.cpp:409:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ main.cpp: In function 'void dfs(int)': main.cpp:41:3: warning: 'mx' may be used uninitialized in this function [-Wmaybe-uninitialized] if (sz[it.x] > mx) mx = sz[it.x], heavy[nod] = it.x; ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
132ms7864kbCorrect311
262ms7864kbCorrect4
331ms7864kbCorrect4
4717ms58589kbCorrect413
5580ms57397kbCorrect4
6719ms57802kbCorrect5
73500ms59375kbTime limit exceeded00
83501ms61730kbTime limit exceeded0
93501ms57892kbTime limit exceeded0
103500ms59375kbTime limit exceeded00
113503ms61730kbTime limit exceeded0
123500ms57802kbTime limit exceeded0
133502ms62128kbTime limit exceeded0
143500ms62914kbTime limit exceeded0
Punctaj total24

Ceva nu functioneaza?