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
|