diff --git a/project_euler/Problem 08/sol1.c b/project_euler/Problem 08/sol1.c index 4404549c..2615648b 100644 --- a/project_euler/Problem 08/sol1.c +++ b/project_euler/Problem 08/sol1.c @@ -4,7 +4,7 @@ long long int get_product(FILE *fp, long start_pos, int num_digits) { char ch = ' '; /* temporary variable to store character read from file */ - uint8_t num = 0; /* temporary variable to store digit read */ + unsigned char num = 0; /* temporary variable to store digit read */ long long int prod = 1; /* product accumulator */ int count = 0; /* we use this variable to count number of bytes of file read */ diff --git a/project_euler/Problem 08/sol2.c b/project_euler/Problem 08/sol2.c index 9877b92d..0cb79da5 100644 --- a/project_euler/Problem 08/sol2.c +++ b/project_euler/Problem 08/sol2.c @@ -1,6 +1,5 @@ #include #include -#include #include /* for memmove */ int main(int argc, char *argv[]) @@ -8,8 +7,8 @@ int main(int argc, char *argv[]) int position = 0, num_bad_chars = 0; int num_digits = 4; char ch; - uint8_t num, num_prev; - uint8_t *buffer = NULL; + unsigned char num, num_prev; + unsigned char *buffer = NULL; long long int prod = 1, max_prod = 0; /* if second command-line argument is given,