Borderou de evaluare (job #2934160)

Utilizator vlad_dimuVlad Dimulescu vlad_dimu Data 5 noiembrie 2022 15:04:11
Problema Dragoni Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int)': main.cpp:22:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 22 | for( int i = 0; i < graph[nod].size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void dijkstra()': main.cpp:50:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 50 | for( int i = 0; i < graph[top.insula].size(); i++ ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:84:20: error: 'INT_MAX' was not declared in this scope 84 | dp[i][j] = INT_MAX; | ^~~~~~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <limits> +++ |+#include <climits> 5 | #define MAXN 800 main.cpp:87:9: error: 'INT_MAX' was not declared in this scope 87 | d = INT_MAX; | ^~~~~~~ main.cpp:87:9: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? Non zero exit status: 1

Ceva nu functioneaza?