Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101697 | 李雨昊 | 奖学金 | C++ | Compile Error | 0 MS | 0 KB | 440 | 2024-12-15 19:27:49 |
#include <iostream> #include <algorithm> using namespace std; struct Stu{ int no; int chinese; int math; int english; int total; }; bool cmp(Stu x,Stu y) { if(x.total<y.total) return true; else if(x.total==y.total) { if(x.chinese<y.chinese) return true; else if(x.chinese==y.chinese) return x.no>y.no; } return false; }
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status