aboutsummaryrefslogtreecommitdiff
path: root/test/013_math_digitstosumzero/digitstosumzero_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/013_math_digitstosumzero/digitstosumzero_tests.c')
-rw-r--r--test/013_math_digitstosumzero/digitstosumzero_tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/013_math_digitstosumzero/digitstosumzero_tests.c b/test/013_math_digitstosumzero/digitstosumzero_tests.c
index 795bd9b..5c93083 100644
--- a/test/013_math_digitstosumzero/digitstosumzero_tests.c
+++ b/test/013_math_digitstosumzero/digitstosumzero_tests.c
@@ -1,12 +1,12 @@
1#include "../test.h" 1#include "../test.h"
2 2
3int64_t digitstosumzero(size_t n, uint8_t [n], uint8_t); 3uint64_t digitstosumzero(size_t n, uint8_t [n], uint8_t);
4 4
5void run(void) { 5void run(void) {
6 char str[STRLENMAX]; 6 char str[STRLENMAX];
7 uint8_t i, b, a[100]; 7 uint8_t i, b, a[100];
8 size_t n; 8 size_t n;
9 int64_t p; 9 uint64_t p;
10 10
11 fgets(str, STRLENMAX, stdin); 11 fgets(str, STRLENMAX, stdin);
12 n = atoi(str); 12 n = atoi(str);
@@ -18,5 +18,5 @@ void run(void) {
18 } 18 }
19 19
20 p = digitstosumzero(n, a, b); 20 p = digitstosumzero(n, a, b);
21 printf("%" PRId64 "\n", p); 21 printf("%" PRIu64 "\n", p);
22} 22}

Generated with cgit - Back to sebastiano.tronto.net