foo.cc:3:5: error: expected ';' at end of member declaration
int num 1001;
^~~
foo.cc:3:9: error: expected unqualified-id before numeric constant
int num 1001;
^~~~
foo.cc:4:11: error: 'Tom' was not declared in this scope
char name[Tom];
^~~
foo.cc:5:1: error: 'sex' does not name a type
sex=1;
^~~
foo.cc:6:7: error: expected ';' at end of member declaration
float score 95;
^~~~~
foo.cc:6:13: error: expected unqualified-id before numeric constant
float score 95;
^~
foo.cc:8:1: error: expected unqualified-id before '{' token
{
^
foo.cc:14:1: error: expected unqualified-id before '{' token
{
^
foo.cc:20:1: error: expected unqualified-id before '{' token
{
^
foo.cc:26:1: error: expected unqualified-id before '{' token
{
^
[Hydro](https://hydro.ac)提供评测服务