Borderou de evaluare (job #2822423)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 23 decembrie 2021 22:57:13
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'std::pair<std::vector<Edge>, int> Graph::mstKruskall()': main.cpp:463:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 463 | for(int j = 0; j < adj[i].size(); ++j) { | ~~^~~~~~~~~~~~~~~ main.cpp:477:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 477 | for(int i = 0; i < edges.size() && cnt <= E - 1; ++i) { | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::minCostHamiltonianCircuit()': main.cpp:647:27: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 647 | int minCost[1 << nmax + 5][nmax], costMatrix[nmax][nmax]; | ~~~~~^~~ main.cpp: In function 'int main()': main.cpp:1246:22: error: local class 'class main()::Solution' shall not have static data member 'const int main()::Solution::nmax' [-fpermissive] 1246 | static const int nmax = 100005; | ^~~~ main.cpp:1291:2: error: expected '}' at end of input 1291 | }; | ^ main.cpp:761:1: note: to match this '{' 761 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?