/ Vijos /

记录详情

Compile Error

foo.cc:4:10: error: 'student' was not declared in this scope
 bool cmp(student a,student b){
          ^~~~~~~
foo.cc:4:10: note: suggested alternative: 'stderr'
 bool cmp(student a,student b){
          ^~~~~~~
          stderr
foo.cc:4:20: error: 'student' was not declared in this scope
 bool cmp(student a,student b){
                    ^~~~~~~
foo.cc:4:20: note: suggested alternative: 'stderr'
 bool cmp(student a,student b){
                    ^~~~~~~
                    stderr
foo.cc:4:29: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(student a,student b){
                             ^
foo.cc:7:16: error: expected unqualified-id before ')' token
 struct student(){
                ^
foo.cc: In function 'int main()':
foo.cc:15:10: error: elements of array 'student s [sn]' have incomplete type
  student s[sn];
          ^
foo.cc:15:10: error: storage size of 's' isn't known
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-07-14 10:58:09
评测时间
2021-07-14 10:58:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes