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_23996402_15009.c:7:5: error: expected ':', ',', ';', '}' or '__attribute__' before 'int'
     int yu, ml;
     ^
0_0_23996402_15009.c: In function 'main':
0_0_23996402_15009.c:18:26: error: 'r' undeclared (first use in this function)
             scanf("%d", &r);
                          ^
0_0_23996402_15009.c:18:26: note: each undeclared identifier is reported only once for each function it appears in
0_0_23996402_15009.c:21:41: error: 'struct s' has no member named 'name'
                 scanf("%s%d%d", pi[1000].name, pi[1000].yu, pi[1000].ml);
                                         ^
0_0_23996402_15009.c:21:56: error: 'struct s' has no member named 'yu'
                 scanf("%s%d%d", pi[1000].name, pi[1000].yu, pi[1000].ml);
                                                        ^
0_0_23996402_15009.c:21:69: error: 'struct s' has no member named 'ml'
                 scanf("%s%d%d", pi[1000].name, pi[1000].yu, pi[1000].ml);
                                                                     ^
0_0_23996402_15009.c:25:25: error: 'struct s' has no member named 'ml'
                 if(pi[i].ml < 200)
                         ^
0_0_23996402_15009.c:27:26: error: 'struct s' has no member named 'dayu'
                     pi[i].dayu = 1000000000;
                          ^
0_0_23996402_15009.c:29:30: error: 'struct s' has no member named 'ml'
                 else if(pi[i].ml >= 1000)
                              ^
0_0_23996402_15009.c:31:26: error: 'struct s' has no member named 'dayu'
                     pi[i].dayu = pi[i].yu / 5.0;
                          ^
0_0_23996402_15009.c:31:39: error: 'struct s' has no member named 'yu'
                     pi[i].dayu = pi[i].yu / 5.0;
                                       ^
0_0_23996402_15009.c:35:32: error: 'struct s' has no member named 'ml'
                     day = pi[i].ml / 200;
                                ^
0_0_23996402_15009.c:36:26: error: 'struct s' has no member named 'dayu'
                     pi[i].dayu = pi[i].yu / day;
                          ^
0_0_23996402_15009.c:36:39: error: 'struct s' has no member named 'yu'
                     pi[i].dayu = pi[i].yu / day;
                                       ^


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-02 00:33:57, Gzip enabled