Borderou de evaluare (job #1356328)

Utilizator HothazieHothazie Vlad Hothazie Data 23 februarie 2015 13:08:55
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:11: error: expected ‘]’ before numeric constant int v[100 000],x,y,a[100 000][100 000],n,m,k,i,j; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:9:20: error: ‘n’ was not declared in this scope for(int j=1;j<=n;j++) ^ user.cpp:11:12: error: ‘a’ was not declared in this scope if(a[i][j] == 1 && v[j] == 0) {v[j]=k;dfs(j);} ^ user.cpp:11:30: error: ‘v’ was not declared in this scope if(a[i][j] == 1 && v[j] == 0) {v[j]=k;dfs(j);} ^ user.cpp:11:47: error: ‘k’ was not declared in this scope if(a[i][j] == 1 && v[j] == 0) {v[j]=k;dfs(j);} ^ user.cpp: In function ‘int main()’: user.cpp:17:8: error: ‘n’ was not declared in this scope f>>n>>m; ^ user.cpp:17:11: error: ‘m’ was not declared in this scope f>>n>>m; ^ user.cpp:18:9: error: ‘i’ was not declared in this scope for(i=1;i<=m;i++) ^ user.cpp:20:12: error: ‘x’ was not declared in this scope f>>x>>y; ^ user.cpp:20:15: error: ‘y’ was not declared in this scope f>>x>>y; ^ user.cpp:21:9: error: ‘a’ was not declared in this scope a[x][y]=a[y][x]=1; ^ user.cpp:23:19: error: ‘k’ was not declared in this scope void citire();k=0; ^ user.cpp:24:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:25:12: error: ‘v’ was not declared in this scope if(v[i]==0) ^

Ceva nu functioneaza?