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_14868296_30330.cpp: In function 'int main()':
0_0_14868296_30330.cpp:5:19: error: 'n' was not declared in this scope
 while(scanf("%d",&n)!=EOF&&n!=0)
                   ^
0_0_14868296_30330.cpp:7:5: error: 'i' was not declared in this scope
 for(i=0;i<n;i++)
     ^
0_0_14868296_30330.cpp:9:11: error: 'b1' was not declared in this scope
 if(a[i]<0)b1++;
           ^
0_0_14868296_30330.cpp:10:17: error: 'b2' was not declared in this scope
 else if(a[i]==0)b2++;
                 ^
0_0_14868296_30330.cpp:11:6: error: 'b3' was not declared in this scope
 else b3++;
      ^
0_0_14868296_30330.cpp:13:21: error: 'b1' was not declared in this scope
 printf("%d %d %d\n",b1,b2,b3);
                     ^
0_0_14868296_30330.cpp:13:24: error: 'b2' was not declared in this scope
 printf("%d %d %d\n",b1,b2,b3);
                        ^
0_0_14868296_30330.cpp:13:27: error: 'b3' was not declared in this scope
 printf("%d %d %d\n",b1,b2,b3);
                           ^


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-15 14:41:42, Gzip enabled