Borderou de evaluare (job #2969913)

Utilizator RobertlelRobert Robertlel Data 23 ianuarie 2023 21:27:01
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int dij(int, int)': main.cpp:21:19: error: 'INT_MAX' was not declared in this scope 21 | dist[i] = INT_MAX; | ^~~~~~~ main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 5 | #include <cstring> +++ |+#include <climits> 6 | using namespace std; main.cpp:33:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for (int i = 0 ; i < v[nod].size () ; i++) | ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:70:21: error: 'INT_MAX' was not declared in this scope 70 | if (suma == INT_MAX) | ^~~~~~~ main.cpp:70:21: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp:73:20: error: 'INT_MAX' was not declared in this scope 73 | int flow = INT_MAX; | ^~~~~~~ main.cpp:73:20: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?