foo.cc: In function 'int main()':
foo.cc:11:13: error: expected primary-expression before ')' token
s=spart(a*)
^
foo.cc:11:5: error: 'spart' was not declared in this scope
s=spart(a*)
^~~~~
foo.cc:11:5: note: suggested alternative: 'short'
s=spart(a*)
^~~~~
short
foo.cc:14:3: error: expected '}' before 'else'
else if(a==b&&b==c)
^~~~
foo.cc: At global scope:
foo.cc:21:2: error: expected unqualified-id before 'else'
else
^~~~
foo.cc:24:3: error: expected unqualified-id before 'return'
return 0;
^~~~~~
foo.cc:25:1: error: expected declaration before '}' token
}
^
[Hydro](https://hydro.ac)提供评测服务