Borderou de evaluare (job #2051197)

Utilizator nicholascantarNicholas David Cantar Gogitidze nicholascantar Data 28 octombrie 2017 17:28:39
Problema Metrou5 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:18: error: macro parameters must be comma-separated #define MOD(long long) 1000000007 ^ user.cpp: In function ‘void init()’: user.cpp:11:19: error: ‘MOD’ was not declared in this scope pr=(pr*i)%MOD; ^ user.cpp: In function ‘long long int putere(long long int, long long int)’: user.cpp:19:23: error: ‘MOD’ was not declared in this scope if(y==1) return x%MOD; ^ user.cpp:21:13: error: ‘MOD’ was not declared in this scope p=(p*p)%MOD; ^ user.cpp: In function ‘long long int comb(long long int, long long int)’: user.cpp:29:21: error: ‘MOD’ was not declared in this scope t=(f[n-k]*f[k])%MOD; ^ user.cpp:27:8: warning: unused variable ‘i’ [-Wunused-variable] ll i,r,t; ^ user.cpp: In function ‘int main()’: user.cpp:50:46: error: ‘MOD’ was not declared in this scope if(nr>0) {r=(r*comb(x-p+nr,x-p))%MOD;} ^ user.cpp:56:39: error: ‘MOD’ was not declared in this scope if (nr>0) {r=(r*comb(m-p+nr,m-p))%MOD;} ^ user.cpp: In function ‘long long int comb(long long int, long long int)’: user.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?