Borderou de evaluare (job #1138550)

Utilizator AndreeaBaltaBalta Andreea Cristina AndreeaBalta Data 10 martie 2014 10:57:30
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:42: error: conflicting declaration ‘int nr’ int lst[100001], vf[200001], nr[200001], nr; ^ user.cpp:5:30: error: ‘nr’ has a previous declaration as ‘int nr [200001]’ int lst[100001], vf[200001], nr[200001], nr; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:10:5: error: ‘viz’ was not declared in this scope viz[x] = true; ^ user.cpp:17:13: error: ‘urm’ was not declared in this scope p = urm[p]; ^ user.cpp: In function ‘void adauga(int, int)’: user.cpp:22:7: error: lvalue required as increment operand nr++; ^ user.cpp:23:8: error: ‘m’ was not declared in this scope vf[m] = y; ^ user.cpp:24:5: error: ‘urm’ was not declared in this scope urm[nr] = lst[x]; ^ user.cpp:25:12: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive] lst[x] = nr; ^ user.cpp: In function ‘int main()’: user.cpp:31:5: error: expected ‘;’ before ‘out’ out = fopen("dfs.out", "w"); ^ user.cpp:35:9: error: ‘i’ was not declared in this scope for(i = 1; i <= m; i++) ^ user.cpp:37:27: error: ‘a’ was not declared in this scope fscanf(in, "%d", &a); ^ user.cpp:38:27: error: ‘b’ was not declared in this scope fscanf(in, "%d", &b); ^ user.cpp:29:16: warning: unused variable ‘out’ [-Wunused-variable] FILE *in, *out; ^

Ceva nu functioneaza?