Compile Error

foo.cc: In function 'int fun(int)':
foo.cc:12:5: error: expected ',' or ';' before 'return'
     return a;
     ^~~~~~
foo.cc:11:13: warning: unused variable 'a' [-Wunused-variable]
         int a=(sum+(n%10))
             ^
foo.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:20:3: error: 'sumbumber' was not declared in this scope
   sumbumber = fun(n);
   ^~~~~~~~~
foo.cc:20:3: note: suggested alternative: 'sumnumber'
   sumbumber = fun(n);
   ^~~~~~~~~
   sumnumber
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1059 A4-1 回文数专题:数字之和
语言
C++
递交时间
2021-09-30 00:18:31
评测时间
2021-09-30 00:18:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes