books.cpp: In function 'long long int dijkstra_weight(int, int)':
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
47 | rep(i,0,graph[cur.second].size())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
books.cpp:47:9: note: in expansion of macro 'rep'
47 | rep(i,0,graph[cur.second].size())
| ^~~
books.cpp: In function 'long long int mst_weight(int, int)':
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, std::pair<long long int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
99 | rep(i,0,edges.size())
| ~~~~~~~~~~~~~~~~
books.cpp:99:5: note: in expansion of macro 'rep'
99 | rep(i,0,edges.size())
| ^~~
books.cpp: In function 'long long int get_cycle_cost(std::vector<int>)':
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
122 | rep(i,1,c.size())
| ~~~~~~~~~~~~
books.cpp:122:5: note: in expansion of macro 'rep'
122 | rep(i,1,c.size())
| ^~~
books.cpp: In function 'long long int calculate_weights(const std::vector<int>&, const std::vector<std::vector<int> >&)':
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
146 | rep(i,0,cycles.size())
| ~~~~~~~~~~~~~~~~~
books.cpp:146:5: note: in expansion of macro 'rep'
146 | rep(i,0,cycles.size())
| ^~~
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
150 | rep(j,0,cycles[i].size())
| ~~~~~~~~~~~~~~~~~~~~
books.cpp:150:9: note: in expansion of macro 'rep'
150 | rep(j,0,cycles[i].size())
| ^~~
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
167 | rep(i,1,ranges.size())
| ~~~~~~~~~~~~~~~~~
books.cpp:167:5: note: in expansion of macro 'rep'
167 | rep(i,1,ranges.size())
| ^~~
books.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(i,a,b) for(int i = a;i < b;i++)
......
183 | rep(i,1,nranges.size())
| ~~~~~~~~~~~~~~~~~~
books.cpp:183:5: note: in expansion of macro 'rep'
183 | rep(i,1,nranges.size())
| ^~~