/ Vijos /

记录详情

Compile Error

/in/foo.cc:4:6: error: redefinition of 'int step'
  int step;
      ^~~~
/in/foo.cc:3:5: note: 'int step' previously declared here
 int step;
     ^~~~
/in/foo.cc: In function 'void hanoi(int, char, char, char)':
/in/foo.cc:9:19: error: 'hanio' was not declared in this scope
    hanio(n-1,a,c,b);
                   ^
/in/foo.cc:10:12: error: 'sept' was not declared in this scope
    cout<<++sept<<".move"<<" "<<n<<" "<<"from"<<" "<<a<<" "<<"to"<<" "<<c<<endl;
            ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:21: error: 'hanio' was not declared in this scope
  hanio(n,'a','b','c');
                     ^

信息

递交者
类型
递交
题目
P1073 4-Hanoi-Tower
语言
C++
递交时间
2021-06-16 16:38:26
评测时间
2021-06-16 16:38:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes