0_0_21020246_23578.cpp: In function 'int main()':
0_0_21020246_23578.cpp:15:5: error: 'val' was not declared in this scope
val[m]=a;
^
0_0_21020246_23578.cpp:16:5: error: 'num' was not declared in this scope
num[m]=b;
^
0_0_21020246_23578.cpp:21:9: error: 'val' was not declared in this scope
if (val[i]>val[j]){
^
0_0_21020246_23578.cpp:24:11: error: 'num' was not declared in this scope
temp=num[i];num[i]=num[j];num[j]=temp;
^
0_0_21020246_23578.cpp:32:20: error: 'num' was not declared in this scope
for (int j=1;j<=num[i];j++){
^
0_0_21020246_23578.cpp:33:12: error: 'val' was not declared in this scope
sum+=k*val[i];
^
|