Borderou de evaluare (job #2529572)
Utilizator | Data | 23 ianuarie 2020 17:43:12 | |
---|---|---|---|
Problema | Sirgcdx | Status | done |
Runda | smart | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: expected ',' or ';' before 'const'
const int mod = 1e9 + 7;
^~~~~
main.cpp: In function 'long long int logpow(long long int, long long int)':
main.cpp:17:34: error: 'mod' was not declared in this scope
for(; n; n >>= 1, x = (x * x) % mod)
^~~
main.cpp: At global scope:
main.cpp:24:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
main.cpp: In function 'int main()':
main.cpp:35:33: error: 'mod' was not declared in this scope
fact[i] = (fact[i - 1] * i) % mod;
^~~
main.cpp:37:44: error: 'mod' was not declared in this scope
inv_fact[DIM - 1] = logpow(fact[DIM - 1], mod - 2);
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !