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_13796482_5330.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13796482_5330.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13796482_5330.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13796482_5330.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13796482_5330.cpp: In constructor 'List::List(int)':
0_0_13796482_5330.cpp:13:16: error: 'NULL' was not declared in this scope
         next = NULL;
                ^
0_0_13796482_5330.cpp: In function 'void Pretreatment()':
0_0_13796482_5330.cpp:26:9: error: expected ';' before 'C'
         C[i] = i;
         ^
0_0_13796482_5330.cpp:26:17: error: expected ')' before ';' token
         C[i] = i;
                 ^
0_0_13796482_5330.cpp: In function 'void Add(int, int)':
0_0_13796482_5330.cpp:32:10: error: 'next' was not declared in this scope
     temp-next = head[col];
          ^
0_0_13796482_5330.cpp: In function 'void Change(int, int)':
0_0_13796482_5330.cpp:39:22: error: expected ')' before 'num'
     if(num[C[from]]  num[C[aim]])
                      ^
0_0_13796482_5330.cpp:40:28: error: 'swap' was not declared in this scope
         swap(C[from],C[aim]);
                            ^
0_0_13796482_5330.cpp:42:22: error: 'NULL' was not declared in this scope
     if(head[from] == NULL)  return ;
                      ^
0_0_13796482_5330.cpp:43:36: error: 'NULL' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next) {
                                    ^
0_0_13796482_5330.cpp:43:48: error: 'next' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next) {
                                                ^
0_0_13796482_5330.cpp:44:18: error: 'pos' was not declared in this scope
         if(src[x-pos - 1] == aim)   --now;
                  ^
0_0_13796482_5330.cpp:45:18: error: 'pos' was not declared in this scope
         if(src[x-pos + 1] == aim)   --now;
                  ^
0_0_13796482_5330.cpp:46:19: error: 'pos' was not declared in this scope
         Add(aim,x-pos);
                   ^
0_0_13796482_5330.cpp:48:36: error: 'NULL' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next)
                                    ^
0_0_13796482_5330.cpp:48:48: error: 'next' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next)
                                                ^
0_0_13796482_5330.cpp:49:15: error: 'pos' was not declared in this scope
         src[x-pos] = aim;
               ^
0_0_13796482_5330.cpp:52:36: error: 'NULL' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next)
                                    ^
0_0_13796482_5330.cpp:52:48: error: 'next' was not declared in this scope
     for(List *x = head[from]; x != NULL; x = x-next)
                                                ^
0_0_13796482_5330.cpp:55:18: error: 'NULL' was not declared in this scope
     head[from] = NULL;
                  ^
0_0_13796482_5330.cpp: In function 'int main()':
0_0_13796482_5330.cpp:63:5: error: 'cin' was not declared in this scope
     cin  cnt  asks;
     ^
0_0_13796482_5330.cpp:66:9: error: expected ';' before 'scanf'
         scanf("%d",&src[i]);
         ^
0_0_13796482_5330.cpp:66:27: error: 'scanf' was not declared in this scope
         scanf("%d",&src[i]);
                           ^
0_0_13796482_5330.cpp:66:28: error: expected ')' before ';' token
         scanf("%d",&src[i]);
                            ^
0_0_13796482_5330.cpp:67:17: error: 'i' was not declared in this scope
         Add(src[i],i);
                 ^
0_0_13796482_5330.cpp: At global scope:
0_0_13796482_5330.cpp:74:5: error: expected unqualified-id before 'for'
     for(int flag,x,y,i = 1; i 
     ^
0_0_13796482_5330.cpp:74:29: error: 'i' does not name a type
     for(int flag,x,y,i = 1; i 
                             ^
0_0_13796482_5330.cpp:76:9: error: expected unqualified-id before 'if'
         if(flag == 1) {
         ^
0_0_13796482_5330.cpp:80:9: error: expected unqualified-id before 'else'
         else    printf("%d\n",now);
         ^
0_0_13796482_5330.cpp:81:5: error: expected declaration before '}' token
     }
     ^


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-06-26 20:45:18, Gzip enabled