社区讨论
举报
灌水区参与者 16已保存回复 37
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 37 条
- 当前快照
- 1 份
- 快照标识符
- @mi7wftsw
- 此快照首次捕获于
- 2025/11/21 04:44 4 个月前
- 此快照最后确认于
- 2025/11/21 06:53 4 个月前
χιαθυαν蕭艷U166171
在这份评测中的编译信息显示
CPP/tmp/tmpfg1xp05k/src:33:30: 警告:variadic templates only available with -std=c++11 or -std=gnu++11
template<typename T, typename... U> inline void read(T& x, U&... y) {
^~~
/tmp/tmpfg1xp05k/src:33:66: 警告:variadic templates only available with -std=c++11 or -std=gnu++11
template<typename T, typename... U> inline void read(T& x, U&... y) {
^
而这位同学之前的代码从没用过读优,那这个警告信息是怎么回事呢?
我们打开魔力环的第一篇题解
CPPtemplate<typename T> inline void read(T& x) {
char c = getchar();
bool f = false;
for (x = 0; !isdigit(c); c = getchar()) {
if (c == '-') {
f = true;
}
}
for (; isdigit(c); c = getchar()) {
x = x * 10 + c - '0';
}
if (f) {
x = -x;
}
}
template<typename T, typename... U> inline void read(T& x, U&... y) {
read(x), read(y...);
}
template<typename T> inline bool checkMax(T& a, const T& b) {
return a < b ? a = b, true : false;
}
template<typename T> inline bool checkMin(T& a, const T& b) {
return a > b ? a = b, true : false;
}
请问您是如何在70AC,其中大半都是红橙题的情况下一遍AC插头dp,两遍AC魔力环?
而我顺手打开了魔力环的提交记录,发现很多一遍AC的dalao
仅仅翻了两页记录,就有这么多dalao,可以看出本题中dalao集结,实在是平生之罕见,建议管理员在这题跑一边反某某系统吧
chen_zhememset0
回复
共 37 条回复,欢迎继续交流。
正在加载回复...