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_36757652_28648.cpp: In function 'void ddd(int)':
0_0_36757652_28648.cpp:3:2: error: 'h' was not declared in this scope
  h=0;
  ^
0_0_36757652_28648.cpp:15:4: error: 'a' was not declared in this scope
    a[h]=i;
    ^
0_0_36757652_28648.cpp:16:4: error: 'b' was not declared in this scope
    b[h++]=sum; 
    ^
0_0_36757652_28648.cpp: In function 'int main()':
0_0_36757652_28648.cpp:27:21: error: 'scanf' was not declared in this scope
  while(scanf("%d",&n)!=EOF&&n>=0)
                     ^
0_0_36757652_28648.cpp:27:24: error: 'EOF' was not declared in this scope
  while(scanf("%d",&n)!=EOF&&n>=0)
                        ^
0_0_36757652_28648.cpp:29:10: error: 'a' was not declared in this scope
   memset(a,0,sizeof(a));
          ^
0_0_36757652_28648.cpp:29:23: error: 'memset' was not declared in this scope
   memset(a,0,sizeof(a));
                       ^
0_0_36757652_28648.cpp:30:10: error: 'b' was not declared in this scope
   memset(b,0,sizeof(b));
          ^
0_0_36757652_28648.cpp:33:14: error: 'printf' was not declared in this scope
   printf("\n");
              ^
0_0_36757652_28648.cpp:35:27: error: 'printf' was not declared in this scope
   printf("Case %d.\n",cc++);
                           ^
0_0_36757652_28648.cpp:43:17: error: 'h' was not declared in this scope
   for(int i=0;i<h;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-10-31 15:18:08, Gzip enabled