Borderou de evaluare (job #3358286)

Utilizator VasiesAnaMariaVasies Ana-Maria VasiesAnaMaria Data 16 iunie 2026 02:33:09
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:12:11: error: incompatible types when assigning to type 'FILE' from type 'FILE *' 12 | if((g=fopen("lgput.out","w"))==NULL) | ^~~~~ main.c:17:22: error: 'N' undeclared (first use in this function) 17 | if(scanf("%d%d",&N,&P)!=2) | ^ main.c:17:22: note: each undeclared identifier is reported only once for each function it appears in main.c:17:25: error: 'P' undeclared (first use in this function) 17 | if(scanf("%d%d",&N,&P)!=2) | ^ main.c:28:15: error: incompatible type for argument 1 of 'fclose' 28 | if(fclose(g)<0) | ^ | | | FILE In file included from main.c:1: /usr/include/stdio.h:178:26: note: expected 'FILE *' but argument is of type 'FILE' 178 | extern int fclose (FILE *__stream); | ~~~~~~^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?