F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39146051_13351.c:13:5: error: unknown type name 'UT_hash_handle'
   13 |     UT_hash_handle hh;
      |     ^~~~~~~~~~~~~~
0_0_39146051_13351.c: In function 'HashFind':
0_0_39146051_13351.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_39146051_13351.c:26:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_39146051_13351.c: In function 'HashAdd':
0_0_39146051_13351.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_39146051_13351.c: At top level:
0_0_39146051_13351.c:44:8: error: unknown type name 'bool'
   44 | static bool HashTableHasNotKey(TEST_KEY_TYPE key)
      |        ^~~~
0_0_39146051_13351.c:66:8: error: unknown type name 'bool'
   66 | static bool TestJudgeThisNumIsPerfect(int targetNum)
      |        ^~~~
0_0_39146051_13351.c: In function 'TestJudgeThisNumIsPerfect':
0_0_39146051_13351.c:70:5: error: unknown type name 'bool'
   70 |     bool ret;
      |     ^~~~
0_0_39146051_13351.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_39146051_13351.c:76:20: error: 'false' undeclared (first use in this function)
   76 |         if (ret == false) {
      |                    ^~~~~
0_0_39146051_13351.c:76:20: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39146051_13351.c:83:12: error: 'true' undeclared (first use in this function)
   83 |     return true;
      |            ^~~~
0_0_39146051_13351.c:83:12: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39146051_13351.c: In function 'TestGetPerfectNumByEdge':
0_0_39146051_13351.c:91:47: error: 'true' undeclared (first use in this function)
   91 |         if (TestJudgeThisNumIsPerfect(idx) == true) {
      |                                               ^~~~
0_0_39146051_13351.c:91:47: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-21 10:43:55, Gzip enabled