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_20063897_20272.c:3:1: error: unknown type name 'bool'
 bool judge(int n)
 ^
0_0_20063897_20272.c: In function 'judge':
0_0_20063897_20272.c:6:5: error: unknown type name 'bool'
     bool flag=true;
     ^
0_0_20063897_20272.c:6:15: error: 'true' undeclared (first use in this function)
     bool flag=true;
               ^
0_0_20063897_20272.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
0_0_20063897_20272.c:11:14: error: 'false' undeclared (first use in this function)
         flag=false;
              ^
0_0_20063897_20272.c: In function 'main':
0_0_20063897_20272.c:20:5: error: unknown type name 'bool'
     bool c ;
     ^
0_0_20063897_20272.c:24:11: error: 'true' undeclared (first use in this function)
         c=true;
           ^
0_0_20063897_20272.c:28:26: error: 'false' undeclared (first use in this function)
             if(judge(y)==false)
                          ^


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-10-05 05:02:20, Gzip enabled