/ Randle /

记录详情

Compile Error

/in/foo.cc:6:11: error: stray '\342' in program
   cout << “请输入台阶数。。。。”<<endl;
           ^
/in/foo.cc:6:12: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
            ^
/in/foo.cc:6:13: error: stray '\234' in program
   cout << “请输入台阶数。。。。”<<endl;
             ^
/in/foo.cc:6:14: error: stray '\350' in program
   cout << “请输入台阶数。。。。”<<endl;
              ^
/in/foo.cc:6:15: error: stray '\257' in program
   cout << “请输入台阶数。。。。”<<endl;
               ^
/in/foo.cc:6:16: error: stray '\267' in program
   cout << “请输入台阶数。。。。”<<endl;
                ^
/in/foo.cc:6:17: error: stray '\350' in program
   cout << “请输入台阶数。。。。”<<endl;
                 ^
/in/foo.cc:6:18: error: stray '\276' in program
   cout << “请输入台阶数。。。。”<<endl;
                  ^
/in/foo.cc:6:19: error: stray '\223' in program
   cout << “请输入台阶数。。。。”<<endl;
                   ^
/in/foo.cc:6:20: error: stray '\345' in program
   cout << “请输入台阶数。。。。”<<endl;
                    ^
/in/foo.cc:6:21: error: stray '\205' in program
   cout << “请输入台阶数。。。。”<<endl;
                     ^
/in/foo.cc:6:22: error: stray '\245' in program
   cout << “请输入台阶数。。。。”<<endl;
                      ^
/in/foo.cc:6:23: error: stray '\345' in program
   cout << “请输入台阶数。。。。”<<endl;
                       ^
/in/foo.cc:6:24: error: stray '\217' in program
   cout << “请输入台阶数。。。。”<<endl;
                        ^
/in/foo.cc:6:25: error: stray '\260' in program
   cout << “请输入台阶数。。。。”<<endl;
                         ^
/in/foo.cc:6:26: error: stray '\351' in program
   cout << “请输入台阶数。。。。”<<endl;
                          ^
/in/foo.cc:6:27: error: stray '\230' in program
   cout << “请输入台阶数。。。。”<<endl;
                           ^
/in/foo.cc:6:28: error: stray '\266' in program
   cout << “请输入台阶数。。。。”<<endl;
                            ^
/in/foo.cc:6:29: error: stray '\346' in program
   cout << “请输入台阶数。。。。”<<endl;
                             ^
/in/foo.cc:6:30: error: stray '\225' in program
   cout << “请输入台阶数。。。。”<<endl;
                              ^
/in/foo.cc:6:31: error: stray '\260' in program
   cout << “请输入台阶数。。。。”<<endl;
                               ^
/in/foo.cc:6:32: error: stray '\343' in program
   cout << “请输入台阶数。。。。”<<endl;
                                ^
/in/foo.cc:6:33: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
                                 ^
/in/foo.cc:6:34: error: stray '\202' in program
   cout << “请输入台阶数。。。。”<<endl;
                                  ^
/in/foo.cc:6:35: error: stray '\343' in program
   cout << “请输入台阶数。。。。”<<endl;
                                   ^
/in/foo.cc:6:36: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
                                    ^
/in/foo.cc:6:37: error: stray '\202' in program
   cout << “请输入台阶数。。。。”<<endl;
                                     ^
/in/foo.cc:6:38: error: stray '\343' in program
   cout << “请输入台阶数。。。。”<<endl;
                                      ^
/in/foo.cc:6:39: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
                                       ^
/in/foo.cc:6:40: error: stray '\202' in program
   cout << “请输入台阶数。。。。”<<endl;
                                        ^
/in/foo.cc:6:41: error: stray '\343' in program
   cout << “请输入台阶数。。。。”<<endl;
                                         ^
/in/foo.cc:6:42: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
                                          ^
/in/foo.cc:6:43: error: stray '\202' in program
   cout << “请输入台阶数。。。。”<<endl;
                                           ^
/in/foo.cc:6:44: error: stray '\342' in program
   cout << “请输入台阶数。。。。”<<endl;
                                            ^
/in/foo.cc:6:45: error: stray '\200' in program
   cout << “请输入台阶数。。。。”<<endl;
                                             ^
/in/foo.cc:6:46: error: stray '\235' in program
   cout << “请输入台阶数。。。。”<<endl;
                                              ^
/in/foo.cc:4:11: error: '::main' must return 'int'
 void main(){
           ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:47: error: expected primary-expression before '<<' token
   cout << “请输入台阶数。。。。”<<endl;
                                               ^~

代码

#include<iostream>
using namespace std;
void Circul(const int n);
void main(){
  int n;
  cout << “请输入台阶数。。。。”<<endl;
cin >> n;
Circul(n);
}

void Circul(const int n){
      int i;
      int a[100];
      a[1]=1;
      a[2]=2;
      a[3]=4;
if (n==1){
   cout<<a[1]<< endl;
   return;
}else if(n==2){
   cout<< a[2]<<endl;
   return;
}else if(n==3){
   cout<< a[3]<<endl;
   return;
}else for(i=4;i<=n;i++){
   a[i]=a[i-3]+a[i-2]+a[i-1];
}
   cout<< a[n]<<endl;

}

信息

递交者
类型
递交
题目
上楼梯(数据原创)
题目数据
下载
语言
C++
递交时间
2018-07-20 14:44:44
评测时间
2018-07-20 14:44:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes