Borderou de evaluare (job #1475537)
Utilizator | Data | 24 august 2015 10:49:38 | |
---|---|---|---|
Problema | Vagoane | Status | done |
Runda | Junior Challenge 2015 Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:21: warning: extra tokens at end of #include directive [enabled by default]
#include <algorithm>;
^
user.cpp:13:1: error: expected ‘,’ or ‘;’ before ‘const’
const int kCMAX = 500000
^
user.cpp:22:9: error: ‘kMMAX’ was not declared in this scope
} segms[kMMAX + 5];
^
user.cpp: In function ‘int pow(int, int)’:
user.cpp:36:44: error: ‘kmod’ was not declared in this scope
return (1ll * a * pow(a, b - 1)) % kmod;
^
user.cpp:39:36: error: ‘kmod’ was not declared in this scope
return (1ll * aux * aux) % kmod;
^
user.cpp: In function ‘int inv(int)’:
user.cpp:44:19: error: ‘kmod’ was not declared in this scope
return pow(n, kmod - 2);
^
user.cpp: At global scope:
user.cpp:47:11: error: ‘kCMAX’ was not declared in this scope
int facts[kCMAX + 5];
^
user.cpp:48:15: error: ‘kCMAX’ was not declared in this scope
int inv_facts[kCMAX + 5];
^
user.cpp: In function ‘void precalc_facts()’:
user.cpp:51:5: error: ‘facts’ was not declared in this scope
facts[0] = 1;
^
user.cpp:52:26: error: ‘c’ was not declared in this scope
for (int i = 1; i <= c; ++ i)
^
user.cpp:53:47: error: ‘kmod’ was not declared in this scope
facts[i] = (1ll * i * facts[i - 1]) % kmod;
^
user.cpp:55:5: error: ‘inv_facts’ was not declared in this scope
inv_facts[c] = inv(facts[c]);
^
user.cpp:55:15: error: ‘c’ was not declared in this scope
inv_facts[c] = inv(facts[c]);
^
user.cpp:57:57: error: ‘kmod’ was not declared in this scope
inv_facts[i] = ((i + 1ll) * inv_facts[i + 1]) % kmod;
^
user.cpp: In function ‘int prod(int, int)’:
user.cpp:63:19: error: ‘facts’ was not declared in this scope
return (1ll * facts[b] * inv_facts[a - 1]) % kmod;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !