printer.cpp: In function 'int main()':
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
40 | rep(j,0, strlen(s[i])){
| ~~~~~~~~~~~~~~~~~
printer.cpp:40:6: note: in expansion of macro 'rep'
40 | rep(j,0, strlen(s[i])){
| ^~~
printer.cpp:61:23: error: 'plen' was not declared in this scope; did you mean 'len'?
61 | rep(j,0,min(len,plen)){
| ^~~~
printer.cpp:8:35: note: in definition of macro 'rep'
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
| ^
printer.cpp:65:16: error: 'plen' was not declared in this scope; did you mean 'len'?
65 | rep(j,0, plen-same) {
| ^~~~
printer.cpp:8:35: note: in definition of macro 'rep'
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
| ^
printer.cpp: In function 'void setIO(std::string, int)':
printer.cpp:13:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
13 | freopen((name + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:14:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
14 | freopen((name + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
printer.cpp:33:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%s",s[i]);
| ~~~~~^~~~~~~~~~~