0_0_26096846_3848.cpp: In function 'int main()':
0_0_26096846_3848.cpp:13:23: error: invalid conversion from 'int' to 'void*' [-fpermissive]
memset(a,0,sizeof(a));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:48,
from 0_0_26096846_3848.cpp:1:
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_26096846_3848.cpp:14:6: error: invalid types 'int[int]' for array subscript
a[0]=1;
^
0_0_26096846_3848.cpp:17:24: error: invalid conversion from 'int' to 'void*' [-fpermissive]
memset(b,0,sizeof(b));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:48,
from 0_0_26096846_3848.cpp:1:
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_26096846_3848.cpp:20:15: error: invalid types 'int[int]' for array subscript
b[k+j*v[i]]+=a[k];
^
0_0_26096846_3848.cpp:20:21: error: invalid types 'int[int]' for array subscript
b[k+j*v[i]]+=a[k];
^
0_0_26096846_3848.cpp:21:24: error: invalid conversion from 'int' to 'void*' [-fpermissive]
memcpy(a,b,sizeof(b));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_26096846_3848.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:957:17: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'
void *__cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
0_0_26096846_3848.cpp:21:24: error: invalid conversion from 'int' to 'const void*' [-fpermissive]
memcpy(a,b,sizeof(b));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_26096846_3848.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:957:17: note: initializing argument 2 of 'void* memcpy(void*, const void*, size_t)'
void *__cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
0_0_26096846_3848.cpp:25:10: error: invalid types 'int[int]' for array subscript
if(a[i]==0)
^
|