Borderou de evaluare (job #2393005)

Utilizator REDCRAFTPadure Damian REDCRAFT Data 30 martie 2019 18:22:17
Problema Next Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void h_scad(int*, int*, int*)': main.cpp:21:24: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ main.cpp:18:39: note: declared here void h_scad(int a[],int b[],int c[NMAX]) ^ main.cpp:21: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(c,0,sizeof(c)); ^ main.cpp: In function 'void h_adun(int*, int*, int*)': main.cpp:44:24: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ main.cpp:41:35: note: declared here void h_adun(int a[],int b[],int c[]) ^ main.cpp:44: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(c,0,sizeof(c)); ^ main.cpp: In function 'int main()': main.cpp:83:9: warning: unused variable 'n' [-Wunused-variable] int n,i,k,cnt=0; ^ main.cpp:83:11: warning: unused variable 'i' [-Wunused-variable] int n,i,k,cnt=0; ^ main.cpp:83:13: warning: unused variable 'k' [-Wunused-variable] int n,i,k,cnt=0; ^ main.cpp:83:15: warning: unused variable 'cnt' [-Wunused-variable] int n,i,k,cnt=0; ^~~ main.cpp:80: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); ^ main.cpp:81: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1551ms131kbTime limit exceeded0
2552ms131kbTime limit exceeded0
3551ms131kbTime limit exceeded0
4552ms131kbTime limit exceeded0
5551ms262kbTime limit exceeded0
6552ms524kbTime limit exceeded0
7551ms1179kbTime limit exceeded0
8551ms2752kbTime limit exceeded0
9551ms3670kbTime limit exceeded0
10551ms4063kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?