Borderou de evaluare (job #1737133)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 3 august 2016 13:49:18
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:21: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:28: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:71: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:73:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.cpp:75: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:155: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:156: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
18ms5456kbOK10
28ms5452kbIncorect0
38ms5464kbIncorect0
48ms5484kbIncorect0
520ms5656kbIncorect0
6112ms8328kbIncorect0
7304ms11440kbIncorect0
8704ms16484kbIncorect0
9928ms18768kbIncorect0
101112ms20772kbIncorect0
Punctaj total10

Ceva nu functioneaza?