Borderou de evaluare (job #1934306)
Utilizator | Data | 21 martie 2017 12:59:59 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: ‘vector’ in namespace ‘std’ does not name a type
std::vector<int> G[kNMAX];
^
user.cpp:7:1: error: ‘stack’ in namespace ‘std’ does not name a type
std::stack<int> S;
^
user.cpp: In function ‘void read()’:
user.cpp:17:3: error: ‘G’ was not declared in this scope
G[x].push_back(y);
^
user.cpp: In function ‘void print()’:
user.cpp:25:11: error: ‘S’ was not declared in this scope
while ( !S.empty() )
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:37:17: error: ‘G’ was not declared in this scope
for (auto &it: G[node])
^
user.cpp:44:2: error: ‘S’ was not declared in this scope
S.push(node);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !