记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:13:7: warning: value computed is not used [-Wunused-value]
   s[i]-'0';
        
/in/foo.cc:16:12: error: request for member 'begin' in 'a', which is of non-class type 'int [10000]'
  reverse(a.begin(),a.end());
            ^~~~~
/in/foo.cc:16:22: error: request for member 'end' in 'a', which is of non-class type 'int [10000]'
  reverse(a.begin(),a.end());
                      ^~~
/in/foo.cc:16:27: error: 'reverse' was not declared in this scope
  reverse(a.begin(),a.end());
                           ^
/in/foo.cc:18:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:29:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:31:8: error: 'ture' was not declared in this scope
   a[i]=ture;
        ^~~~
/in/foo.cc:33:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:35:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=0;j<s.length();j++)
               ~^~~~~~~~~~~
/in/foo.cc:37:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(s[j]==a[i])
    ^~
/in/foo.cc:40:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     esle
     ^~~~
/in/foo.cc:40:5: error: 'esle' was not declared in this scope
/in/foo.cc:46:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:51:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(cnt==s.length())
     ~~~^~~~~~~~~~~~
/in/foo.cc:55:12: error: request for member 'begin' in 'a', which is of non-class type 'int [10000]'
  reverse(a.begin(),a.end());
            ^~~~~
/in/foo.cc:55:22: error: request for member 'end' in 'a', which is of non-class type 'int [10000]'
  reverse(a.begin(),a.end());
                      ^~~
/in/foo.cc:56:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<s.length();i++)
          ~^~~~~~~~~~~
/in/foo.cc:8:17: warning: unused variable 'k' [-Wunused-variable]
  int i,a[10000],k=0,cnt=0;
                 ^
/in/foo.cc:9:7: warning: unused variable 'b' [-Wunused-variable]
  bool b[10000];
       ^

信息

递交者
类型
递交
题目
P1101 神奇的加倍
语言
C++
递交时间
2021-06-05 15:06:44
评测时间
2021-06-05 15:06:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes