fix input path

This commit is contained in:
gbrochar 2022-12-16 15:30:18 +01:00
parent e0b3908019
commit 737c255cc6
10 changed files with 34 additions and 34 deletions

View File

@ -3,7 +3,7 @@ use std::io::{self, BufRead};
use std::path::Path;
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();
result_vec.push(0);

View File

@ -3,7 +3,7 @@ use std::io::{self, BufRead};
use std::path::Path;
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;
println!("In file {}", file_path);

View File

@ -4,7 +4,7 @@ use std::path::Path;
use std::collections::HashMap;
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;
println!("In file {}", file_path);

View File

@ -4,7 +4,7 @@ use std::path::Path;
use std::collections::HashMap;
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 i = 0;
let mut hashmap = HashMap::new();

View File

@ -3,7 +3,7 @@ use std::io::{self, BufRead};
use std::path::Path;
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;
println!("In file {}", file_path);

View File

@ -3,7 +3,7 @@ use std::io::{self, BufRead};
use std::path::Path;
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;
println!("In file {}", file_path);

View File

@ -41,7 +41,7 @@ fn move_array(result: &mut Vec<Vec<char>>, line: String) {
}
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();
println!("In file {}", file_path);

View File

@ -40,7 +40,7 @@ fn move_array(result: &mut Vec<Vec<char>>, line: String) {
}
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();
println!("In file {}", file_path);

View File

@ -3,7 +3,7 @@ use std::io::{self, BufRead};
use std::path::Path;
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;
println!("In file {}", file_path);

View File

@ -4,7 +4,7 @@ use std::path::Path;
use std::collections::HashMap;
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;
println!("In file {}", file_path);