Compile Error

foo.cc:48:17: error: expected identifier before 'a'
 int Hanoi(int n,'a','b','c');
                 ^~~
foo.cc:48:17: error: expected ',' or '...' before 'a'
foo.cc: In function 'int main()':
foo.cc:53:25: error: expression list treated as compound expression in initializer [-fpermissive]
  int Hanoi(n,'a','b','c')
                         ^
foo.cc:53:25: warning: left operand of comma operator has no effect [-Wunused-value]
foo.cc:53:25: warning: right operand of comma operator has no effect [-Wunused-value]
foo.cc:53:25: warning: right operand of comma operator has no effect [-Wunused-value]
foo.cc:55:1: error: expected ',' or ';' before '}' token
 }
 ^
foo.cc:53:6: warning: unused variable 'Hanoi' [-Wunused-variable]
  int Hanoi(n,'a','b','c')
      ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1088 Hanoi(汉诺塔)问题
语言
C++
递交时间
2021-07-28 14:58:25
评测时间
2021-07-28 14:58:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes