Borderou de evaluare (job #2192781)

Utilizator AndreiDumitrescuAndrei Dumitrescu AndreiDumitrescu Data 7 aprilie 2018 12:16:01
Problema Heavy Path Decomposition Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int actualizare(int, int, int, int, int, int)’: user.cpp:37:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void DFS_ARBORE(int, int, int)’: user.cpp:60:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < v[nod].size(); i++) ~~^~~~~~~~~~~~~~~ user.cpp:79:7: error: ‘greutate’ was not declared in this scope greutate[nod] = g; ^~~~~~~~ user.cpp:81:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < v[nod].size(); j++) ~~^~~~~~~~~~~~~~~ user.cpp:92:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < v[nod].size(); j++) ~~^~~~~~~~~~~~~~~ user.cpp:99:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < v[nod].size(); j++) ~~^~~~~~~~~~~~~~~ user.cpp:80:28: warning: unused variable ‘ce’ [-Wunused-variable] int maxim = 0, care, ce, j; ^~ user.cpp: In function ‘void creezArbInt()’: user.cpp:117:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < lant[i].size(); j++) ~~^~~~~~~~~~~~~~~~ user.cpp: In function ‘void afisare()’: user.cpp:142:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < lant[i].size(); j++) ~~^~~~~~~~~~~~~~~~ user.cpp: In function ‘int afla_poz(int, int)’: user.cpp:151:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < lant[care].size(); i++) ~~^~~~~~~~~~~~~~~~~~~ user.cpp: In function ‘int solve(int, int)’: user.cpp:158:12: warning: unused variable ‘i’ [-Wunused-variable] int poz, i, j, sol = 0, sol_act, poz1, aux; ^ user.cpp:158:15: warning: unused variable ‘j’ [-Wunused-variable] int poz, i, j, sol = 0, sol_act, poz1, aux; ^ user.cpp: In function ‘int main()’: user.cpp:199:38: warning: unused variable ‘sol’ [-Wunused-variable] int n, m, a, b, i, t, x, y, poz, sol, radacina; ^~~ user.cpp:199:43: warning: unused variable ‘radacina’ [-Wunused-variable] int n, m, a, b, i, t, x, y, poz, sol, radacina; ^~~~~~~~ user.cpp: In function ‘int afla_poz(int, int)’:

Ceva nu functioneaza?