社区讨论

一个小问题

学术版参与者 4已保存回复 5

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
5 条
当前快照
1 份
快照标识符
@lo8dhvr5
此快照首次捕获于
2023/10/27 16:50
2 年前
此快照最后确认于
2023/10/27 16:50
2 年前
查看原帖
就是说为什么会CE(问题在cnt上)
CPP
#include <iostream>
#include <algorithm>
using namespace std;
int const p = (1 << 26) + 1;
int cnt[p] = {1};
int main()
{

    return 0;
}
编译信息
  • g++: 编译器内部错误:File size limit exceeded signal terminated program as 请提交一份完整的错误报告, 如有可能请附上经预处理后的源文件。 参阅 https://gcc.gnu.org/bugs/ 以获取指示。
CPP
#include <iostream>
#include <algorithm>
using namespace std;
int const p = (1 << 26) + 1;
int cnt[p];
int main()
{
    cnt[0] = 1;
    return 0;
}
这个没问题

回复

5 条回复,欢迎继续交流。

正在加载回复...