Borderou de evaluare (job #3276357)
Utilizator | Data | 13 februarie 2025 14:12:44 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:28: error: expected ']' before numeric constant
4 | int v[100005], sp[100005][3 5];
| ^~
| ]
main.cpp: In function 'int main()':
main.cpp:13:9: error: 'sp' was not declared in this scope
13 | sp[i][0] = v[i];
| ^~
main.cpp:17:13: error: 'sp' was not declared in this scope
17 | sp[i][j] = min(sp[i][j - 1], sp[i + (1 << (j - 1))][j - 1]);
| ^~
main.cpp:24:21: error: 'sp' was not declared in this scope
24 | cout << min(sp[l][x], sp[r - (1 << x) + 1][x]) << "\n";
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !