Borderou de evaluare (job #2133123)

Utilizator ArambasaVlad Arambasa Arambasa Data 16 februarie 2018 16:18:15
Problema Mergesort Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:16: error: expected initializer before numeric constant const int Nmax 1e6+5; ^ user.cpp:7:10: error: ‘Nmax’ was not declared in this scope int Fact[Nmax]; ^ user.cpp:8:13: error: ‘Nmax’ was not declared in this scope int InvFact[Nmax]; ^ user.cpp:11:10: error: ‘Nmax’ was not declared in this scope int vect[Nmax]; ^ user.cpp: In function ‘void Calculate_Factorial()’: user.cpp:31:2: error: ‘Fact’ was not declared in this scope Fact[0]=InvFact[0]=1; ^ user.cpp:31:10: error: ‘InvFact’ was not declared in this scope Fact[0]=InvFact[0]=1; ^ user.cpp: In function ‘int Comb(int, int)’: user.cpp:50:15: error: ‘Fact’ was not declared in this scope return ((1LL*Fact[n]*InvFact[n-k])*InvFact[k])%modulo; ^ user.cpp:50:23: error: ‘InvFact’ was not declared in this scope return ((1LL*Fact[n]*InvFact[n-k])*InvFact[k])%modulo; ^ user.cpp: In function ‘int Solve(int)’: user.cpp:58:5: error: ‘vect’ was not declared in this scope if(vect[N]) ^ user.cpp:61:2: error: ‘vect’ was not declared in this scope vect[N]=((1LL*Comb(a+b,a)*(1LL*Solve(a)*Fact[b]+1LL*Solve(b)*Fact[a]+1LL*Fact[a]*Fact[b]))%modulo-2LL+modulo)%modulo; ^ user.cpp:61:42: error: ‘Fact’ was not declared in this scope vect[N]=((1LL*Comb(a+b,a)*(1LL*Solve(a)*Fact[b]+1LL*Solve(b)*Fact[a]+1LL*Fact[a]*Fact[b]))%modulo-2LL+modulo)%modulo; ^ user.cpp:62:12: error: invalid types ‘int[int]’ for array subscript return v[N]; ^

Ceva nu functioneaza?