记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:6: error: storage size of 'a' isn't known
  int a[][2];
      ^
/in/foo.cc:8:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~
/in/foo.cc:8:2: note: suggested alternative: 'main'
  cin>>n;
  ^~~
  main
/in/foo.cc:27:6: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
   if(a[i][0]!=a[i-1][0]
      ^
/in/foo.cc:29:2: error: expected primary-expression before '}' token
  }
  ^
/in/foo.cc:29:2: error: expected ')' before '}' token
/in/foo.cc:29:2: error: expected primary-expression before '}' token
/in/foo.cc:30:5: error: 'cout' was not declared in this scope
     cout<<num<<endl;
     ^~~~
/in/foo.cc:30:16: error: 'endl' was not declared in this scope
     cout<<num<<endl;
                ^~~~
/in/foo.cc:30:16: note: suggested alternative: 'enum'
     cout<<num<<endl;
                ^~~~
                enum

信息

递交者
类型
自测
题目
3 有两个孩子的家庭个数
语言
C++
递交时间
2018-12-02 08:30:44
评测时间
2018-12-02 08:30:44
评测机
分数
0
总耗时
17ms
峰值内存
3.41 MiB