You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
advent-of-code/2018/rust/src/lib.rs

17 lines
359 B

#[macro_export]
macro_rules! main {
() => {
fn main() -> Result<(), Box<std::error::Error>> {
use std::io::{self, Read};
let mut input = String::new();
io::stdin().read_to_string(&mut input)?;
let output = solve(&input)?;
println!("{}", output);
Ok(())
}
};
}