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_19924205_6113.c:3:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_19924205_6113.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_19924205_6113.c:6:2: error: unknown type name 'bool'
  bool v;
  ^
0_0_19924205_6113.c:7:2: error: unknown type name 'node'
  node *next[10];
  ^
0_0_19924205_6113.c:9:1: error: unknown type name 'node'
 node rt;
 ^
0_0_19924205_6113.c: In function 'ctree':
0_0_19924205_6113.c:12:2: error: unknown type name 'node'
  node *p = &rt,*now;
  ^
0_0_19924205_6113.c:14:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<len;i++){
  ^
0_0_19924205_6113.c:14:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_19924205_6113.c:16:10: error: request for member 'next' in something not a structure or union
   now = p->next[id];
          ^
0_0_19924205_6113.c:18:10: error: 'new' undeclared (first use in this function)
    now = new node;
          ^
0_0_19924205_6113.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
0_0_19924205_6113.c:18:14: error: expected ';' before 'node'
    now = new node;
              ^
0_0_19924205_6113.c:19:24: error: 'node' undeclared (first use in this function)
    memset(now,0,sizeof(node));
                        ^
0_0_19924205_6113.c:20:5: error: request for member 'next' in something not a structure or union
    p->next[id]=now;
     ^
0_0_19924205_6113.c:22:14: error: request for member 'v' in something not a structure or union
   else if(now->v){
              ^
0_0_19924205_6113.c:28:3: error: request for member 'v' in something not a structure or union
  p->v=1;
   ^
0_0_19924205_6113.c:29:10: error: redefinition of 'i'
  for(int i=0;i<10;i++){
          ^
0_0_19924205_6113.c:14:10: note: previous definition of 'i' was here
  for(int i=0;i<len;i++){
          ^
0_0_19924205_6113.c:29:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<10;i++){
  ^
0_0_19924205_6113.c:30:7: error: request for member 'next' in something not a structure or union
   if(p->next[id]){
       ^
0_0_19924205_6113.c: In function 'main':
0_0_19924205_6113.c:43:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<n;i++){
   ^


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-17 05:52:49, Gzip enabled