Borderou de evaluare (job #2119265)

Utilizator Bodo171Bogdan Pop Bodo171 Data 31 ianuarie 2018 21:03:45
Problema Sushi2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dfs(int)’: user.cpp:8:7: error: ‘nr’ was not declared in this scope ++nr;r[nr]=x;A[x].push_back(nr); ^ user.cpp:8:10: error: ‘r’ was not declared in this scope ++nr;r[nr]=x;A[x].push_back(nr); ^ user.cpp:8:18: error: ‘A’ was not declared in this scope ++nr;r[nr]=x;A[x].push_back(nr); ^ user.cpp:9:19: error: ‘v’ was not declared in this scope for(int i=S;i<v[x].size();i++) ^ user.cpp:14:5: error: ‘dr’ was not declared in this scope dr[x]=nr; ^ user.cpp: In function ‘int main()’: user.cpp:19:15: error: variable ‘std::ifstream f’ has initializer but incomplete type ifstream f("sushi2.in"); ^ user.cpp:20:15: error: variable ‘std::ofstream g’ has initializer but incomplete type ofstream g("sushi2.out"); ^ user.cpp:21:8: error: ‘n’ was not declared in this scope f>>n; ^ user.cpp:22:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:24:12: error: ‘nr’ was not declared in this scope f>>nr; ^ user.cpp:25:13: error: ‘j’ was not declared in this scope for(j=1;j<=nr;j++) ^ user.cpp:27:16: error: ‘x’ was not declared in this scope f>>x; ^ user.cpp:28:13: error: ‘v’ was not declared in this scope v[i].push_back(x); ^ user.cpp:31:5: error: ‘nr’ was not declared in this scope nr=0; ^

Ceva nu functioneaza?