记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:12: error: size of array 'a' has non-integral type 'double'
     int a[N];
            ^
foo.cc:7:9: error: 'cin' was not declared in this scope
  int x; cin>>x;
         ^~~
foo.cc:7:9: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/6/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
foo.cc:24:22: error: lvalue required as left operand of assignment
   if(k!=len&&i=len-k+1)
                      ^
foo.cc:27:4: error: 'cout' was not declared in this scope
    cout<<a[i];
    ^~~~
foo.cc:27:4: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~

信息

递交者
类型
递交
题目
xk-3:删除数字
语言
C++
递交时间
2019-11-29 17:18:16
评测时间
2019-11-29 17:18:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes