Borderou de evaluare (job #2789630)

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

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:147:19: warning: passing argument 3 of 'QuickSort' from incompatible pointer type [-Wincompatible-pointer-types] 147 | QuickSort(0,i-1,&v2); | ^~~ | | | int (*)[1000000] main.c:9:41: note: expected 'const int **' but argument is of type 'int (*)[1000000]' 9 | void QuickSort(int st,int dr,const int *v2[LUN]){ | ~~~~~~~~~~~^~~~~~~ main.c: In function 'Raspuns': main.c:152:12: warning: unused variable 'z' [-Wunused-variable] 152 | int s,nr,z;
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK5
21ms184kbOK5
31ms184kbPrimul numar corect1
41ms184kbKilled by Signal 110
51ms184kbOK5
61ms184kbKilled by Signal 110
76ms1843kbOK5
81ms184kbOK5
91ms184kbKilled by Signal 110
101ms184kbKilled by Signal 110
1112ms208kbKilled by Signal 110
121ms184kbOK5
131ms184kbKilled by Signal 110
141ms184kbKilled by Signal 110
15303ms765kbTime limit exceeded0
162ms212kbKilled by Signal 110
173ms409kbKilled by Signal 110
181ms184kbKilled by Signal 110
191ms184kbKilled by Signal 110
202ms184kbOK5
Punctaj total36

Ceva nu functioneaza?