Borderou de evaluare (job #2607757)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 30 aprilie 2020 10:13:48
Problema Produs Status done
Runda mereuafectatemotional Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void sch(int*, int*)': main.cpp:54:26: warning: 'sizeof' on array function parameter 't1' will return size of 'int*' [-Wsizeof-array-argument] memset(t1,0,sizeof(t1)); ^ main.cpp:52:22: note: declared here void sch(int t1[10005],int t2[10005]) ^ main.cpp:54:23: 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(t1,0,sizeof(t1)); ^ main.cpp:57:26: warning: 'sizeof' on array function parameter 't2' will return size of 'int*' [-Wsizeof-array-argument] memset(t2,0,sizeof(t2)); ^ main.cpp:52:36: note: declared here void sch(int t1[10005],int t2[10005]) ^ main.cpp:57:23: 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(t2,0,sizeof(t2)); ^ main.cpp: In function 'int main()': main.cpp:79:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("produs.in","r",stdin); ^ main.cpp:80:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("produs.out","w",stdout); ^ main.cpp:81:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(s,10005, stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms786kbOK10
29ms786kbOK10
3157ms786kbOK10
4651ms786kbTime limit exceeded0
5651ms786kbTime limit exceeded0
6650ms786kbTime limit exceeded0
7651ms786kbTime limit exceeded0
8652ms786kbTime limit exceeded0
9651ms786kbTime limit exceeded0
10652ms786kbTime limit exceeded0
Punctaj total30

Ceva nu functioneaza?