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++)
......
41 | rep(j,0, strlen(s[i])){
| ~~~~~~~~~~~~~~~~~
printer.cpp:41:6: note: in expansion of macro 'rep'
41 | rep(j,0, strlen(s[i])){
| ^~~
printer.cpp:62:23: error: 'plen' was not declared in this scope; did you mean 'len'?
62 | 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:66:16: error: 'plen' was not declared in this scope; did you mean 'len'?
66 | 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: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 + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:15:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
15 | freopen((name + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
printer.cpp:34:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%s",s[i]);
| ~~~~~^~~~~~~~~~~