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:75:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
75 | printf("%d\n", res.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<char>::size_type {aka long unsigned int}
| %ld
printer.cpp:77:15: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
77 | printf("%s\n", x);
| ~^ ~
| | |
| char* int
| %d
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: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]);
| ~~~~~^~~~~~~~~~~