fix input path
This commit is contained in:
parent
e0b3908019
commit
737c255cc6
|
@ -3,7 +3,7 @@ use std::io::{self, BufRead};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_01/input");
|
let file_path = String::from("input");
|
||||||
let mut result_vec = Vec::<u32>::new();
|
let mut result_vec = Vec::<u32>::new();
|
||||||
|
|
||||||
result_vec.push(0);
|
result_vec.push(0);
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::io::{self, BufRead};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_02/input");
|
let file_path = String::from("input");
|
||||||
let mut result = 0;
|
let mut result = 0;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -4,7 +4,7 @@ use std::path::Path;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_03a/input");
|
let file_path = String::from("input");
|
||||||
let mut result = 0;
|
let mut result = 0;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -4,7 +4,7 @@ use std::path::Path;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_03a/input");
|
let file_path = String::from("../aoc_03a/input");
|
||||||
let mut result = 0;
|
let mut result = 0;
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
let mut hashmap = HashMap::new();
|
let mut hashmap = HashMap::new();
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::io::{self, BufRead};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_04a/input");
|
let file_path = String::from("input");
|
||||||
let mut result = 0;
|
let mut result = 0;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::io::{self, BufRead};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_04a/input");
|
let file_path = String::from("../aoc_04a/input");
|
||||||
let mut result = 0;
|
let mut result = 0;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -41,7 +41,7 @@ fn move_array(result: &mut Vec<Vec<char>>, line: String) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_05a/input");
|
let file_path = String::from("input");
|
||||||
let mut result = Vec::<Vec<char>>::new();
|
let mut result = Vec::<Vec<char>>::new();
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -40,7 +40,7 @@ fn move_array(result: &mut Vec<Vec<char>>, line: String) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_05a/input");
|
let file_path = String::from("../aoc_05a/input");
|
||||||
let mut result = Vec::<Vec<char>>::new();
|
let mut result = Vec::<Vec<char>>::new();
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -3,7 +3,7 @@ use std::io::{self, BufRead};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_06a/input2");
|
let file_path = String::from("input");
|
||||||
let mut index = 4;
|
let mut index = 4;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
|
@ -4,7 +4,7 @@ use std::path::Path;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file_path = String::from("/home/wafoo/advent_of_code_2022/aoc_06a/input");
|
let file_path = String::from("../aoc_06a/input");
|
||||||
let mut index = 14;
|
let mut index = 14;
|
||||||
|
|
||||||
println!("In file {}", file_path);
|
println!("In file {}", file_path);
|
||||||
|
|
Loading…
Reference in New Issue