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_29251123_31663.c: In function 'main':
0_0_29251123_31663.c:8:2: error: unknown type name 'bool'
  bool w ;
  ^
0_0_29251123_31663.c:12:7: error: 'true' undeclared (first use in this function)
   w = true;
       ^
0_0_29251123_31663.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
0_0_29251123_31663.c:15:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i = 1;i<=n;i++){
   ^
0_0_29251123_31663.c:15:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29251123_31663.c:17:4: error: expected expression before '/' token
    //printf("%d:1  %c\n",item, score[1]);
    ^
0_0_29251123_31663.c:18:4: error: expected expression before '/' token
    //printf("%d:2 \n\n",credit);
    ^
0_0_29251123_31663.c:20:9: error: 'false' undeclared (first use in this function)
     w = false;
         ^
0_0_29251123_31663.c:21:5: error: expected expression before '/' token
     //printf("%d:0 \n\n",credit);
     ^
0_0_29251123_31663.c:27:5: error: expected expression before '/' token
     //printf("%d:2 \n\n",credit);
     ^
0_0_29251123_31663.c:37:6: error: expected expression before '/' token
      //printf("%d:23 \n\n",credit);
      ^
0_0_29251123_31663.c:80:5: error: expected expression before '/' token
     //gpa += 0.0
     ^
0_0_29251123_31663.c:81:6: error: unterminated comment
     //*item;
      ^
0_0_29251123_31663.c:81:5: error: expected declaration or statement at end of input
     //*item;
     ^
0_0_29251123_31663.c:81:5: error: expected declaration or statement at end of input
0_0_29251123_31663.c:81:5: error: expected declaration or statement at end of input
0_0_29251123_31663.c:81:5: error: expected declaration or statement at end of input


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-09 06:17:54, Gzip enabled