Borderou de evaluare (job #2789593)

Utilizator Mihai.MocanuMihai mmm Mihai.Mocanu Data 27 octombrie 2021 18:05:29
Problema Expresie2 Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 17

Raport evaluator

Compilare: main.c: In function 'QuickSort': main.c:13:4: warning: assignment to 'int' from 'const int *' makes integer from pointer without a cast [-Wint-conversion] 13 | p=v2[(st+dr)/2]; | ^ main.c:15:14: warning: comparison between pointer and integer 15 | while(v2[s]<p){ | ^ main.c:18:14: warning: comparison between pointer and integer 18 | while(v2[d]>p){ | ^ main.c:23:8: warning: assignment to 'int' from 'const int *' makes integer from pointer without a cast [-Wint-conversion] 23 | aux=v2[d]; | ^ main.c:25:10: warning: assignment to 'const int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 25 | v2[s]=aux; | ^ main.c:29:17: warning: comparison between pointer and integer 29 | }while(v2[s]<p); | ^ main.c:32:17: warning: comparison between pointer and integer 32 | }while(v2[d]>p); | ^ main.c:35:20: warning: passing argument 3 of 'QuickSort' from incompatible pointer type [-Wincompatible-pointer-types] 35 | QuickSort(st,d,&v2); | ^~~ | | | const int *** main.c:9:41: note: expected 'const int **' but argument is of type 'const int ***' 9 | void QuickSort(int st,int dr,const int *v2[LUN]){ | ~~~~~~~~~~~^~~~~~~ main.c:38:22: warning: passing argument 3 of 'QuickSort' from incompatible pointer type [-Wincompatible-pointer-types] 38 | QuickSort(d+1,dr,&v2); | ^~~ | | | const int *** main.c:9:41: note: expected 'const int **' but argument is of type 'const int ***' 9 | void QuickSort(int st,int dr,const int *v2[LUN]){ | ~~~~~~~~~~~^~~~~~~ main.c: In function 'Dreptunghic': main.c:146:19: warning: passing argument 3 of 'QuickSort' from incompatible pointer type [-Wincompatible-pointer-types] 146 | QuickSort(0,i-1,&v2); | ^~~ | | | int (*)[100000] main.c:9:41: note: expected 'const int **' but argument is of type 'int (*)[100000]' 9 | void QuickSort(int st,int dr,const int *v2[LUN]){ | ~~~~~~~~~~~^~~~~~~ main.c: In function 'Raspuns': main.c:151:12: warning: unused variable 'z' [-Wunused-variable] 151 | int s,nr,z;
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms286kbPrimul numar corect1
21ms184kbPrimul numar corect1
31ms184kbPrimul numar corect1
42ms184kbPrimul numar corect1
51ms184kbPrimul numar corect1
61ms184kbPrimul numar corect1
71ms184kbKilled by Signal 110
81ms184kbPrimul numar corect1
92ms184kbPrimul numar corect1
102ms184kbPrimul numar corect1
112ms184kbPrimul numar corect1
121ms184kbPrimul numar corect1
131ms184kbPrimul numar corect1
141ms184kbPrimul numar corect1
151ms184kbKilled by Signal 110
161ms184kbPrimul numar corect1
171ms184kbKilled by Signal 110
181ms184kbPrimul numar corect1
191ms184kbPrimul numar corect1
201ms184kbPrimul numar corect1
Punctaj total17

Ceva nu functioneaza?