foo.c: In function 'evaluateExpression':
foo.c:63:43: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
63 | char* subExpression = (char*) malloc((j - i - 1) * sizeof(char));
| ^~~~~~
foo.c:4:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
3 | #include <string.h>
+++ |+#include <stdlib.h>
4 |
foo.c:63:43: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
63 | char* subExpression = (char*) malloc((j - i - 1) * sizeof(char));
| ^~~~~~
foo.c:63:43: note: include '<stdlib.h>' or provide a declaration of 'malloc'
foo.c:68:13: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
68 | free(subExpression);
| ^~~~
foo.c:68:13: note: include '<stdlib.h>' or provide a declaration of 'free'
foo.c:68:13: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
foo.c:68:13: note: include '<stdlib.h>' or provide a declaration of 'free'
foo.c: In function 'main':
foo.c:101:24: warning: format '%d' expects argument of type 'int *', but argument 3 has type '_Bool *' [-Wformat=]
101 | scanf(" %c%d", &variables[i].key, &variables[i].value);
| ~^ ~~~~~~~~~~~~~~~~~~~
| | |
| int * _Bool *
[Hydro](https://hydro.ac)提供评测服务