0_0_39146050_5714.c:13:5: error: unknown type name 'UT_hash_handle'
13 | UT_hash_handle hh;
| ^~~~~~~~~~~~~~
0_0_39146050_5714.c: In function 'HashFind':
0_0_39146050_5714.c:26:15: error: 'hh' undeclared (first use in this function)
26 | HASH_FIND(hh, g_hash, &key, sizeof(TEST_KEY_TYPE), pstTemp);
| ^~
0_0_39146050_5714.c:26:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_39146050_5714.c: In function 'HashAdd':
0_0_39146050_5714.c:38:18: error: 'hh' undeclared (first use in this function)
38 | HASH_ADD(hh, g_hash, key, sizeof(TEST_KEY_TYPE), pstTemp);
| ^~
0_0_39146050_5714.c: At top level:
0_0_39146050_5714.c:44:8: error: unknown type name 'bool'
44 | static bool HashTableHasNotKey(TEST_KEY_TYPE key)
| ^~~~
0_0_39146050_5714.c:66:8: error: unknown type name 'bool'
66 | static bool TestJudgeThisNumIsPerfect(int targetNum)
| ^~~~
0_0_39146050_5714.c: In function 'TestJudgeThisNumIsPerfect':
0_0_39146050_5714.c:70:5: error: unknown type name 'bool'
70 | bool ret;
| ^~~~
0_0_39146050_5714.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
2 | #include <stdlib.h>
+++ |+#include <stdbool.h>
3 |
0_0_39146050_5714.c:76:20: error: 'false' undeclared (first use in this function)
76 | if (ret == false) {
| ^~~~~
0_0_39146050_5714.c:76:20: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39146050_5714.c:83:12: error: 'true' undeclared (first use in this function)
83 | return true;
| ^~~~
0_0_39146050_5714.c:83:12: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39146050_5714.c: In function 'TestGetPerfectNumByEdge':
0_0_39146050_5714.c:91:47: error: 'true' undeclared (first use in this function)
91 | if (TestJudgeThisNumIsPerfect(idx) == true) {
| ^~~~
0_0_39146050_5714.c:91:47: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
|