/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