Borderou de evaluare (job #2270588)

Utilizator mutrescutudorMutrescu Tudor mutrescutudor Data 27 octombrie 2018 11:41:14
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:12: error: expected unqualified-id before '[' token vector<int>[1000001] ^ main.cpp: In function 'void dfs(int)': main.cpp:12:5: error: 'viz' was not declared in this scope viz[nod]=1; ^~~ main.cpp:13:19: error: 'v' was not declared in this scope for(int i=0;i<v[nod].size();i++) ^ main.cpp:15:15: error: two consecutive '[' shall only introduce an attribute before '[' token if(viz[[nod][i]]==0){ ^ main.cpp:15:15: error: expected ')' before '[' token main.cpp:11:9: warning: unused variable 'q' [-Wunused-variable] int q; ^ main.cpp: In function 'int main()': main.cpp:22:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++){ ^ main.cpp:24:5: error: 'v' was not declared in this scope v[x].push_back(y); ^ main.cpp:27:9: error: 'i' was not declared in this scope for(i=1;i<=n;i+++) ^ main.cpp:27:22: error: expected primary-expression before ')' token for(i=1;i<=n;i+++) ^ main.cpp:29:12: error: 'viz' was not declared in this scope if(viz[i]==0) ^~~ main.cpp:32:13: error: 'comp' was not declared in this scope comp++; ^~~~ main.cpp:35:8: error: 'comp' was not declared in this scope g<<comp; ^~~~ main.cpp:21:14: warning: unused variable 'x' [-Wunused-variable] {int n , m , x,y; ^ main.cpp:21:16: warning: unused variable 'y' [-Wunused-variable] {int n , m , x,y; ^ Non zero exit status: 1

Ceva nu functioneaza?