Main.cc: In function ‘int main()’:
Main.cc:5:11: error: expected initializer before ‘a’
int nums a[100]{0};
^
Main.cc:6:11: error: expected initializer before ‘b’
int nums b[100]{0};
^
Main.cc:9:8: error: ‘a’ was not declared in this scope
cin>>a[i];
^
Main.cc:10:3: error: ‘b’ was not declared in this scope
b[c]=a[i];
^
Main.cc:14:6: error: ‘b’ was not declared in this scope
if(b[c]%2==0){
^
Main.cc:21:6: error: ‘b’ was not declared in this scope
if(b[c]%2!=0){
^