Borderou de evaluare (job #972035)
Utilizator | Data | 10 iulie 2013 20:46:45 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:20: error: ‘MAXN’ was not declared in this scope
int RMQ[20][MAXN<<1], Lg[MAXN], a[MAXN], n, m;
^
user.cpp:5:33: error: ‘MAXN’ was not declared in this scope
int RMQ[20][MAXN<<1], Lg[MAXN], a[MAXN], n, m;
^
user.cpp:5:42: error: ‘MAXN’ was not declared in this scope
int RMQ[20][MAXN<<1], Lg[MAXN], a[MAXN], n, m;
^
user.cpp: In function ‘int Query(int, int)’:
user.cpp:9:14: error: ‘Lg’ was not declared in this scope
int l = Lg[diff];
^
user.cpp:11:18: error: ‘RMQ’ was not declared in this scope
int Ans = RMQ[l][x];
^
user.cpp:12:10: error: ‘a’ was not declared in this scope
if(a[Ans] > a[RMQ[l][x+sh]])
^
user.cpp:14:13: error: ‘a’ was not declared in this scope
return a[Ans];
^
user.cpp: In function ‘void Build_RMQ()’:
user.cpp:19:11: error: ‘RMQ’ was not declared in this scope
RMQ[0][i] = i;
^
user.cpp:23:17: error: ‘a’ was not declared in this scope
if(a[RMQ[i-1][j]] > a[RMQ[i-1][j+l]])
^
user.cpp:23:19: error: ‘RMQ’ was not declared in this scope
if(a[RMQ[i-1][j]] > a[RMQ[i-1][j+l]])
^
user.cpp: In function ‘void Build_Log()’:
user.cpp:30:11: error: ‘Lg’ was not declared in this scope
Lg[i] = Lg[(i>>1)] + 1;
^
user.cpp: In function ‘int main()’:
user.cpp:37:16: error: ‘a’ was not declared in this scope
in >> a[i];
^
user.cpp: In function ‘int Query(int, int)’:
user.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !