Borderou de evaluare (job #817487)

Utilizator avatar Radu_Balas Radu Andrei Balas Radu_Balas IP ascuns
Problemă Cod (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 1 apr. 2025 20:45:44 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:158:19: error: passing argument 2 of 'd2' makes pointer from integer without a cast [-Wint-conversion] 158 | if (d2(r,x[r])){ | ~^~~ | | | int main.c:3:19: note: expected 'int *' but argument is of type 'int' 3 | int d2(int n, int x[n]){ | ~~~~^~~~ main.c:162:19: error: passing argument 2 of 'd3' makes pointer from integer without a cast [-Wint-conversion] 162 | if (d3(r,x[r])){ | ~^~~ | | | int main.c:9:19: note: expected 'int *' but argument is of type 'int' 9 | int d3(int n, int x[n]){ | ~~~~^~~~ main.c:166:19: error: passing argument 2 of 'd4' makes pointer from integer without a cast [-Wint-conversion] 166 | if (d4(r,x[r])){ | ~^~~ | | | int main.c:18:20: note: expected 'int *' but argument is of type 'int' 18 | int d4 (int n, int x[n]){ | ~~~~^~~~ main.c:170:19: error: passing argument 2 of 'd5' makes pointer from integer without a cast [-Wint-conversion] 170 | if (d5(r,x[r])){ | ~^~~ | | | int main.c:28:20: note: expected 'int *' but argument is of type 'int' 28 | int d5 (int n, int x[n]){ | ~~~~^~~~ main.c:174:19: error: passing argument 2 of 'd6' makes pointer from integer without a cast [-Wint-conversion] 174 | if (d6(r,x[r])){ | ~^~~ | | | int main.c:34:20: note: expected 'int *' but argument is of type 'int' 34 | int d6 (int n, int x[n]){ | ~~~~^~~~ main.c:178:19: error: passing argument 2 of 'd7' makes pointer from integer without a cast [-Wint-conversion] 178 | if (d7(r,x[r])){ | ~^~~ | | | int main.c:43:19: note: expected 'int *' but argument is of type 'int' 43 | int d7(int n, int x[n]){ | ~~~~^~~~ main.c:182:19: error: passing argument 2 of 'd8' makes pointer from integer without a cast [-Wint-conversion]