GCC error: invalid storage class for function 编译错误,一般是括号不匹配导致的。通过格式化一下代码,一般就可以清晰得看出来哪里不对齐了。
The "expected declaration or statement at end of input" error means that there is an imbalance of curly braces { } somewhere in your code. The "invalid storage class ..." errors are only inherited from that.