Borderou de evaluare (job #2668633)
Utilizator | Data | 5 noiembrie 2020 06:01:54 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:10: error: array bound is not an integer constant before ']' token
bool v[sz];
^
main.cpp:9:17: error: array bound is not an integer constant before ']' token
vector<int> a[sz], b[sz], noduri, ctc[sz];
^
main.cpp:9:24: error: array bound is not an integer constant before ']' token
vector<int> a[sz], b[sz], noduri, ctc[sz];
^
main.cpp:9:41: error: array bound is not an integer constant before ']' token
vector<int> a[sz], b[sz], noduri, ctc[sz];
^
main.cpp: In function 'void dfs1(int)':
main.cpp:13:5: error: 'v' was not declared in this scope
v[x] = 1;
^
main.cpp:14:20: error: 'a' was not declared in this scope
for(auto next: a[x])
^
main.cpp: In function 'void dfs2(int)':
main.cpp:21:5: error: 'v' was not declared in this scope
v[x] = 1;
^
main.cpp:22:5: error: 'ctc' was not declared in this scope
ctc[nr].push_back(x);
^~~
main.cpp:23:20: error: 'b' was not declared in this scope
for(auto next: b[x])
^
main.cpp: In function 'int main()':
main.cpp:35:9: error: 'a' was not declared in this scope
a[x].push_back(y);
^
main.cpp:36:9: error: 'b' was not declared in this scope
b[y].push_back(x);
^
main.cpp:40:13: error: 'v' was not declared in this scope
if(!v[i])
^
main.cpp:43:9: error: 'v' was not declared in this scope
v[i] = 0;
^
main.cpp:45:13: error: 'v' was not declared in this scope
if(!v[noduri[i]]) {
^
main.cpp:52:17: error: 'ctc' was not declared in this scope
for(auto x: ctc[i])o<<x<<' '; o << '\n';}
^~~
main.cpp:52:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(auto x: ctc[i])o<<x<<' '; o << '\n';}
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !