grader.c: In function 'main':
grader.c:63:19: error: expected expression before 'int'
63 | my_assert(int(strlen(A[i]+1)) == N, "each line of the map must contain N zeroes or ones (before loop)");
| ^~~
grader.c:63:9: error: too few arguments to function 'my_assert'
63 | my_assert(int(strlen(A[i]+1)) == N, "each line of the map must contain N zeroes or ones (before loop)");
| ^~~~~~~~~
grader.c:18:6: note: declared here
18 | void my_assert (int a, const char* s) {
| ^~~~~~~~~
treasure.c: In function 'findTreasure':
treasure.c:9:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
9 | scanf("%d", &n);
| ^~~~~
treasure.c:9:2: warning: incompatible implicit declaration of built-in function 'scanf'
treasure.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
1 | #include "treasure.h"
+++ |+#include <stdio.h>
2 |
treasure.c:22:15: error: too many arguments to function 'findTreasure'
22 | aa[i][j] = findTreasure(i1, j1, i2, j2);
| ^~~~~~~~~~~~
treasure.c:5:6: note: declared here
5 | void findTreasure(int n) {
| ^~~~~~~~~~~~
treasure.c:22:13: error: void value not ignored as it ought to be
22 | aa[i][j] = findTreasure(i1, j1, i2, j2);
| ^