liz.cpp:57:24: warning: multi-character character constant [-Wmultichar]
printf('NOOO');
^~~~~~
liz.cpp:73:24: warning: multi-character character constant [-Wmultichar]
printf('NOOO');
^~~~~~
liz.cpp: In function 'int main()':
liz.cpp:57:30: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
printf('NOOO');
^
In file included from /usr/include/stdio.h:936:0,
from liz.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: initializing argument 1 of 'int printf(const char*, ...)'
printf (const char *__restrict __fmt, ...)
^~~~~~
liz.cpp:57:30: warning: format not a string literal and no format arguments [-Wformat-security]
printf('NOOO');
^
liz.cpp:63:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(idx != Wpos.size()){
~~~~^~~~~~~~~~~~~~
liz.cpp:73:30: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
printf('NOOO');
^
In file included from /usr/include/stdio.h:936:0,
from liz.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: initializing argument 1 of 'int printf(const char*, ...)'
printf (const char *__restrict __fmt, ...)
^~~~~~
liz.cpp:73:30: warning: format not a string literal and no format arguments [-Wformat-security]
printf('NOOO');
^
liz.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%s", &num, &query, data);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
liz.cpp:42:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &range);
~~~~~^~~~~~~~~~~~~~