Main.cc: In function 'int main()':
Main.cc:6:14: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(i>&&a[i]>0){
^
Main.cc:7:17: error: expected ')' before '[' token
if(i>&&a[i]>0){
^
Main.cc:11:9: error: 'a' was not declared in this scope
sum=a[1]*1+a[1]*k;
^
Main.cc:7:16: error: label 'a' used but not defined
if(i>&&a[i]>0){
^