Borderou de evaluare (job #3251510)

Utilizator iulia_morariuIuli Morariu iulia_morariu Data 26 octombrie 2024 10:21:38
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:12: error: 'INT_MAX' was not declared in this scope 9 | #define oo INT_MAX | ^~~~~~~ main.cpp:36:40: note: in expansion of macro 'oo' 36 | for(int i = 2; i <= n; i++) d[i] = oo; | ^~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <queue> +++ |+#include <climits> 5 | //#include <bits/stdc++.h> main.cpp:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for(int i = 0; i < v[1].size(); i++){ | ~~^~~~~~~~~~~~~ main.cpp:9:12: error: 'INT_MAX' was not declared in this scope 9 | #define oo INT_MAX | ^~~~~~~ main.cpp:55:20: note: in expansion of macro 'oo' 55 | if(d[i] == oo) d[i] = 0; | ^~ main.cpp:9:12: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 9 | #define oo INT_MAX | ^~~~~~~ main.cpp:55:20: note: in expansion of macro 'oo' 55 | if(d[i] == oo) d[i] = 0; | ^~ Non zero exit status: 1

Ceva nu functioneaza?