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_39897210_26350.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
0_0_39897210_26350.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
0_0_39897210_26350.c:5:1: error: unknown type name 'bool'
    5 | bool G[MAXN][MAXN];//图的邻接矩阵
      | ^~~~
0_0_39897210_26350.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | #define MAXN 110
0_0_39897210_26350.c:17:1: error: unknown type name 'bool'
   17 | bool isValid(int u) {//u:需要判断的点;同时也表示当前的团已经判断过u-1个点了
      | ^~~~
0_0_39897210_26350.c:17:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39897210_26350.c: In function 'isValid':
0_0_39897210_26350.c:20:20: error: 'false' undeclared (first use in this function)
   20 |             return false;
      |                    ^~~~~
0_0_39897210_26350.c:20:20: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39897210_26350.c:20:20: note: each undeclared identifier is reported only once for each function it appears in
0_0_39897210_26350.c:23:12: error: 'true' undeclared (first use in this function)
   23 |     return true;
      |            ^~~~
0_0_39897210_26350.c:23:12: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39897210_26350.c: In function 'backtrack':
0_0_39897210_26350.c:33:33: error: 'true' undeclared (first use in this function)
   33 |             current_clique[i] = true;
      |                                 ^~~~
0_0_39897210_26350.c:33:33: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
0_0_39897210_26350.c:39:33: error: 'false' undeclared (first use in this function)
   39 |             current_clique[i] = false;//当前点不加入约束
      |                                 ^~~~~
0_0_39897210_26350.c:39:33: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?


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