Borderou de evaluare (job #2254028)
Utilizator | Data | 4 octombrie 2018 18:28:31 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int citire()’:
user.cpp:16:10: error: ‘x’ was not declared in this scope
f >> x >> y;
^
user.cpp:16:15: error: ‘y’ was not declared in this scope
f >> x >> y;
^
user.cpp:7:26: warning: unused variable ‘viz’ [-Wunused-variable]
int a[1000][1000], n, m, viz[1000], c;
^~~
user.cpp:7:37: warning: unused variable ‘c’ [-Wunused-variable]
int a[1000][1000], n, m, viz[1000], c;
^
user.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void DFS(int)’:
user.cpp:24:1: error: ‘viz’ was not declared in this scope
viz[nod]=1;
^~~
user.cpp:25:16: error: ‘n’ was not declared in this scope
for(int j=1;j<=n;++j)
^
user.cpp:26:8: error: ‘a’ was not declared in this scope
if(a[nod][j]==1)
^
user.cpp: In function ‘int main()’:
user.cpp:39:22: error: ‘n’ was not declared in this scope
for (i = 1; i <= n; i++)
^
user.cpp:40:14: error: ‘viz’ was not declared in this scope
if (!viz[i])
^~~
user.cpp:41:11: error: ‘c’ was not declared in this scope
{ c++;
^
user.cpp:42:17: error: ‘j’ was not declared in this scope
DFS(j);
^
user.cpp:45:8: error: ‘c’ was not declared in this scope
cout<<c<<" ";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !