Main.cc: In function ‘int main()’:
Main.cc:6:7: error: ‘l’ was not declared in this scope
cin>>l>>n;
^
Main.cc:6:10: error: ‘n’ was not declared in this scope
cin>>l>>n;
^
Main.cc:6:10: note: suggested alternative: ‘na’
cin>>l>>n;
^
na
Main.cc:8:3: error: ‘a’ was not declared in this scope
a[i]=1;
^
Main.cc:14:4: error: ‘a’ was not declared in this scope
a[i]=0;
^
Main.cc:19:6: error: ‘a’ was not declared in this scope
if(a[i]==1) c++;
^
Main.cc:5:8: warning: unused variable ‘na’ [-Wunused-variable]
int L,na[10005];
^~