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_39748351_11255.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
0_0_39748351_11255.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
0_0_39748351_11255.c:4:1: error: unknown type name 'bool'
    4 | bool st[N];//因数之和表,初始为0,有就设为1
      | ^~~~
0_0_39748351_11255.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 | using namespace std;
0_0_39748351_11255.c:4:6: error: variably modified 'st' at file scope
    4 | bool st[N];//因数之和表,初始为0,有就设为1
      |      ^~
0_0_39748351_11255.c: In function 'init':
0_0_39748351_11255.c:11:1: error: unknown type name 'bool'
   11 | bool flag=1;//哨兵法
      | ^~~~
0_0_39748351_11255.c:11:1: note: 'bool' 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.000000(s) query 1, Server time : 2025-02-17 08:35:16, Gzip enabled