记录详情

Compile Error

foo.cc:3:16: error: 'a' was not declared in this scope
    3 | int palindrome(a,x)
      |                ^
foo.cc:3:18: error: 'x' was not declared in this scope
    3 | int palindrome(a,x)
      |                  ^
foo.cc:3:19: error: expression list treated as compound expression in initializer [-fpermissive]
    3 | int palindrome(a,x)
      |                   ^
foo.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:27:37: error: 'palindrome' cannot be used as a function
   27 |                         a=palindrome(a,x);
      |                           ~~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022年迎新赛(第三场)
语言
C++
递交时间
2022-09-16 18:50:38
评测时间
2022-09-16 18:50:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes