Borderou de evaluare (job #779744)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Elementul Majoritar (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 7 iun. 2024 18:35:00 Scor 0

Raport evaluator

Eroare de compilare: main.c:4:5: error: size '4000000000' of array 'ap' exceeds maximum object size '2147483647' 4 | int ap[1000000000]; | ^~ main.c: In function 'main': main.c:12:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 12 | fscanf(fin,"%d",&n); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:9:35: warning: variable 'y' set but not used [-Wunused-but-set-variable] 9 | int apar=0,i,maxa=-1,a,max=-1,y; | ^ main.c:9:9: warning: unused variable 'apar' [-Wunused-variable] 9 | int apar=0,i,maxa=-1,a,max=-1,y; | ^~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:14:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin,"%d",&a); | ^~~~~~~~~~~~~~~~~~~