Borderou de evaluare (job #817312)

Utilizator avatar TudorMit Mituca Tudor-Ionut TudorMit IP ascuns
Problemă Prâslea ( clasa a 6-a ) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 31 mar. 2025 20:40:33 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:10:19: error: conflicting types for 'x'; have 'long long int' 10 | long long s=0,x; | ^ main.c:9:17: note: previous declaration of 'x' with type 'int' 9 | int n,m,p,d,x,i,secv=0,maxs=-1,par=0; | ^ main.c:12:32: error: 'l' undeclared (first use in this function) 12 | fscanf(fin,"%d%d%d",&n,&m,&l); | ^ main.c:12:32: note: each undeclared identifier is reported only once for each function it appears in main.c:17:20: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'int *' [-Wformat=] 17 | fscanf(fin,"%lld",&d); | ~~~^ ~~ | | | | | int * | long long int * | %d main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin,"%d%lld",&p,&x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin,"%lld",&d); | ^~~~~~~~~~~~~~~~~~~~~