chessboard.cpp: In function 'int main()':
chessboard.cpp:15:13: error: 'LLONG_MAX' was not declared in this scope
15 | int ans = LLONG_MAX;
| ^~~~~~~~~
chessboard.cpp:3:1: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <algorithm>
+++ |+#include <climits>
3 | using namespace std;
chessboard.cpp:20:27: error: 'a' was not declared in this scope
20 | ans = min(ans, min((a - t) + (s-t), (b - (s-t)) + t));
| ^
chessboard.cpp:20:37: error: 's' was not declared in this scope
20 | ans = min(ans, min((a - t) + (s-t), (b - (s-t)) + t));
| ^
chessboard.cpp:20:44: error: 'b' was not declared in this scope
20 | ans = min(ans, min((a - t) + (s-t), (b - (s-t)) + t));
| ^
chessboard.cpp:18:11: warning: unused variable 'alt1' [-Wunused-variable]
18 | int alt1 = ((n / i) * (n / i)) / (2 * i * i), alt2 = ((n / i) * (n / i + 1)) / (2 * i * i), t = 0;
| ^~~~
chessboard.cpp:18:53: warning: unused variable 'alt2' [-Wunused-variable]
18 | int alt1 = ((n / i) * (n / i)) / (2 * i * i), alt2 = ((n / i) * (n / i + 1)) / (2 * i * i), t = 0;
| ^~~~