Pagini recente » Borderou de evaluare (job #732137) | Borderou de evaluare (job #2648831) | Borderou de evaluare (job #2411051) | Borderou de evaluare (job #1719824) | Borderou de evaluare (job #2789593)
Borderou de evaluare (job #2789593)
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 |
1 | 2ms | 286kb | Primul numar corect | 1 |
2 | 1ms | 184kb | Primul numar corect | 1 |
3 | 1ms | 184kb | Primul numar corect | 1 |
4 | 2ms | 184kb | Primul numar corect | 1 |
5 | 1ms | 184kb | Primul numar corect | 1 |
6 | 1ms | 184kb | Primul numar corect | 1 |
7 | 1ms | 184kb | Killed by Signal 11 | 0 |
8 | 1ms | 184kb | Primul numar corect | 1 |
9 | 2ms | 184kb | Primul numar corect | 1 |
10 | 2ms | 184kb | Primul numar corect | 1 |
11 | 2ms | 184kb | Primul numar corect | 1 |
12 | 1ms | 184kb | Primul numar corect | 1 |
13 | 1ms | 184kb | Primul numar corect | 1 |
14 | 1ms | 184kb | Primul numar corect | 1 |
15 | 1ms | 184kb | Killed by Signal 11 | 0 |
16 | 1ms | 184kb | Primul numar corect | 1 |
17 | 1ms | 184kb | Killed by Signal 11 | 0 |
18 | 1ms | 184kb | Primul numar corect | 1 |
19 | 1ms | 184kb | Primul numar corect | 1 |
20 | 1ms | 184kb | Primul numar corect | 1 |
Punctaj total | 17 |