Borderou de evaluare (job #3227668)
Utilizator | Data | 2 mai 2024 13:57:14 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bellman(int, int)':
main.cpp:38:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i = 0;i < graf[from].size();i++) {
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:41:35: error: 'g' was not declared in this scope
41 | dist[to] = dist[from] + g[from][i].koltseg;
| ^
main.cpp:57:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
57 | int main() {
| ^~
main.cpp:57:9: note: remove parentheses to default-initialize a variable
57 | int main() {
| ^~
| --
main.cpp:57:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:57:12: error: a function-definition is not allowed here before '{' token
57 | int main() {
| ^
main.cpp:67:2: error: expected '}' at end of input
67 | }
| ^
main.cpp:22:31: note: to match this '{'
22 | void bellman(int start,int n) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !