printer.cpp: In function 'long long int pref(std::string, std::string)':
printer.cpp:6:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | for (int i=0; i<s1.size(); i++) {
| ~^~~~~~~~~~
printer.cpp:7:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | if (i>=s2.size() || s1[i]!=s2[i]) {
| ~^~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:27:21: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
27 | if (s.size()>ma) {
| ~~~~~~~~^~~
printer.cpp:56:30: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
56 | while (current.size()>t) {
| ~~~~~~~~~~~~~~^~
printer.cpp:60:37: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int j=current.size(); j<v2[i].size(); j++) {
| ~^~~~~~~~~~~~~
printer.cpp:51:9: warning: unused variable 'tot' [-Wunused-variable]
51 | int tot=0;
| ^~~
printer.cpp:15:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:16:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | freopen("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~