Main.cc: In function ‘int main()’: Main.cc:5:6: error: expected unqualified-id before ‘,’ token int ,a[10],cnt=0,ans; ^ Main.cc:6:7: error: ‘n’ was not declared in this scope cin>>n; ^ Main.cc:12:6: error: ‘cn’ was not declared in this scope a[cn++]=num%10; ^~ Main.cc:12:6: note: suggested alternative: ‘cnt’ a[cn++]=num%10; ^~ cnt