Borderou de evaluare (job #839759)

Utilizator avatar Ionutiacob Ionut Iacob Ionutiacob IP ascuns
Problemă Criptic (clasa a 7-a) Compilator c
Rundă Arhiva de probleme Status evaluat
Dată 3 nov. 2025 20:26:33 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'conv': main.c:9:27: warning: multi-character character constant [-Wmultichar] 9 | if (copie[k][j] - '48' >= 10) | ^~~~ main.c:10:56: warning: multi-character character constant [-Wmultichar] 10 | nrbaza62 = nrbaza62 * 100 + (copie[k][j] - '48'); | ^~~~ main.c:12:55: warning: multi-character character constant [-Wmultichar] 12 | nrbaza62 = nrbaza62 * 10 + (copie[k][j] - '48'); | ^~~~ main.c: In function 'main': main.c:26:23: warning: comparison between pointer and integer 26 | if (mat[k][i] == "\n") { | ^~ main.c:26:23: warning: comparison with string literal results in unspecified behavior [-Waddress] main.c:44:23: warning: operation on 'j' may be undefined [-Wsequence-point] 44 | copie[i][j++] = nrord[i][j]; | ~^~ main.c:49:34: error: passing argument 1 of 'conv' makes pointer from integer without a cast [-Wint-conversion] 49 | min = conv(copie[1000001][3], k); | ~~~~~~~~~~~~~~^~~ | | | char main.c:6:15: note: expected 'char (*)[3]' but argument is of type 'char' 6 | int conv(char copie[1000001][3], int l) { | ~~~~~^~~~~~~~~~~~~~~~~ main.c:51:36: error: passing argument 1 of 'conv' makes pointer from integer without a cast [-Wint-conversion] 51 | if (conv(copie[1000001][3], j) < min) { | ~~~~~~~~~~~~~~^~~ | | | char main.c:6:15: note: expected 'char (*)[3]' but argument is of type 'char' 6 | int conv(char copie[1000001][3], int l) { | ~~~~~^~~~~~~~~~~~~~~~~ main.c:80:15: error: passing argument 1 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types] 80 | strcpy(val[1], copie[1]); | ~~~^~~ | | | int * In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from main.c:1: /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'int *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:83:19: error: passing argument 1 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types] 83 | strcpy(val[next[i]], mat[next[i]]); | ~~~^~~~~~~~~ | |