0_0_37186889_26555\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_37186889_26555\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_37186889_26555\Main.java:2: 错误: 非法字符: '#'
#include <string>
^
0_0_37186889_26555\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_37186889_26555\Main.java:6: 错误: 需要class, interface或enum
struct milk
^
0_0_37186889_26555\Main.java:9: 错误: 需要class, interface或enum
int price; //价格
^
0_0_37186889_26555\Main.java:10: 错误: 需要class, interface或enum
int volume; //容量
^
0_0_37186889_26555\Main.java:11: 错误: 需要class, interface或enum
double pricePerDay; //每天所需价格
^
0_0_37186889_26555\Main.java:12: 错误: 需要class, interface或enum
};
^
0_0_37186889_26555\Main.java:14: 错误: 需要class, interface或enum
bool cmp(milk m1, milk m2) //排列规则
^
0_0_37186889_26555\Main.java:18: 错误: 需要class, interface或enum
else
^
0_0_37186889_26555\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_37186889_26555\Main.java:25: 错误: 需要class, interface或enum
cin >> T;
^
0_0_37186889_26555\Main.java:26: 错误: 需要class, interface或enum
while (T--)
^
0_0_37186889_26555\Main.java:29: 错误: 需要class, interface或enum
cin >> N;
^
0_0_37186889_26555\Main.java:30: 错误: 需要class, interface或enum
milk* arr = new milk[N];
^
0_0_37186889_26555\Main.java:31: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++)
^
0_0_37186889_26555\Main.java:31: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++)
^
0_0_37186889_26555\Main.java:31: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++)
^
0_0_37186889_26555\Main.java:34: 错误: 需要class, interface或enum
day = 0;
^
0_0_37186889_26555\Main.java:35: 错误: 需要class, interface或enum
temp = arr[i].volume;
^
0_0_37186889_26555\Main.java:36: 错误: 需要class, interface或enum
while (temp >= 200)
^
0_0_37186889_26555\Main.java:39: 错误: 需要class, interface或enum
++day;
^
0_0_37186889_26555\Main.java:40: 错误: 需要class, interface或enum
if (day >= 5)
^
0_0_37186889_26555\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_37186889_26555\Main.java:46: 错误: 需要class, interface或enum
else //牛奶不够喝一天(容量小于200)
^
0_0_37186889_26555\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_37186889_26555\Main.java:50: 错误: 需要class, interface或enum
cout << arr[0].brand << endl;
^
0_0_37186889_26555\Main.java:51: 错误: 需要class, interface或enum
delete[] arr;
^
0_0_37186889_26555\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_37186889_26555\Main.java:55: 错误: 需要class, interface或enum
}
^
31 个错误
|