Borderou de evaluare (job #2622914)
Utilizator | Data | 2 iunie 2020 10:20:36 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:22:21: error: size of array 'adj' is too large
int adj[NMAX][NMAX];
^
main.cpp: In member function 'void Task::read_input()':
main.cpp:54:15: error: 'adj' was not declared in this scope
adj[x][y] = c;
^~~
main.cpp: In member function 'void Task::Dijkstra(int, std::vector<int>&)':
main.cpp:100:25: error: 'adj' was not declared in this scope
int cost_edge = adj[node][i]; //edge.second;
^~~
main.cpp: In member function 'bool Task::BellmanFord(int, std::vector<int>&)':
main.cpp:158:25: error: 'adj' was not declared in this scope
int cost_edge = adj[node][i]; //edge.second;
^~~
main.cpp: In member function 'bool Task::Johnson()':
main.cpp:178:13: error: 'adj' was not declared in this scope
adj[n + 1][i] = 0; //.push_back({i, 0});
^~~
main.cpp:198:17: error: 'adj' was not declared in this scope
adj[i][j] += (vertex_weight[i] - vertex_weight[j]);
^~~
main.cpp:208:17: error: 'adj' was not declared in this scope
adj[i][j] = current_dijkstra[j];
^~~
main.cpp: In member function 'void Task::print_output(bool)':
main.cpp:230:21: error: 'adj' was not declared in this scope
fout << adj[i][j] << " ";
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !