Borderou de evaluare (job #2685103)
Utilizator | Data | 15 decembrie 2020 23:08:22 | |
---|---|---|---|
Problema | Concurs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:7: error: 'MAXN' was not declared in this scope
int v[MAXN],e[maxn],nivel[maxn],f[maxn],l[maxn];
^~~~
main.cpp:10:7: error: 'MAXN' was not declared in this scope
int e[MAXN];// sirul euler
^~~~
main.cpp:11:11: error: 'MAXN' was not declared in this scope
int nivel[MAXN];//nivelele nodurilor
^~~~
main.cpp:13:17: error: two or more data types in declaration of 'rmq'
int rmq[21][maxn];
^
main.cpp: In function 'void Rmq()':
main.cpp:43:26: error: 'rmq' was not declared in this scope
for (i=1;i<=2*n;i++) rmq[0][i]=e[i];
^~~
main.cpp:48:23: error: 'rmq' was not declared in this scope
if (nivel[rmq[pow-1][i]] < nivel[rmq[pow-1][i+(1<<(pow-1))]]) rmq[pow][i]=rmq[pow-1][i];
^~~
main.cpp: In function 'int lca(int, int)':
main.cpp:60:15: error: 'rmq' was not declared in this scope
if (nivel[rmq[pow][x]]<nivel[rmq[pow][y-(1<<pow)+1]]) return rmq[pow][x];
^~~
main.cpp: In function 'int main()':
main.cpp:67:29: error: 'v' was not declared in this scope
for (i=1;i<=n;i++) cin>>v[i];
^
main.cpp:91:13: error: 'v' was not declared in this scope
if (v[aaa]>maxi)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !