Borderou de evaluare (job #2443555)
Utilizator | Data | 28 iulie 2019 15:37:20 | |
---|---|---|---|
Problema | Conexidad | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:1: error: 'vector' does not name a type
vector <int> g[105];
^~~~~~
main.cpp:14:1: error: 'vector' does not name a type
vector <pair <int, int>> r, muchii;
^~~~~~
main.cpp: In function 'void read()':
main.cpp:26:9: error: 'g' was not declared in this scope
g[a].push_back(b);
^
main.cpp: In function 'int dfs(int)':
main.cpp:34:19: error: 'g' was not declared in this scope
for (auto i : g[nod])
^
main.cpp: In function 'std::pair<int, int> dfs2(int)':
main.cpp:43:19: error: 'g' was not declared in this scope
for (auto i : g[nod])
^
main.cpp: In function 'int main()':
main.cpp:58:13: error: 'r' was not declared in this scope
r.push_back(make_pair(i, dfs(i)));
^
main.cpp:59:10: error: 'r' was not declared in this scope
sort(r.begin(), r.end(), compare);
^
main.cpp:61:19: error: unable to deduce 'auto&&' from 'r'
for (auto i : r){
^
main.cpp:70:9: error: 'g' was not declared in this scope
g[a].push_back(b);
^
main.cpp:72:9: error: 'muchii' was not declared in this scope
muchii.push_back(make_pair(a, b));
^~~~~~
main.cpp:79:19: error: 'muchii' was not declared in this scope
for (auto i : muchii)
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !