Borderou de evaluare (job #947456)
Utilizator | Data | 7 mai 2013 16:03:01 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:23: error: size of array ‘rmq’ is too large
int rmq[LOG2NMAX][NMAX];
^
user.cpp: In function ‘int main()’:
user.cpp:31:15: error: ‘rmq’ was not declared in this scope
in >> rmq[0][i];
^
user.cpp:38:13: error: ‘rmq’ was not declared in this scope
rmq[i][j] = min(rmq[i - 1][j], rmq[i - 1][j + toAdd]);
^
user.cpp:44:20: error: ‘rmq’ was not declared in this scope
out << min(rmq[len][x], rmq[len][y - (1 << len) + 1]) << '\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !