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_31201795_2088.cpp: In function 'bool cmp2(node, node)':
0_0_31201795_2088.cpp:23:13: error: 'struct node' has no member named 'num1'
    return a.num1 >b.num1 ;
             ^
0_0_31201795_2088.cpp:23:21: error: 'struct node' has no member named 'num1'
    return a.num1 >b.num1 ;
                     ^
0_0_31201795_2088.cpp: In function 'bool cmp3(node, node)':
0_0_31201795_2088.cpp:27:13: error: 'struct node' has no member named 'num2'
    return a.num2 >b.num2 ;
             ^
0_0_31201795_2088.cpp:27:21: error: 'struct node' has no member named 'num2'
    return a.num2 >b.num2 ;
                     ^
0_0_31201795_2088.cpp: In function 'int main()':
0_0_31201795_2088.cpp:51:27: error: 'struct node' has no member named 'num1'
    a[i].sum =(300/c)*a[i].num1 *0.3+(300/d)*a[i].num2 *0.7;
                           ^
0_0_31201795_2088.cpp:51:42: error: 'd' was not declared in this scope
    a[i].sum =(300/c)*a[i].num1 *0.3+(300/d)*a[i].num2 *0.7;
                                          ^
0_0_31201795_2088.cpp:51:50: error: 'struct node' has no member named 'num2'
    a[i].sum =(300/c)*a[i].num1 *0.3+(300/d)*a[i].num2 *0.7;
                                                  ^
0_0_31201795_2088.cpp:62:1: error: expected '}' at end of input
 }
 ^
0_0_31201795_2088.cpp:62:1: error: expected '}' at end of input


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 11:54:47, Gzip enabled