diff --git a/day1/day1.cpp b/day1/day1.cpp index d84ef63..33d5c11 100644 --- a/day1/day1.cpp +++ b/day1/day1.cpp @@ -10,7 +10,7 @@ constexpr int TARGET_NUM = 2020; * @param filename The filename to read from * @return std::set A set of the numbers in the input */ -std::set read_input(const std::string &filename) { +std::set readInput(const std::string &filename) { std::set input; std::string line; std::ifstream file(filename); @@ -53,7 +53,7 @@ int main(int argc, const char *argv[]) { return 1; } - std::set inputs = read_input(argv[1]); + std::set inputs = readInput(argv[1]); std::cout << part1(inputs) << std::endl; std::cout << part2(inputs) << std::endl; } diff --git a/day2/day2.cpp b/day2/day2.cpp index cf0f2b3..c6808da 100644 --- a/day2/day2.cpp +++ b/day2/day2.cpp @@ -54,7 +54,7 @@ class Policy { char letter; }; -std::vector read_input(const std::string &filename) { +std::vector readInput(const std::string &filename) { std::vector input; std::string line; std::ifstream file(filename); @@ -138,7 +138,7 @@ int main(int argc, char *argv[]) { return 1; } - auto input = read_input(argv[1]); + auto input = readInput(argv[1]); std::cout << part1(input) << std::endl; std::cout << part2(input) << std::endl; } diff --git a/day3/day3.cpp b/day3/day3.cpp index e95d99a..e42d494 100644 --- a/day3/day3.cpp +++ b/day3/day3.cpp @@ -6,7 +6,7 @@ constexpr char TREE_CHAR = '#'; -std::vector read_input(const std::string &filename) { +std::vector readInput(const std::string &filename) { std::vector input; std::string line; std::ifstream file(filename); @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) { return 1; } - auto input = read_input(argv[1]); + auto input = readInput(argv[1]); std::cout << part1(input) << std::endl; std::cout << part2(input) << std::endl; } diff --git a/day4/day4.cpp b/day4/day4.cpp index 3b23b13..806b73d 100644 --- a/day4/day4.cpp +++ b/day4/day4.cpp @@ -37,7 +37,7 @@ const auto FIELD_VALIDATORS = std::map input; std::string line; std::ifstream file(filename); @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) { return 1; } - std::string input = read_input(argv[1]); + std::string input = readInput(argv[1]); auto passports = makePassportMaps(input); std::cout << part1(passports) << std::endl; std::cout << part2(passports) << std::endl; diff --git a/day5/day5.cpp b/day5/day5.cpp index 1409793..b9fa36b 100644 --- a/day5/day5.cpp +++ b/day5/day5.cpp @@ -14,7 +14,7 @@ constexpr char BACK_CHAR = 'B'; constexpr char RIGHT_CHAR = 'R'; constexpr char LEFT_CHAR = 'L'; -std::vector read_input(const std::string &filename) { +std::vector readInput(const std::string &filename) { std::vector input; std::string line; std::ifstream file(filename); @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) { return 1; } - auto input = read_input(argv[1]); + auto input = readInput(argv[1]); std::cout << part1(input) << std::endl; std::cout << part2(input) << std::endl; }