Borderou de evaluare (job #2187321)

Utilizator cyg_andrei_HHendoreanu Andrei Sebastian cyg_andrei_H Data 26 martie 2018 13:27:30
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘void constr(long long int, int*)’: user.cpp:12:24: warning: ‘sizeof’ on array function parameter ‘a’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ user.cpp:10:37: note: declared here void constr(long long n,int a[NMAX+5]) ^ user.cpp:12:22: 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(a,0,sizeof(a)); ^ user.cpp: In function ‘int main()’: user.cpp:52:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:53:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^ user.cpp:59:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&d); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms7164kbOK10
24ms7168kbOK10
30ms2708kbOK10
44ms2700kbOK10
512ms7296kbOK10
636ms7560kbOK10
792ms8192kbOK10
8112msDepăşitMemory limit exceeded.0
9152msDepăşitMemory limit exceeded.0
10168msDepăşitMemory limit exceeded.0
Punctaj total70

Ceva nu functioneaza?