Borderou de evaluare (job #2925280)

Utilizator AlexePaulAlexe Paul AlexePaul Data 13 octombrie 2022 13:08:15
Problema Graf Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:18:12: error: 'INT_MAX' was not declared in this scope 18 | int mini = INT_MAX; | ^~~~~~~ main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 5 | #include <iostream> +++ |+#include <climits> 6 | main.cpp: In function 'void DFS(int)': main.cpp:25:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 25 | if(path.size() < mini){ | ~~~~~~~~~~~~^~~~~~ main.cpp:30:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 30 | else if(path.size() == mini){ | ~~~~~~~~~~~~^~~~~~~ main.cpp:39:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | for(int i = 0; i < adiacenta[node].size(); ++i){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:40:74: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | if(visited[adiacenta[node][i]] == false || length[adiacenta[node][i]] > path.size()){ main.cpp: In function 'int main()': main.cpp:62:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 62 | for(int i = 0; i < ans.size(); ++i){ | ~~^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?