Borderou de evaluare (job #3212983)

Utilizator MerlinTheWizardMelvin Abibula MerlinTheWizard Data 12 martie 2024 13:03:19
Problema Symmetricgraph2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void gaseste_mijloc()': main.cpp:51:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<coord>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 51 | for(int i=0;i<vecini[nod].size();i++) | ~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int afisare(int, int)': main.cpp:75:5: error: expected initializer before 'int' 75 | int ans = 0; | ^~~ main.cpp:76:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<coord>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 76 | for(int i=0;i<arb[node].size();i++) | ~^~~~~~~~~~~~~~~~~ main.cpp:79:13: error: 'costs_neighbours' was not declared in this scope 79 | costs_neighbours.push(arb[node][i].cap); | ^~~~~~~~~~~~~~~~ main.cpp:81:13: error: 'costs_neighbours' was not declared in this scope 81 | costs_neighbours.push(min(afisare(arb[node][i].nod,arb[node][i].cap),arb[node][i].cap)); | ^~~~~~~~~~~~~~~~ main.cpp:83:12: error: 'costs_neighbours' was not declared in this scope 83 | while(!costs_neighbours.empty()) | ^~~~~~~~~~~~~~~~ main.cpp:85:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 85 | ans = ans + costs_neighbours.front(); | ^~~ | abs main.cpp:88:25: error: 'ans' was not declared in this scope; did you mean 'abs'? 88 | return min(flux_cap,ans); | ^~~ | abs Non zero exit status: 1

Ceva nu functioneaza?