printer.cpp: In function 'int main()':
printer.cpp:84:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
printf("%d\n" , cnt*2 - strlen(v[0]) + n ) ;
~~~~~~~~~~~~~~~~~~~~~~~~ ^
printer.cpp:4:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define lp(i,a,b) for(int i=a;i<b;i++)
printer.cpp:88:5:
lp(i,0,ans.size() - strlen(v[0])) printf("%c\n" , ans[i] ) ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:88:2: note: in expansion of macro 'lp'
lp(i,0,ans.size() - strlen(v[0])) printf("%c\n" , ans[i] ) ;
^~
printer.cpp:70:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n) ;
~~~~~^~~~~~~~~~
printer.cpp:74:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", v[0]) ;
~~~~~^~~~~~~~~~~~~
printer.cpp:78:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s",v[i]);
~~~~~^~~~~~~~~~~~