Borderou de evaluare (job #3190347)

Utilizator iordyIordache Andrei Tudor iordy Data 7 ianuarie 2024 15:36:57
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool bfs(int)': main.cpp:24:23: error: 'INT_MAX' was not declared in this scope 24 | dist[u] = INT_MAX; | ^~~~~~~ main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 5 | #include <fstream> +++ |+#include <climits> 6 | main.cpp:27:15: error: 'INT_MAX' was not declared in this scope 27 | dist[0] = INT_MAX; | ^~~~~~~ main.cpp:27:15: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp: In function 'bool dfs(int)': main.cpp:53:19: error: 'INT_MAX' was not declared in this scope 53 | dist[u] = INT_MAX; | ^~~~~~~ main.cpp:53:19: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?