printer.cpp: In function 'bool compare(std::string, std::string)':
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
25 | rep(j,0, a.size()){
| ~~~~~~~~~~~~~
printer.cpp:25:5: note: in expansion of macro 'rep'
25 | rep(j,0, a.size()){
| ^~~
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
29 | rep(j,0, b.size()){
| ~~~~~~~~~~~~~
printer.cpp:29:5: note: in expansion of macro 'rep'
29 | rep(j,0, b.size()){
| ^~~
printer.cpp: In function 'int main()':
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
66 | rep(j,0, min(arr[i-1].size(), arr[i].size())){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:66:7: note: in expansion of macro 'rep'
66 | rep(j,0, min(arr[i-1].size(), arr[i].size())){
| ^~~
printer.cpp:56:10: warning: unused variable 'len' [-Wunused-variable]
56 | int len=arr[i].size();
| ^~~
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
80 | rep(j,0,arr[i].size()){
| ~~~~~~~~~~~~~~~~~
printer.cpp:80:7: note: in expansion of macro 'rep'
80 | rep(j,0,arr[i].size()){
| ^~~
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
87 | rep(j,0, min(arr[i-1].size(), arr[i].size())){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:87:7: note: in expansion of macro 'rep'
87 | rep(j,0, min(arr[i-1].size(), arr[i].size())){
| ^~~
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
91 | rep(j,0, arr[i-1].size()-same) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:91:7: note: in expansion of macro 'rep'
91 | rep(j,0, arr[i-1].size()-same) {
| ^~~
printer.cpp:8:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i=a; i<b; i++)
......
94 | rep(j,same, arr[i].size()){
| ~~~~~~~~~~~~~~~~~~~~~
printer.cpp:94:7: note: in expansion of macro 'rep'
94 | rep(j,same, arr[i].size()){
| ^~~
printer.cpp:78:10: warning: unused variable 'len' [-Wunused-variable]
78 | int len=arr[i].size();
| ^~~
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);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~