Borderou de evaluare (job #1934311)
Utilizator | Data | 21 martie 2017 13:01:49 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: ‘vector’ in namespace ‘std’ does not name a type
std::vector<int> G[kNMAX];
^
user.cpp:8:1: error: ‘stack’ in namespace ‘std’ does not name a type
std::stack<int> S;
^
user.cpp: In function ‘void read()’:
user.cpp:20:3: error: ‘G’ was not declared in this scope
G[x].push_back(y);
^
user.cpp: In function ‘void print()’:
user.cpp:28:11: error: ‘S’ was not declared in this scope
while ( !S.empty() )
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:40:17: error: ‘G’ was not declared in this scope
for (auto &it: G[node])
^
user.cpp:47: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 !