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_28175179_29710.cpp: In function 'int main()':
0_0_28175179_29710.cpp:11:13: error: 'i' was not declared in this scope
         for(i=1;i<=n;i++)
             ^
0_0_28175179_29710.cpp:16:17: error: 'a' was not declared in this scope
                 a[j]=sum;
                 ^
0_0_28175179_29710.cpp:21:9: error: 'k' was not declared in this scope
         k=n%m;
         ^
0_0_28175179_29710.cpp:22:13: error: 'i' was not declared in this scope
         for(i=0;i<j-1;i++)
             ^
0_0_28175179_29710.cpp:23:22: error: 'a' was not declared in this scope
         printf("%d ",a[i]/m);
                      ^
0_0_28175179_29710.cpp:25:23: error: 'a' was not declared in this scope
         printf("%d\n",a[j-1]/k);
                       ^
0_0_28175179_29710.cpp:27:23: error: 'a' was not declared in this scope
         printf("%d\n",a[j-1]/m);
                       ^


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-09-28 04:16:50, Gzip enabled