From 65500f3fe66b885a2172801d416b97446c5db828 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Tue, 20 Aug 2024 00:14:39 -0500 Subject: [PATCH] Fix includes --- cplusplus/src/p0000_template.cpp | 2 +- cplusplus/src/p0001.cpp | 2 +- cplusplus/src/p0002.cpp | 2 +- cplusplus/src/p0004.cpp | 2 +- cplusplus/src/p0006.cpp | 2 +- cplusplus/src/p0008.cpp | 2 +- cplusplus/src/p0009.cpp | 2 +- cplusplus/src/p0011.cpp | 2 +- cplusplus/src/p0013.cpp | 2 +- cplusplus/src/p0014.cpp | 2 +- cplusplus/src/p0015.cpp | 2 +- cplusplus/src/p0016.cpp | 2 +- cplusplus/src/p0017.cpp | 2 +- cplusplus/src/p0019.cpp | 2 +- cplusplus/src/p0020.cpp | 2 +- cplusplus/src/p0022.cpp | 2 +- cplusplus/src/p0034.cpp | 2 +- cplusplus/src/p0836.cpp | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/cplusplus/src/p0000_template.cpp b/cplusplus/src/p0000_template.cpp index 41102d6e..d7abc297 100644 --- a/cplusplus/src/p0000_template.cpp +++ b/cplusplus/src/p0000_template.cpp @@ -11,7 +11,7 @@ This paragraph should be replaced by the problem description, excluding images. #define EULER_P0000 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0000() { return 0; diff --git a/cplusplus/src/p0001.cpp b/cplusplus/src/p0001.cpp index b020e0f0..b48a5f6b 100644 --- a/cplusplus/src/p0001.cpp +++ b/cplusplus/src/p0001.cpp @@ -16,7 +16,7 @@ #define EULER_P0001 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0001() { uint64_t answer = 0; diff --git a/cplusplus/src/p0002.cpp b/cplusplus/src/p0002.cpp index 51ee988b..9877063e 100644 --- a/cplusplus/src/p0002.cpp +++ b/cplusplus/src/p0002.cpp @@ -18,7 +18,7 @@ four million, find the sum of the even-valued terms. #define EULER_P0002 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0002() { uint64_t answer = 0, diff --git a/cplusplus/src/p0004.cpp b/cplusplus/src/p0004.cpp index b92d3b1c..66a2b5f6 100644 --- a/cplusplus/src/p0004.cpp +++ b/cplusplus/src/p0004.cpp @@ -16,7 +16,7 @@ Find the largest palindrome made from the product of two 3-digit numbers. #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint32_t EMSCRIPTEN_KEEPALIVE p0004() { uint32_t answer = 0, i, j, prod; diff --git a/cplusplus/src/p0006.cpp b/cplusplus/src/p0006.cpp index c32f61b9..a3f9a72e 100644 --- a/cplusplus/src/p0006.cpp +++ b/cplusplus/src/p0006.cpp @@ -23,7 +23,7 @@ natural numbers and the square of the sum. #define EULER_P0006 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0006() { uint64_t sum = 100 * 101 / 2, sum_of_squares = 0; diff --git a/cplusplus/src/p0008.cpp b/cplusplus/src/p0008.cpp index 83a3ae71..35fd3d83 100644 --- a/cplusplus/src/p0008.cpp +++ b/cplusplus/src/p0008.cpp @@ -34,7 +34,7 @@ Find the thirteen adjacent digits in the 1000-digit number that have the greates #define EULER_P0008 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0008() { size_t i, j; diff --git a/cplusplus/src/p0009.cpp b/cplusplus/src/p0009.cpp index 533bea89..bf57311e 100644 --- a/cplusplus/src/p0009.cpp +++ b/cplusplus/src/p0009.cpp @@ -17,7 +17,7 @@ Find the product abc. #define EULER_P0009 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0009() { uint64_t answer = 0; diff --git a/cplusplus/src/p0011.cpp b/cplusplus/src/p0011.cpp index e3ea72c2..6617f3ea 100644 --- a/cplusplus/src/p0011.cpp +++ b/cplusplus/src/p0011.cpp @@ -35,7 +35,7 @@ the 20×20 grid? #define EULER_P0011 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" static const uint8_t grid[20][20] = { { 8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 7, 78, 52, 12, 50, 77, 91, 8}, diff --git a/cplusplus/src/p0013.cpp b/cplusplus/src/p0013.cpp index 36d2c19d..c93b82d1 100644 --- a/cplusplus/src/p0013.cpp +++ b/cplusplus/src/p0013.cpp @@ -109,7 +109,7 @@ Work out the first ten digits of the sum of the following one-hundred 50-digit n #define EULER_P0013 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" static const uint64_t numbers[100][3] = { { 37107287533902, 102798797998220837, 590246510135740250 }, diff --git a/cplusplus/src/p0014.cpp b/cplusplus/src/p0014.cpp index fa9961a9..1f57fb67 100644 --- a/cplusplus/src/p0014.cpp +++ b/cplusplus/src/p0014.cpp @@ -24,7 +24,7 @@ NOTE: Once the chain starts the terms are allowed to go above one million. #define EULER_P0014 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" #define CACHE_SIZE 1000000 static uint32_t collatz_len_cache[CACHE_SIZE] = {0, 1, 0}; diff --git a/cplusplus/src/p0015.cpp b/cplusplus/src/p0015.cpp index a6787f98..4b9dceed 100644 --- a/cplusplus/src/p0015.cpp +++ b/cplusplus/src/p0015.cpp @@ -18,7 +18,7 @@ How many such routes are there through a 20×20 grid? #define EULER_P0015 #include #include -#include "../macros.hpp" +#include "include/macros.hpp" #include "include/math.hpp" #define lattice_paths(height, width) (n_choose_r(height + width, height)) diff --git a/cplusplus/src/p0016.cpp b/cplusplus/src/p0016.cpp index 0ab12316..c5e6c6fc 100644 --- a/cplusplus/src/p0016.cpp +++ b/cplusplus/src/p0016.cpp @@ -12,7 +12,7 @@ What is the sum of the digits of the number 2**1000? #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0016() { diff --git a/cplusplus/src/p0017.cpp b/cplusplus/src/p0017.cpp index c22bbb7c..7ab358d6 100644 --- a/cplusplus/src/p0017.cpp +++ b/cplusplus/src/p0017.cpp @@ -23,7 +23,7 @@ British usage. #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" std::string ToString(uint64_t n); std::string ToString(uint64_t n) { diff --git a/cplusplus/src/p0019.cpp b/cplusplus/src/p0019.cpp index a107f51a..6571afad 100644 --- a/cplusplus/src/p0019.cpp +++ b/cplusplus/src/p0019.cpp @@ -26,7 +26,7 @@ How many Sundays fell on the first of the month during the twentieth century #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" #ifdef _WIN32 #include diff --git a/cplusplus/src/p0020.cpp b/cplusplus/src/p0020.cpp index 2fdc612f..0edf8451 100644 --- a/cplusplus/src/p0020.cpp +++ b/cplusplus/src/p0020.cpp @@ -15,7 +15,7 @@ Find the sum of the digits in the number 100! #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0020() { diff --git a/cplusplus/src/p0022.cpp b/cplusplus/src/p0022.cpp index bd4971e9..829ec7bf 100644 --- a/cplusplus/src/p0022.cpp +++ b/cplusplus/src/p0022.cpp @@ -18,7 +18,7 @@ #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" #include "include/utils.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0022() { diff --git a/cplusplus/src/p0034.cpp b/cplusplus/src/p0034.cpp index e82359cb..1632fcd1 100644 --- a/cplusplus/src/p0034.cpp +++ b/cplusplus/src/p0034.cpp @@ -15,7 +15,7 @@ Note: as 1! = 1 and 2! = 2 are not sums they are not included. #include #include #include -#include "../macros.hpp" +#include "include/macros.hpp" #include "include/math.hpp" uint64_t EMSCRIPTEN_KEEPALIVE p0034() { diff --git a/cplusplus/src/p0836.cpp b/cplusplus/src/p0836.cpp index 0f96a1e8..ad2b02b7 100644 --- a/cplusplus/src/p0836.cpp +++ b/cplusplus/src/p0836.cpp @@ -17,7 +17,7 @@ Find f(20230401, 57). Give as your answer the concatenation of the first letters #ifndef EULER_P0836 #define EULER_P0836 #include -#include "../macros.hpp" +#include "include/macros.hpp" std::string EMSCRIPTEN_KEEPALIVE p0836() { return "aprilfoolsjoke";