Borderou de evaluare (job #2392986)

Utilizator REDCRAFTPadure Damian REDCRAFT Data 30 martie 2019 17:56:10
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
1552ms8126kbTime limit exceeded0
2551ms8126kbTime limit exceeded0
3552ms8126kbTime limit exceeded0
4552ms8126kbTime limit exceeded0
5552ms8126kbTime limit exceeded0
6550ms8126kbTime limit exceeded0
7552ms8126kbTime limit exceeded0
8551ms8126kbTime limit exceeded0
9552ms8126kbTime limit exceeded0
10551ms8126kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?