记录详情

Compile Error

/in/foo.cc: In function 'void output(int*, int)':
/in/foo.cc:3:16: error: expected ';' before '<' token
  for (int i=0,i<n,i++)
                ^
/in/foo.cc:3:16: error: expected primary-expression before '<' token
/in/foo.cc:3:22: error: expected ';' before ')' token
  for (int i=0,i<n,i++)
                      ^
/in/foo.cc:4:3: error: 'cout' was not declared in this scope
   cout<<a[i]<<"";
   ^~~~
/in/foo.cc:5:2: error: 'cout' was not declared in this scope
  cout<<endl; 
  ^~~~
/in/foo.cc:5:8: error: 'endl' was not declared in this scope
  cout<<endl; 
        ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~

信息

递交者
类型
递交
题目
A7-1 数组的输出函数
语言
C++
递交时间
2019-09-22 22:13:01
评测时间
2019-09-22 22:13:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes