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_22115874_31974.cpp: In function 'int main()':
0_0_22115874_31974.cpp:16:2: error: 'nbsp' was not declared in this scope
     while(scanf("%d",&m)!=EOF)
  ^
0_0_22115874_31974.cpp:34:48: error: 'i' was not declared in this scope
             if(a[i]==0&&coun==0)
                                                ^
0_0_22115874_31974.cpp:36:59: error: 'i' was not declared in this scope
                 b[i]=0;
                                                           ^
0_0_22115874_31974.cpp:38:43: error: 'else' without a previous 'if'
             else if(a[i]==2&&coun)
                                           ^
0_0_22115874_31974.cpp:38:53: error: 'i' was not declared in this scope
             else if(a[i]==2&&coun)
                                                     ^
0_0_22115874_31974.cpp:40:59: error: 'i' was not declared in this scope
                 b[i]=0;
                                                           ^
0_0_22115874_31974.cpp:43:43: error: 'else' without a previous 'if'
             else if(a[i]==1&&coun)
                                           ^
0_0_22115874_31974.cpp:43:53: error: 'i' was not declared in this scope
             else if(a[i]==1&&coun)
                                                     ^
0_0_22115874_31974.cpp:45:59: error: 'i' was not declared in this scope
                 b[i]=1;
                                                           ^
0_0_22115874_31974.cpp:48:43: error: 'else' without a previous 'if'
             else if(a[i]==0&&coun==1)
                                           ^
0_0_22115874_31974.cpp:48:53: error: 'i' was not declared in this scope
             else if(a[i]==0&&coun==1)
                                                     ^
0_0_22115874_31974.cpp:50:59: error: 'i' was not declared in this scope
                 b[i]=0;
                                                           ^
0_0_22115874_31974.cpp:53:43: error: 'else' without a previous 'if'
             else if(a[i]==2&&coun==0)
                                           ^
0_0_22115874_31974.cpp:53:53: error: 'i' was not declared in this scope
             else if(a[i]==2&&coun==0)
                                                     ^
0_0_22115874_31974.cpp:55:59: error: 'i' was not declared in this scope
                 b[i]=1;
                                                           ^
0_0_22115874_31974.cpp:58:43: error: 'else' without a previous 'if'
             else if(a[i]==1&&coun==0)
                                           ^
0_0_22115874_31974.cpp:58:53: error: 'i' was not declared in this scope
             else if(a[i]==1&&coun==0)
                                                     ^
0_0_22115874_31974.cpp:60:59: error: 'i' was not declared in this scope
                 b[i]=0;
                                                           ^
0_0_22115874_31974.cpp:86:49: error: 'i' was not declared in this scope
             tmp=a[i]+b[i]+coun;
                                                 ^
0_0_22115874_31974.cpp:92:43: error: 'else' without a previous 'if'
             else if(tmp==0)
                                           ^
0_0_22115874_31974.cpp:99:43: error: 'else' without a previous 'if'
             else
                                           ^
0_0_22115874_31974.cpp:112:29: error: 'else' without a previous 'if'
         else
                             ^
0_0_22115874_31974.cpp:118:48: error: 'i' was not declared in this scope
             if(b[i])
                                                ^
0_0_22115874_31974.cpp:127:59: error: 'i' was not declared in this scope
             printf(" %d",ve[i]);
                                                           ^
0_0_22115874_31974.cpp:134:48: error: 'i' was not declared in this scope
             if(c[i])
                                                ^
0_0_22115874_31974.cpp:143:59: error: 'i' was not declared in this scope
             printf(" %d",ve[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-26 02:30:27, Gzip enabled