Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
453 | 邓小龙 | 成绩排序 | C++ | Compile Error | 0 MS | 0 KB | 491 | 2022-08-20 12:53:05 |
#include<iostream> #include<cstring> #include<algorithm> using namespace std; struct chengji{ string name; int score; }; bool cmp(chengji x,chengji y){ return x.score>y.score; } int main(){ int n; struct chengji stu[20]={}; cin>>n; for(int i=0;i<n;i++){ cin>>stu[i].name>>stu[i].score; } sort(stu,stu+n,cmp); for(int i=0;i<n;i++){ cout<<stu[i].name<<" "<<stu[i].score<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:17:29: internal compiler error: in gimplify_init_constructor, at gimplify.c:4271 struct chengji stu[20]={}; ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/cc6u5U1n.out file, please attach this to your bugreport.