Borderou de evaluare (job #2922437)
Utilizator | Data | 8 septembrie 2022 14:14:52 | |
---|---|---|---|
Problema | Num | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int calc(long long int)':
main.cpp:38:18: error: 'fact' was not declared in this scope
38 | return 1LL * fact[2 * nr] * invmod(lgput(2,nr)) % Mod;
| ^~~~
main.cpp: In function 'long long int comb(long long int, long long int)':
main.cpp:43:18: error: 'fact' was not declared in this scope
43 | return 1LL * fact[n] * invfact[k] % Mod * invfact[n - k] % Mod;
| ^~~~
main.cpp:43:28: error: 'invfact' was not declared in this scope
43 | return 1LL * fact[n] * invfact[k] % Mod * invfact[n - k] % Mod;
| ^~~~~~~
main.cpp: In function 'void precalc()':
main.cpp:48:5: error: 'fact' was not declared in this scope
48 | fact[0] = 1;
| ^~~~
main.cpp:53:5: error: 'invfact' was not declared in this scope
53 | invfact[vmax] = invmod(fact[vmax]);
| ^~~~~~~
At global scope:
cc1plus: error: '::main' must return 'int'
main.cpp: In function 'int main()':
main.cpp:67:8: error: 'n' was not declared in this scope
67 | f>>n>>m;
| ^
main.cpp:67:11: error: 'm' was not declared in this scope
67 | f>>n>>m;
| ^
main.cpp:74:13: error: 'rez' was not declared in this scope
74 | rez += dp[n][i] * calc(n - i) % Mod * comb(n,i) % Mod;
| ^~~
main.cpp:74:20: error: 'dp' was not declared in this scope
74 | rez += dp[n][i] * calc(n - i) % Mod * comb(n,i) % Mod;
| ^~
main.cpp:79:13: error: 'rez' was not declared in this scope
79 | rez -= dp[n][i] * calc(n - i) % Mod * comb(n,i) % Mod;
| ^~~
main.cpp:79:20: error: 'dp' was not declared in this scope
79 | rez -= dp[n][i] * calc(n - i) % Mod * comb(n,i) % Mod;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !