Borderou de evaluare (job #2259426)
Utilizator | Data | 13 octombrie 2018 12:22:05 | |
---|---|---|---|
Problema | Matrice3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void precalc_rmq()':
main.cpp:6:31: error: 'n' was not declared in this scope
for (int i = 0; (1<<i) <= n; ++i)
^
main.cpp:7:56: error: expected ';' before ')' token
for (int j = (1<<i); j < (1<<(i + 1)) && i <= n)
^
main.cpp:8:13: error: 'logg' was not declared in this scope
logg[j] = i;
^
main.cpp:9:28: error: 'n' was not declared in this scope
for (int k1 = 1; k1 <= n; ++k1)
^
main.cpp:13:21: error: 'rmq' was not declared in this scope
rmq[i][j][k1][k2] = max(rmq[i][j][k1 - 1][k2], rmq[i + (1<<(k1 - 1)) + 1][j][k1 - 1][k2]);
^
main.cpp: In function 'void bs(int, int, int, int)':
main.cpp:19:92: error: 'qmrq' was not declared in this scope
if (r + pas <= min(a - x, b - y) + 1 && qmrq(a + r + pas - 1, y + r + pas - 1, x, y) >= r + pas)
^
main.cpp: In function 'int main()':
main.cpp:28:9: error: expected initializer before '>>' token
cin >> n >> m >> q;
^
main.cpp:29:26: error: 'n' was not declared in this scope
for (int i = 1; i <= n; ++i)
^
main.cpp:30:30: error: 'm' was not declared in this scope
for (int j = 1; j <= m; ++j)
^
main.cpp:31:20: error: 'ch' was not declared in this scope
cin >> ch,
^
main.cpp:32:13: error: 'v' was not declared in this scope
v[i][j] = (ch == '1');
^
main.cpp:33:26: error: 'n' was not declared in this scope
for (int i = 1; i <= n; ++i)
^
main.cpp:34:30: error: 'm' was not declared in this scope
for (int j = 1; j <= m; ++j)
^
main.cpp:35:13: error: 'rmq' was not declared in this scope
rmq[i][j][0][0] = v[i][j] * (min(min(rmq[i - 1][j][0][0], rmq[i][j - 1][0][0]), rmq[i - 1][j - 1][0][0]) + 1);
^
main.cpp:35:31: error: 'v' was not declared in this scope
rmq[i][j][0][0] = v[i][j] * (min(min(rmq[i - 1][j][0][0], rmq[i][j - 1][0][0]), rmq[i - 1][j - 1][0][0]) + 1);
^
main.cpp:37:12: error: 'q' was not declared in this scope
while (q--) {
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !