0_0_36655625_26153.cpp: In function 'void KMP()':
0_0_36655625_26153.cpp:32:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
printf('%d',i-m+1);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:378:15: note: initializing argument 1 of 'int printf(const char*, ...)'
int __cdecl printf(const char * __restrict__ _Format,...);
^
0_0_36655625_26153.cpp:38:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
printf('-1');
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:378:15: note: initializing argument 1 of 'int printf(const char*, ...)'
int __cdecl printf(const char * __restrict__ _Format,...);
^
0_0_36655625_26153.cpp: In function 'int main()':
0_0_36655625_26153.cpp:44:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
scanf('%d',&t);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:386:15: note: initializing argument 1 of 'int scanf(const char*, ...)'
int __cdecl scanf(const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
0_0_36655625_26153.cpp:47:19: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
scanf('%d%d',&n,&m);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:386:15: note: initializing argument 1 of 'int scanf(const char*, ...)'
int __cdecl scanf(const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
0_0_36655625_26153.cpp:52:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
scanf('%d',&a[k]);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:386:15: note: initializing argument 1 of 'int scanf(const char*, ...)'
int __cdecl scanf(const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
0_0_36655625_26153.cpp:58:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
scanf('%d',&b[k]);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_36655625_26153.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:386:15: note: initializing argument 1 of 'int scanf(const char*, ...)'
int __cdecl scanf(const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
^
|