/in/foo.cc: In function 'int main()':
/in/foo.cc:8:16: error: cannot convert 'int (*)[2]' to 'int*' in assignment
b=new int[q][2];
^
/in/foo.cc:13:14: error: invalid types 'int[int]' for array subscript
cin>>b[i][0]>>b[i][1];
^
/in/foo.cc:13:23: error: invalid types 'int[int]' for array subscript
cin>>b[i][0]>>b[i][1];
^
/in/foo.cc:15:21: error: invalid types 'int[int]' for array subscript
for(int j=a[b[i][0]];j<a[b[i][1]];j++)
^
/in/foo.cc:15:34: error: invalid types 'int[int]' for array subscript
for(int j=a[b[i][0]];j<a[b[i][1]];j++)
^
/in/foo.cc:17:12: error: expected primary-expression before ';' token
c[i]=++;
^