/ 程序猿 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:11: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
  int n(0<n<100);
        ~~~^~~~
/in/foo.cc:5:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  int n(0<n<100);
        ~^~
/in/foo.cc:6:6: error: expected '(' before 'n'
  for n(++i) ;
      ^
/in/foo.cc:6:10: error: 'i' was not declared in this scope
  for n(++i) ;
          ^
/in/foo.cc:6:11: error: 'n' cannot be used as a function
  for n(++i) ;
           ^
/in/foo.cc:7:6: error: expected ';' before 'a'
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
      ^
/in/foo.cc:7:6: error: 'a' was not declared in this scope
/in/foo.cc:7:14: error: 'b' was not declared in this scope
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
              ^
/in/foo.cc:7:22: error: 'c' was not declared in this scope
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
                      ^
/in/foo.cc:7:35: error: 'd' was not declared in this scope
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
                                   ^
/in/foo.cc:7:43: error: 'e' was not declared in this scope
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
                                           ^
/in/foo.cc:7:44: error: expected ')' before ';' token
  cin a>>" ">>b>>" ">>c>>" ">>" ">>d>>" ">>e;
                                            ^
/in/foo.cc:8:7: error: expected ';' before 'e'
  cout e>>" ">>" ">>d>>" ">>c>>" ">>b>>" ">>e;
       ^
/in/foo.cc:8:45: warning: statement has no effect [-Wunused-value]
  cout e>>" ">>" ">>d>>" ">>c>>" ">>b>>" ">>e;
                                             ^

信息

递交者
类型
递交
题目
数组逆序输出
语言
C++
递交时间
2018-10-28 16:57:25
评测时间
2018-10-28 16:57:25
评测机
分数
0
总耗时
245ms
峰值内存
29.316 MiB