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_24267715_3751.c:5:1: error: expected identifier or '(' before '/' token
 //bool isVowel(char);
 ^
0_0_24267715_3751.c:6:1: error: expected identifier or '(' before '/' token
 //bool isContainVowel(const char*);
 ^
0_0_24267715_3751.c:7:1: error: expected identifier or '(' before '/' token
 //bool isNotThree(const char*);
 ^
0_0_24267715_3751.c:8:1: error: expected identifier or '(' before '/' token
 //bool isNotTwo(const char*);
 ^
0_0_24267715_3751.c:10:1: error: unknown type name 'bool'
 bool isVowel(char c){
 ^
0_0_24267715_3751.c: In function 'isVowel':
0_0_24267715_3751.c:12:10: error: 'true' undeclared (first use in this function)
   return true;
          ^
0_0_24267715_3751.c:12:10: note: each undeclared identifier is reported only once for each function it appears in
0_0_24267715_3751.c:14:10: error: 'false' undeclared (first use in this function)
   return false;
          ^
0_0_24267715_3751.c: At top level:
0_0_24267715_3751.c:17:1: error: unknown type name 'bool'
 bool isContainVowel(const char *str){
 ^
0_0_24267715_3751.c: In function 'isContainVowel':
0_0_24267715_3751.c:18:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<strlen(str);i++){
  ^
0_0_24267715_3751.c:18:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_24267715_3751.c:20:11: error: 'true' undeclared (first use in this function)
    return true;
           ^
0_0_24267715_3751.c:22:9: error: 'false' undeclared (first use in this function)
  return false;
         ^
0_0_24267715_3751.c: At top level:
0_0_24267715_3751.c:25:1: error: unknown type name 'bool'
 bool isNotThree(const char *str){
 ^
0_0_24267715_3751.c: In function 'isNotThree':
0_0_24267715_3751.c:26:2: error: unknown type name 'bool'
  bool *sign = (bool *)malloc(sizeof(str)+1);
  ^
0_0_24267715_3751.c:26:16: error: 'bool' undeclared (first use in this function)
  bool *sign = (bool *)malloc(sizeof(str)+1);
                ^
0_0_24267715_3751.c:26:22: error: expected expression before ')' token
  bool *sign = (bool *)malloc(sizeof(str)+1);
                      ^
0_0_24267715_3751.c:29:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<len;i++){
  ^
0_0_24267715_3751.c:31:12: error: 'true' undeclared (first use in this function)
    sign[i]=true;
            ^
0_0_24267715_3751.c:33:12: error: 'false' undeclared (first use in this function)
    sign[i]=false;
            ^
0_0_24267715_3751.c:36:10: error: redefinition of 'i'
  for(int i=0;i<len-1;i++){
          ^
0_0_24267715_3751.c:29:10: note: previous definition of 'i' was here
  for(int i=0;i<len;i++){
          ^
0_0_24267715_3751.c:36:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<len-1;i++){
  ^
0_0_24267715_3751.c: At top level:
0_0_24267715_3751.c:50:1: error: unknown type name 'bool'
 bool isNotTwo(const char *str){
 ^
0_0_24267715_3751.c: In function 'isNotTwo':
0_0_24267715_3751.c:53:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<len-1;i++){
  ^
0_0_24267715_3751.c:60:11: error: 'false' undeclared (first use in this function)
    return false;
           ^
0_0_24267715_3751.c:64:9: error: 'true' undeclared (first use in this function)
  return true;
         ^
0_0_24267715_3751.c: In function 'main':
0_0_24267715_3751.c:76:3: error: expected expression before '/' token
   //scanf("\n");
   ^


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-11-25 14:36:41, Gzip enabled