Borderou de evaluare (job #3309397)
| Utilizator | Data | 4 septembrie 2025 11:25:59 | |
|---|---|---|---|
| Problema | Hagi | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: 'vector' does not name a type
10 | vector<long long> fact(N_MAX + 2), inv_fact(N_MAX + 2);
| ^~~~~~
main.cpp: In function 'void precalc_fact()':
main.cpp:20:5: error: 'fact' was not declared in this scope
20 | fact[0] = 1;
| ^~~~
main.cpp:24:5: error: 'inv_fact' was not declared in this scope
24 | inv_fact[N_MAX] = putere(fact[N_MAX], MOD - 2);
| ^~~~~~~~
main.cpp: In function 'long long int combinari(int, int)':
main.cpp:31:12: error: 'fact' was not declared in this scope
31 | return fact[n] * (inv_fact[n - k] * inv_fact[k] % MOD) % MOD;
| ^~~~
main.cpp:31:23: error: 'inv_fact' was not declared in this scope
31 | return fact[n] * (inv_fact[n - k] * inv_fact[k] % MOD) % MOD;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
