diff --git a/src/bin/2024_14/main.rs b/src/bin/2024_14/main.rs index 83661a0..1437426 100644 --- a/src/bin/2024_14/main.rs +++ b/src/bin/2024_14/main.rs @@ -29,6 +29,7 @@ fn largest_cluster(grid: &Grid) -> usize { fn solve( input: &str, ) -> usize { + let mut ans = 0; let mut positions: Vec = Vec::new(); let mut velocities: Vec = Vec::new(); @@ -49,9 +50,8 @@ fn solve = Grid::new(MAX_X as usize, MAX_Y as usize, '.'); for p in positions.iter() { map.set(&(p.x as usize, p.y as usize), '#'); @@ -92,17 +94,13 @@ fn solve