Borderou de evaluare (job #2370824)

Utilizator ardutgamerAndrei Bancila ardutgamer Data 6 martie 2019 13:54:01
Problema Sosete Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void inmultire(int*, int*, int*)': main.cpp:40:18: warning: unused variable 'aux' [-Wunused-variable] int tr = 0 , aux; ^~~ main.cpp: In function 'void putinInt(int*, int)': main.cpp:63:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:61:25: note: declared here void putinInt(int a[NMAX],int k) ^ main.cpp:63: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:80:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:78:26: note: declared here void putinHuge(int a[NMAX],char k[NMAX]) ^ main.cpp:80: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:87:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument] memset(a,0,sizeof(a)); ^ main.cpp:85:20: note: declared here void cpy(int a[NMAX],int b[NMAX]) ^ main.cpp:87: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:96:23: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1005]' [-Wformat=] scanf("%s%s",&n,&p); ^ main.cpp:96:23: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[1005]' [-Wformat=] main.cpp:100:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < strlen(n) ; i++) ~~^~~~~~~~~~~ main.cpp:103:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < strlen(p) ; i++) ~~^~~~~~~~~~~ main.cpp:94: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:95: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);
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbOK5
92ms131kbIncorect0
102ms131kbIncorect0
112ms131kbIncorect0
122ms131kbIncorect0
132ms131kbIncorect0
142ms131kbIncorect0
153ms131kbIncorect0
163ms131kbIncorect0
173ms131kbIncorect0
183ms131kbIncorect0
194ms131kbIncorect0
204ms131kbIncorect0
Punctaj total30

Ceva nu functioneaza?