Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 20, 2024
1 parent 5b2845f commit 65500f3
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cplusplus/src/p0000_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This paragraph should be replaced by the problem description, excluding images.
#define EULER_P0000
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0000() {
return 0;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0001.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define EULER_P0001
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0001() {
uint64_t answer = 0;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0002.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ four million, find the sum of the even-valued terms.
#define EULER_P0002
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0002() {
uint64_t answer = 0,
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0004.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Find the largest palindrome made from the product of two 3-digit numbers.
#include <algorithm>
#include <cstdio>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint32_t EMSCRIPTEN_KEEPALIVE p0004() {
uint32_t answer = 0, i, j, prod;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0006.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ natural numbers and the square of the sum.
#define EULER_P0006
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0006() {
uint64_t sum = 100 * 101 / 2, sum_of_squares = 0;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0008.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Find the thirteen adjacent digits in the 1000-digit number that have the greates
#define EULER_P0008
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0008() {
size_t i, j;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0009.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Find the product abc.
#define EULER_P0009
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0009() {
uint64_t answer = 0;
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0011.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ the 20×20 grid?
#define EULER_P0011
#include <stdint.h>
#include <iostream>
#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},
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0013.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

static const uint64_t numbers[100][3] = {
{ 37107287533902, 102798797998220837, 590246510135740250 },
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0014.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ NOTE: Once the chain starts the terms are allowed to go above one million.
#define EULER_P0014
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

#define CACHE_SIZE 1000000
static uint32_t collatz_len_cache[CACHE_SIZE] = {0, 1, 0};
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0015.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ How many such routes are there through a 20×20 grid?
#define EULER_P0015
#include <stdint.h>
#include <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"
#include "include/math.hpp"

#define lattice_paths(height, width) (n_choose_r(height + width, height))
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0016.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ What is the sum of the digits of the number 2**1000?
#include <stdint.h>
#include <iostream>
#include <vector>
#include "../macros.hpp"
#include "include/macros.hpp"


uint64_t EMSCRIPTEN_KEEPALIVE p0016() {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0017.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ British usage.
#include <iostream>
#include <stdexcept>
#include <string>
#include "../macros.hpp"
#include "include/macros.hpp"

std::string ToString(uint64_t n);
std::string ToString(uint64_t n) {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0019.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ How many Sundays fell on the first of the month during the twentieth century
#include <iostream>
#include <stdexcept>
#include <stdint.h>
#include "../macros.hpp"
#include "include/macros.hpp"

#ifdef _WIN32
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0020.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Find the sum of the digits in the number 100!
#include <stdint.h>
#include <iostream>
#include <vector>
#include "../macros.hpp"
#include "include/macros.hpp"


uint64_t EMSCRIPTEN_KEEPALIVE p0020() {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0022.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <iostream>
#include <vector>
#include <algorithm>
#include "../macros.hpp"
#include "include/macros.hpp"
#include "include/utils.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0022() {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0034.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Note: as 1! = 1 and 2! = 2 are not sums they are not included.
#include <stdint.h>
#include <iostream>
#include <cstdio>
#include "../macros.hpp"
#include "include/macros.hpp"
#include "include/math.hpp"

uint64_t EMSCRIPTEN_KEEPALIVE p0034() {
Expand Down
2 changes: 1 addition & 1 deletion cplusplus/src/p0836.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <iostream>
#include "../macros.hpp"
#include "include/macros.hpp"

std::string EMSCRIPTEN_KEEPALIVE p0836() {
return "aprilfoolsjoke";
Expand Down

0 comments on commit 65500f3

Please sign in to comment.