Run id: 112255

Main.cc: In function 'int main()':
Main.cc:8:8: error: 'cnt' was not declared in this scope
  while(cnt < n) {
        ^
Main.cc:9:9: error: invalid types 'int[int]' for array subscript
   if(a[i] == 0) {
         ^
Main.cc:10:4: error: 't' was not declared in this scope
    t++;
    ^
Main.cc:14:8: error: invalid types 'int[int]' for array subscript
     a[i] = 1;
        ^