0_0_36813531_21916.cpp:5:33: error: conflicting declaration 'int m [110][110]'
int a[10010],b[10010],m[110][110],book[10010],g[10010];
^
0_0_36813531_21916.cpp:4:7: note: previous declaration as 'int m'
int n,m,k;
^
0_0_36813531_21916.cpp: In function 'int f(int)':
0_0_36813531_21916.cpp:13:23: error: invalid types 'int[int]' for array subscript
if(book[i] == 0&&m[x][i] == 1)
^
0_0_36813531_21916.cpp: In function 'int main()':
0_0_36813531_21916.cpp:38:23: error: invalid conversion from 'int' to 'void*' [-fpermissive]
memset(m,0,sizeof(m));
^
In file included from 0_0_36813531_21916.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:43:18: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
^
0_0_36813531_21916.cpp:45:10: error: invalid types 'int[int]' for array subscript
m[a[i]][b[i]] = 1;
^
0_0_36813531_21916.cpp:61:10: error: invalid types 'int[int]' for array subscript
m[a[i]][b[i]] = 0;
^
0_0_36813531_21916.cpp:72:12: error: invalid types 'int[int]' for array subscript
m[a[i]][b[i]] = 1;
^
|