qq.cpp:4:44: error: ‘int index [3333]’ redeclared as different kind of symbol
int n,m,col[3333][3333],st[3333],index[3333];
^
In file included from /usr/include/c++/4.9/cstring:42:0,
from qq.cpp:2:
/usr/include/string.h:482:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
qq.cpp: In function ‘int main()’:
qq.cpp:19:13: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[sz++]=0;
^
qq.cpp:26:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
ans+=(j-index[sz-2]-1)*st[sz-1];
^
qq.cpp:31:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[sz++]=j;
^