Borderou de evaluare (job #1125654)
| Utilizator | Data | 26 februarie 2014 18:52:29 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include nmax 100005
^
user.cpp:7:16: error: ‘nmax’ was not declared in this scope
vector <int> v[nmax];
^
user.cpp:9:11: error: ‘nmax’ was not declared in this scope
bool seen[nmax];
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:12:2: error: ‘seen’ was not declared in this scope
seen[x] = true;
^
user.cpp:13:17: error: ‘v’ was not declared in this scope
for(int i=0; i<v[x].size(); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:24:3: error: ‘v’ was not declared in this scope
v[a].push_back(b);
^
user.cpp:29:7: error: ‘seen’ was not declared in this scope
if(!seen[i]) dfs(i), sol++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
