0_0_36465341_6003.cpp: In function 'int main()':
0_0_36465341_6003.cpp:31:32: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
if(p==ans) puts(nxt);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/locale.h:12:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/clocale:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:40,
from 0_0_36465341_6003.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:504:15: note: initializing argument 1 of 'int puts(const char*)'
int __cdecl puts(const char *_Str);
^
0_0_36465341_6003.cpp:32:26: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
else puts(ans);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/locale.h:12:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/clocale:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:40,
from 0_0_36465341_6003.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:504:15: note: initializing argument 1 of 'int puts(const char*)'
int __cdecl puts(const char *_Str);
^
|