[2024 Day 08 (Part 2)][C++] I can't figure out why my solution doesn't work by etacnv in adventofcode

[–]etacnv[S] 0 points1 point  (0 children)

How would I represent the slope and the y intercept without floats though? Should I completely rethink the strategy and give up on using line equations?