Borderou de evaluare (job #2263759)
Utilizator | Data | 19 octombrie 2018 10:46:31 | |
---|---|---|---|
Problema | Principiul includerii si excluderii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void precalc()':
main.cpp:6:26: error: 'N' was not declared in this scope
for (int i = 2; i <= N; ++i) {
^
main.cpp:7:14: error: 'sd' was not declared in this scope
if (!sd[i])
^~
main.cpp:8:21: error: 'prime' was not declared in this scope
sd[i] = prime.size(),
^~~~~
main.cpp:10:30: error: 'sd' was not declared in this scope
for (int j = 0; j <= sd[i] && 1LL * i * sd[j] < N; ++j)
^~
main.cpp:11:20: error: 'prime' was not declared in this scope
sd[i * prime[j]] = j;
^~~~~
main.cpp: In function 'void bkt(int, int, int)':
main.cpp:16:14: error: 'std::div' does not have class type
if (i == div.size()) {
^~~
main.cpp:17:9: error: 'ans' was not declared in this scope
ans += coef * (a / prod);
^~~
main.cpp:17:24: error: 'a' was not declared in this scope
ans += coef * (a / prod);
^
main.cpp:21:9: error: 'a' was not declared in this scope
if (a < )
^
main.cpp:21:13: error: expected primary-expression before ')' token
if (a < )
^
main.cpp:22:1: error: expected primary-expression before '}' token
}
^
main.cpp: In function 'int main()':
main.cpp:30:16: error: 'a' was not declared in this scope
cin >> a >> b;
^
main.cpp:31:9: error: 'std::div' does not have class type
div.clear();
^~~
main.cpp:32:9: error: 'ans' was not declared in this scope
ans = 0;
^~~
main.cpp:33:29: error: 'prime' was not declared in this scope
for (int i = 0; i < prime.size(); ++i) {
^~~~~
main.cpp:35:17: error: 'std::div' does not have class type
div.push_back(prime[i]);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !