pipes.cpp: In function 'void dfs(int, int)':
pipes.cpp:14:20: error: 'INT_MAX' was not declared in this scope
14 | if (tvis[nxt] != INT_MAX) lo[x] = min(lo[x], tvis[nxt]);
| ^~~~~~~
pipes.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <algorithm>
+++ |+#include <climits>
4 | using namespace std;
pipes.cpp: In function 'int main()':
pipes.cpp:31:45: error: 'INT_MAX' was not declared in this scope
31 | for (int i = 1; i <= nodes; i++) tvis[i] = INT_MAX;
| ^~~~~~~
pipes.cpp:31:45: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
pipes.cpp:33:18: error: 'INT_MAX' was not declared in this scope
33 | if (tvis[i] == INT_MAX)
| ^~~~~~~
pipes.cpp:33:18: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?