Borderou de evaluare (job #2681729)

Utilizator giotoPopescu Ioan gioto Data 6 decembrie 2020 15:38:59
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:405: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:399: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:400: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:402:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:404: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:405: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:415:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ main.cpp:417: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
139ms7864kbCorrect311
266ms7864kbCorrect4
327ms7864kbCorrect4
4702ms58589kbCorrect413
5589ms57397kbCorrect4
6634ms57802kbCorrect5
73500ms59375kbTime limit exceeded00
83501ms61730kbTime limit exceeded0
93500ms57802kbTime limit exceeded0
103502ms59445kbTime limit exceeded00
113501ms61730kbTime limit exceeded0
123500ms57802kbTime limit exceeded0
133503ms62128kbTime limit exceeded0
143503ms62914kbTime limit exceeded0
Punctaj total24

Ceva nu functioneaza?