warning free print uint64

This commit is contained in:
Krishna Vedala 2020-04-24 07:41:24 -04:00
parent 42f56b62ac
commit 38e0a2354c
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include <time.h>
#include <stdlib.h>
#include <stdint.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#ifdef _OPENMP
#include <omp.h>
#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;