记录详情

Compile Error

foo.cc: In function 'int bfs(std::vector<Road>&, int, int, int)':
foo.cc:13:18: error: 'INT_MAX' was not declared in this scope
   13 |         int minl=INT_MAX;
      |                  ^~~~~~~
foo.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
    2 | #include<queue>
  +++ |+#include <climits>
    3 | #include<vector>
foo.cc: In function 'int main()':
foo.cc:48:14: error: 'INT_MAX' was not declared in this scope
   48 |     if(minl==INT_MAX) cout<<"Inf";
      |              ^~~~~~~
foo.cc:48:14: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
5 城市中的最短路径
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 20:31:54
评测时间
2022-08-21 20:31:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes