Borderou de evaluare (job #2681725)

Utilizator giotoPopescu Ioan gioto Data 6 decembrie 2020 15:30:42
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:396: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:390: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:391: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:393:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:395: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:396: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:406:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ main.cpp:408: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
263ms7864kbCorrect4
332ms7864kbCorrect4
4707ms58589kbCorrect413
5602ms57397kbCorrect4
6627ms57802kbCorrect5
73503ms59375kbTime limit exceeded00
83503ms61730kbTime limit exceeded0
93502ms57933kbTime limit exceeded0
103500ms59449kbTime limit exceeded00
113502ms61730kbTime limit exceeded0
123501ms57802kbTime limit exceeded0
133503ms62128kbTime limit exceeded0
143500ms62914kbTime limit exceeded0
Punctaj total24

Ceva nu functioneaza?