记录详情

Compile Error

/in/foo.cc:9:1: error: expected ';' after struct definition
 }
 ^
/in/foo.cc: In function 'void SortbyID(Student*, int)':
/in/foo.cc:12:7: error: 'student' was not declared in this scope
  sort(student ss[1].id,student ss[5].id)
       ^~~~~~~
/in/foo.cc:12:32: error: expected ')' before 'ss'
  sort(student ss[1].id,student ss[5].id)
                                ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:19: error: expected primary-expression before 'ss'
  SortbyID(Student ss[], n);
                   ^~
/in/foo.cc:22:8: error: 'student' was not declared in this scope
  cout<<student ss[k];
        ^~~~~~~

信息

递交者
类型
自测
语言
C++
递交时间
2024-11-02 18:16:29
评测时间
2024-11-02 18:16:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes