Borderou de evaluare (job #1352906)
Utilizator | Data | 21 februarie 2015 13:20:47 | |
---|---|---|---|
Problema | Por Costel si Algoritmul | Status | done |
Runda | ONIS 2015, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bellman_ford(int)’:
user.cpp:30:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < a[k].size(); ++i)
^
user.cpp: At global scope:
user.cpp:47:1: error: ‘unordered_map’ does not name a type
unordered_map<pair<int, int>, int> edges;
^
user.cpp: In function ‘void bfs(int)’:
user.cpp:61:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b[k].size(); ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:87:13: error: ‘edges’ was not declared in this scope
edges[make_pair(x, y)] = i;
^
user.cpp:107:55: error: ‘edges’ was not declared in this scope
for(map<pair<int, int>, int> :: iterator it = edges.begin(); it != edges.end(); ++it)
^
user.cpp:113:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < b[i].size(); ++j)
^
user.cpp:115:26: error: ‘edges’ was not declared in this scope
edge_lev[edges[make_pair(i, b[i][j])]] = make_pair(lev[b[i][j]], edges[make_pair(i, b[i][j])]);
^
user.cpp:130:9: error: ‘edges’ was not declared in this scope
edges.clear();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !