Borderou de evaluare (job #2241416)
Utilizator | Data | 15 septembrie 2018 19:38:58 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:12: error: ‘N’ was not declared in this scope
int sparse[N][LMAX];
^
user.cpp: In function ‘int main()’:
user.cpp:19:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i = 2; i <= N; i++)
^~~
user.cpp:22:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(int i = 0 ; i < N; i++)
^~~
user.cpp:23:13: error: ‘sparse’ was not declared in this scope
sparse[i][0]=a[i];
^~~~~~
user.cpp:28:14: error: ‘sparse’ was not declared in this scope
sparse[i][j]=min(sparse[i][j-1],sparse[i+(1<<(j-1))][j-1]);
^~~~~~
user.cpp:38:21: error: ‘sparse’ was not declared in this scope
fout<<min(sparse[low][k],sparse[high-(1<<k) +1 ][k])<<'\n';
^~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !