Borderou de evaluare (job #735953)

Utilizator avatar Costache_Andrei_paul Costache Andrei Paul Costache_Andrei_paul IP ascuns
Problemă Arme (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 5 oct. 2023 17:00:00 Scor 16

Raport evaluator

Compilare: main.c: In function 'swap': main.c:4:17: warning: initialization of 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion] 4 | int cpa=a; | ^ main.c:6:10: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 6 | b=cpa; | ^ main.c: In function 'sort': main.c:13:39: warning: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 13 | swap(v[i], v[j]); | ~^~~ | | | int main.c:3:16: note: expected 'int *' but argument is of type 'int' 3 | void swap(int *a, int *b){ | ~~~~~^ main.c:13:45: warning: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 13 | swap(v[i], v[j]); | ~^~~ | | | int main.c:3:24: note: expected 'int *' but argument is of type 'int' 3 | void swap(int *a, int *b){ | ~~~~~^ main.c: In function 'main': main.c:37:39: warning: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 37 | swap(v[i],b[i]); | ~^~~ | | | int main.c:3:16: note: expected 'int *' but argument is of type 'int' 3 | void swap(int *a, int *b){ | ~~~~~^ main.c:37:44: warning: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 37 | swap(v[i],b[i]); | ~^~~ | | | int main.c:3:24: note: expected 'int *' but argument is of type 'int' 3 | void swap(int *a, int *b){ | ~~~~~^ main.c:45:39: warning: passing argument 1 of 'swap' makes pointer from integer without a cast [-Wint-conversion] 45 | swap(b[m-n+i], v[i]); | ~^~~~~~~ | | | int main.c:3:16: note: expected 'int *' but argument is of type 'int' 3 | void swap(int *a, int *b){ | ~~~~~^ main.c:45:49: warning: passing argument 2 of 'swap' makes pointer from integer without a cast [-Wint-conversion]
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb OK 4
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb Incorect 0
9 1 ms 245 kb OK 4
10 1 ms 245 kb Incorect 0
11 1 ms 241 kb Incorect 0
12 1 ms 245 kb Incorect 0
13 1 ms 245 kb Incorect 0
14 1 ms 245 kb Incorect 0
15 1 ms 245 kb Incorect 0
16 1 ms 245 kb Incorect 0
17 1 ms 245 kb OK 4
18 1 ms 245 kb Incorect 0
19 1 ms 245 kb OK 4
20 1 ms 245 kb Incorect 0
21 1 ms 245 kb Incorect 0
22 1 ms 241 kb Incorect 0
23 1 ms 245 kb Incorect 0
24 1 ms 245 kb Incorect 0
25 1 ms 245 kb Incorect 0
Punctaj total 16