Borderou de evaluare (job #2999335)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 10 martie 2023 20:48:49
Problema Autostrazi2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | for(int i = 0;i < edges.size();++i) | ~~^~~~~~~~~~~~~~ main.cpp:27:19: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} and 'int') 27 | int a = edges[i][0], b = edges[i][1]; | ^ main.cpp:29:30: error: 'b' was not declared in this scope 29 | if(match[a] != -1 || match[b] != -1) | ^ main.cpp:39:10: error: 'b' was not declared in this scope 39 | if(ad[b][j]) | ^ main.cpp:49:15: error: 'b' was not declared in this scope 49 | match[a] = b, match[b] = a; | ^ Non zero exit status: 1

Ceva nu functioneaza?