Compile Error

/in/foo.cc:3:12: error: expected unqualified-id before ')' token
    3 | struct stu(){
      |            ^
/in/foo.cc:6:3: error: 'a' does not name a type
    6 | } a[5005];
      |   ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:9: error: 'a' was not declared in this scope
   14 |         a[i].rank=1;
      |         ^
/in/foo.cc:25:16: error: 'a' was not declared in this scope
   25 |             if(a[i].s<a[j].s) a[i].rank++;
      |                ^
/in/foo.cc:28:16: error: 'a' was not declared in this scope
   28 |             if(a[i].rank==j)
      |                ^

信息

递交者
类型
递交
题目
P1005 学生信息记录
语言
C++
递交时间
2026-09-03 22:45:35
评测时间
2026-09-12 06:33:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes