Borderou de evaluare (job #1570524)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 16 ianuarie 2016 16:41:17
Problema Dezastru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: expected initializer before ‘double’ double sol[30][30],comb[30][30]; ^ user.cpp: In function ‘int main()’: user.cpp:7:12: error: ‘f’ was not declared in this scope fscanf(f,"%d %d",&N,&K); ^ user.cpp:11:9: error: ‘comb’ was not declared in this scope comb[i][0]=comb[i][i]=sol[i][0]=1; ^ user.cpp:11:31: error: ‘sol’ was not declared in this scope comb[i][0]=comb[i][i]=sol[i][0]=1; ^ user.cpp:14:13: error: ‘j’ was not declared in this scope for(j=1;j<=K;j++) ^ user.cpp:16:13: error: ‘comb’ was not declared in this scope comb[i][j]=comb[i-1][j]+comb[i-1][j-1]; ^ user.cpp:17:13: error: ‘sol’ was not declared in this scope sol[i][j]=sol[i-1][j]+sol[i-1][j-1]*V[i]; ^ user.cpp:20:13: error: ‘g’ was not declared in this scope fprintf(g,"%llf",sol[N][K]/comb[N][K]); ^ user.cpp:20:22: error: ‘sol’ was not declared in this scope fprintf(g,"%llf",sol[N][K]/comb[N][K]); ^ user.cpp:20:32: error: ‘comb’ was not declared in this scope fprintf(g,"%llf",sol[N][K]/comb[N][K]); ^

Ceva nu functioneaza?