diff --git a/project_euler/Problem 401/sol1.c b/project_euler/Problem 401/sol1.c index 70173b0e..2a62dbc9 100644 --- a/project_euler/Problem 401/sol1.c +++ b/project_euler/Problem 401/sol1.c @@ -2,6 +2,8 @@ #include #include #include +#define __STDC_FORMAT_MACROS +#include #ifdef _OPENMP #include #endif @@ -110,7 +112,7 @@ int main(int argc, char **argv) uint64_t result = sigma(N); double dtime = clock() - start_time; - printf("N = %llu\nSum: %llu\n", N, result); + printf("N = %" PRIu64 "\nSum: %" PRIu64 "\n", N, result); printf("Time taken: %.4gms\n", dtime * 1e3 / CLOCKS_PER_SEC); return 0;