Borderou de evaluare (job #2919725)
Utilizator | Data | 18 august 2022 22:17:22 | |
---|---|---|---|
Problema | Connect the Tree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: expected unqualified-id before 'int'
12 | int t[500010],firstPos[500010],lastPos[500010],v[500010],vis[500010],val[500010];
| ^~~
main.cpp: In function 'void parcurgere(int)':
main.cpp:15:5: error: 'firstPos' was not declared in this scope
15 | firstPos[x]=seq_len;
| ^~~~~~~~
main.cpp:16:5: error: 'vis' was not declared in this scope
16 | vis[x]=1;
| ^~~
main.cpp:20:13: error: 't' was not declared in this scope; did you mean 'it'?
20 | t[it]=x;
| ^
| it
main.cpp:24:5: error: 'lastPos' was not declared in this scope
24 | lastPos[x]=seq_len;
| ^~~~~~~
main.cpp:25:5: error: 'val' was not declared in this scope
25 | val[x]=rand();
| ^~~
main.cpp: In function 'int main()':
main.cpp:58:16: error: 't' was not declared in this scope
58 | if(t[y]==x) swap(x,y);
| ^
main.cpp:59:19: error: 'firstPos' was not declared in this scope
59 | int X=firstPos[x];
| ^~~~~~~~
main.cpp:60:19: error: 'lastPos' was not declared in this scope
60 | int Y=lastPos[x];
| ^~~~~~~
main.cpp:61:16: error: 'v' was not declared in this scope
61 | if(v[X]==0 && v[Y]==0)
| ^
main.cpp:63:22: error: 'val' was not declared in this scope
63 | update(X,val[y]);
| ^~~
main.cpp:69:27: error: 'val' was not declared in this scope
69 | update(X,-val[y]);
| ^~~
main.cpp:79:19: error: 'firstPos' was not declared in this scope
79 | int X=firstPos[x_new];
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !