Borderou de evaluare (job #3193687)

Utilizator IulianMohoneaMohonea Marius-Iulian IulianMohonea Data 15 ianuarie 2024 13:00:18
Problema Senat Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool bfs(int)': main.cpp:23:23: error: 'INT_MAX' was not declared in this scope 23 | 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 | using namespace std; 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:34:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | for (int i = 0; i < g[u].size(); i++) { | ~~^~~~~~~~~~~~~ main.cpp: In function 'bool dfs(int)': main.cpp:51:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 51 | for (int i = 0; i < g[u].size(); i++) { | ~~^~~~~~~~~~~~~ main.cpp:62:19: error: 'INT_MAX' was not declared in this scope 62 | dist[u] = INT_MAX; | ^~~~~~~ main.cpp:62:19: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?