Compile Error

foo.cc: In function 'int main()':
foo.cc:17:17: error: elements of array 'main()::stndent s [100]' have incomplete type
  struct stndent s[N],t;
                 ^
foo.cc:17:17: error: storage size of 's' isn't known
foo.cc:17:22: error: aggregate 'main()::stndent t' has incomplete type and cannot be defined
  struct stndent s[N],t;
                      ^
foo.cc:37:10: error: unable to find string literal operator 'operator""s' with 'const char [20]', 'long unsigned int' arguments
   printf("%-8d%-8s%-8c%-8.0f\n"s[i].num,s[i].name,s[i].sex?'M':'F',s[i].score);
          ^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:40:1: error: expected ';' before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1151 结构体-学生信息处理3
语言
C++
递交时间
2021-11-07 16:56:47
评测时间
2021-11-07 16:56:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes