Main.cc: In function 'int main()':
Main.cc:9:9: error: expected initializer before 'for'
for (int i=0;i<=l;i++)
^
Main.cc:9:22: error: 'i' was not declared in this scope
for (int i=0;i<=l;i++)
^
Main.cc:14:13: error: 'a' was not declared in this scope
a[j]=0;
^
Main.cc:17:17: error: 'a' was not declared in this scope
if (a[i]==1)
^