mousetrap.cpp: In function 'int main()':
mousetrap.cpp:85:13: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | if(i<path.size()-1) suff[i]+=suff[i+1]-1;
| ~^~~~~~~~~~~~~~
mousetrap.cpp:4:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define rep(i,n) for(int i = 0; i < n; i++)
......
89 | rep(i, path.size())
| ~~~~~~~~~~~~~~
mousetrap.cpp:89:5: note: in expansion of macro 'rep'
89 | rep(i, path.size())
| ^~~
mousetrap.cpp:94:40: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | if((i>0&&w==path[i-1]||(i+1<path.size()&&w==path[i+1]))||w==t) continue;
| ~~~^~~~~~~~~~~~
mousetrap.cpp:94:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
94 | if((i>0&&w==path[i-1]||(i+1<path.size()&&w==path[i+1]))||w==t) continue;
mousetrap.cpp:4:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'const long unsigned int' [-Wsign-compare]
4 | #define rep(i,n) for(int i = 0; i < n; i++)
......
104 | rep(i,min(path.size(), costs.size()))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mousetrap.cpp:104:5: note: in expansion of macro 'rep'
104 | rep(i,min(path.size(), costs.size()))
| ^~~
mousetrap.cpp:4:35: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define rep(i,n) for(int i = 0; i < n; i++)
......
109 | rep(i, costs2.size())
| ~~~~~~~~~~~~~~~~
mousetrap.cpp:109:5: note: in expansion of macro 'rep'
109 | rep(i, costs2.size())
| ^~~