Borderou de evaluare (job #2725168)
Utilizator | Data | 18 martie 2021 15:19:01 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: expected ',' or ';' before 'const'
const int N=1e5+2;
^~~~~
main.cpp:13:10: error: 'N' was not declared in this scope
bool viz[N],viz_t[N];
^
main.cpp:13:19: error: 'N' was not declared in this scope
bool viz[N],viz_t[N];
^
main.cpp:15:14: error: 'N' was not declared in this scope
vector<int>v[N],v_t[N],ans[N];
^
main.cpp:15:21: error: 'N' was not declared in this scope
vector<int>v[N],v_t[N],ans[N];
^
main.cpp:15:28: error: 'N' was not declared in this scope
vector<int>v[N],v_t[N],ans[N];
^
main.cpp: In function 'void dfs(int)':
main.cpp:20:5: error: 'viz' was not declared in this scope
viz[nod]=true;
^~~
main.cpp:21:22: error: 'v' was not declared in this scope
for(size_t i=0;i<v[nod].size();i++)
^
main.cpp: In function 'void dfs_t(int)':
main.cpp:34:5: error: 'ans' was not declared in this scope
ans[nc].push_back(nod);
^~~
main.cpp:35:5: error: 'viz_t' was not declared in this scope
viz_t[nod]=true;
^~~~~
main.cpp:36:22: error: 'v_t' was not declared in this scope
for(size_t i=0;i<v_t[nod].size();i++)
^~~
main.cpp: In function 'int main()':
main.cpp:52:9: error: 'v' was not declared in this scope
v[x].push_back(y);
^
main.cpp:53:9: error: 'v_t' was not declared in this scope
v_t[y].push_back(x);
^~~
main.cpp:57:12: error: 'viz' was not declared in this scope
if(viz[i]==0)
^~~
main.cpp:66:12: error: 'viz_t' was not declared in this scope
if(viz_t[el]==0)
^~~~~
main.cpp:75:26: error: 'ans' was not declared in this scope
for(size_t j=0;j<ans[i].size();j++)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !