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 'queueEnqueue':
treasure.c:29:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
29 | printf("queue is full!");
| ^~~~~~
treasure.c:29:9: warning: incompatible implicit declaration of built-in function 'printf'
treasure.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
1 | #include "treasure.h"
+++ |+#include <stdio.h>
2 | #define MAX_N 100
treasure.c: In function 'queueDequeue':
treasure.c:42:9: warning: incompatible implicit declaration of built-in function 'printf'
42 | printf("queue is empty!");
| ^~~~~~
treasure.c:42:9: note: include '<stdio.h>' or provide a declaration of 'printf'
treasure.c: In function 'findTreasure':
treasure.c:82:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
82 | if (foundHere = countTreasure(now.r1, now.c1, center_r, center_c)) {
| ^~~~~~~~~
treasure.c:96:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
96 | if (foundHere = countTreasure(now.r1, center_c + 1, center_r, now.c2)) {
| ^~~~~~~~~
treasure.c:111:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
111 | if (foundHere = countTreasure(center_r + 1, now.c1, now.r2, center_c)) {
| ^~~~~~~~~