summaryrefslogtreecommitdiff
path: root/template/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'template/main.rs')
-rw-r--r--template/main.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/template/main.rs b/template/main.rs
index 88bdc79..397d51f 100644
--- a/template/main.rs
+++ b/template/main.rs
@@ -1,14 +1,16 @@
use std::io;
-fn main() -> io::Result<()> {
- for line in io::stdin().lines() {
- let _line = line?;
- }
+fn main() {
+ let lines = io::stdin()
+ .lines()
+ .flatten()
+ .map(|line| line)
+ .collect::<Vec<_>>();
+
+ dbg!(lines);
let silver: u64 = 0;
let gold: u64 = 0;
println!("silver: {silver}");
println!("gold: {gold}");
-
- return Ok(());
}