Borderou de evaluare (job #2370058)

Utilizator ardutgamerAndrei Bancila ardutgamer Data 6 martie 2019 10:32:32
Problema Sosete Status done
Runda manelecudedicatie Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void inmultire(int*, int*, int*)': main.cpp:39:18: warning: unused variable 'aux' [-Wunused-variable] int tr = 0 , aux; ^~~ main.cpp: In function 'void putinInt(int*, int)': main.cpp:62:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:60:25: note: declared here void putinInt(int a[NMAX],int k) ^ main.cpp:62: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)); ^ main.cpp: In function 'void putinHuge(int*, char*)': main.cpp:79:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:77:26: note: declared here void putinHuge(int a[NMAX],char k[NMAX]) ^ main.cpp:79: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)); ^ main.cpp: In function 'void cpy(int*, int*)': main.cpp:86:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:84:20: note: declared here void cpy(int a[NMAX],int b[NMAX]) ^ main.cpp:86: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)); ^ main.cpp: In function 'int main()': main.cpp:95:23: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1005]' [-Wformat=] scanf("%s%s",&n,&p); ^ main.cpp:95:23: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[1005]' [-Wformat=] main.cpp:93:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sosete.in","r",stdin); ^ main.cpp:94:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sosete.out","w",stdout); ^ main.cpp:95:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s%s",&n,&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbOK5
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
112ms131kbIncorect0
122ms131kbIncorect0
132ms131kbIncorect0
142ms131kbIncorect0
153ms131kbIncorect0
163ms131kbIncorect0
173ms131kbIncorect0
183ms131kbIncorect0
193ms131kbKilled by Signal 110
202ms131kbKilled by Signal 110
Punctaj total10

Ceva nu functioneaza?