Borderou de evaluare (job #2945994)

Utilizator TindecheTindeche Alexandru Tindeche Data 24 noiembrie 2022 13:48:31
Problema Online Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void kruskal()': main.cpp:49:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | for(int i = 0; i < muchii.size(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:76:28: error: 'INT_MAX' was not declared in this scope 76 | distanta.resize(n + 1, INT_MAX); | ^~~~~~~ main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 6 | #include <algorithm> +++ |+#include <climits> 7 | using namespace std; main.cpp:94:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 94 | for(int j = 0; j < muchii.size(); j++) | ~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?