Borderou de evaluare (job #2646933)

Utilizator AlexandruLuchianov1Alex Luchianov AlexandruLuchianov1 Data 2 septembrie 2020 14:35:22
Problema Symmetricgraph2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::vector<int> BFS(int, int, std::vector<std::vector<std::pair<int, int> > >&)': main.cpp:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[node].size(); h++) { ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'll DFS(int, std::vector<std::vector<int> >&, std::vector<long long int>&)': main.cpp:38:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[node].size(); h++) ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'll solve(int, std::vector<int>, std::vector<int>, std::vector<int>)': main.cpp:64:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[i].size(); h++) { ~~^~~~~~~~~~~~~ main.cpp:74:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[i].size(); h++) { ~~^~~~~~~~~~~~~ main.cpp:83:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[i].size(); h++) { ~~^~~~~~~~~~~~~ main.cpp:96:31: error: 'to' was not declared in this scope if(0 < far[node] && match[to] == 0) { ^~ main.cpp:97:11: error: redeclaration of 'int to' int to = far[node]; ^~ main.cpp:96:31: note: '<typeprefixerror>to' previously declared here if(0 < far[node] && match[to] == 0) { ^~ Non zero exit status: 1

Ceva nu functioneaza?