Borderou de evaluare (job #1737116)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 3 august 2016 13:30:58
Problema Sccm Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In member function ‘void tree::init(int)’: user.cpp:19:32: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(aib , 0 , sizeof(aib)); ^ user.cpp: In member function ‘void tree::uniteTree(tree, tree)’: user.cpp:26:32: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(aib , 0 , sizeof(aib)); ^ user.cpp: In function ‘void readData()’: user.cpp:69:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:71:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.cpp:73:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^ user.cpp: In function ‘int main()’: user.cpp:153:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sccm.in","r",stdin); ^ user.cpp:154:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sccm.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms5452kbOK10
28ms5456kbIncorect0
38ms5468kbIncorect0
48ms5484kbIncorect0
520ms5648kbIncorect0
6944ms8328kbIncorect0
7Depăşit11408kbTime limit exceeded.0
8Depăşit16552kbTime limit exceeded.0
9Depăşit18868kbTime limit exceeded.0
10Depăşit20904kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?