In file included from /in/driver/main.cpp:4:0:
/in/sort.hpp: In instantiation of 'void bubble_sort(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:133:45: required from here
/in/sort.hpp:11:9: error: conversion to 'int' from 'std::vector<node>::size_type {aka long unsigned int}' may alter its value [-Werror=conversion]
int n = vector.size();
^
/in/sort.hpp: In instantiation of 'void insertion_sort(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:138:48: required from here
/in/sort.hpp:36:9: error: conversion to 'int' from 'std::vector<node>::size_type {aka long unsigned int}' may alter its value [-Werror=conversion]
int n = vector.size();
^
/in/sort.hpp: In instantiation of 'void selection_sort(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:143:48: required from here
/in/sort.hpp:63:9: error: conversion to 'int' from 'std::vector<node>::size_type {aka long unsigned int}' may alter its value [-Werror=conversion]
int n=vector.size();
^
/in/sort.hpp: In instantiation of 'void merge_sort(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:148:44: required from here
/in/sort.hpp:80:33: error: unused parameter 'vector' [-Werror=unused-parameter]
void merge_sort(std::vector<T> &vector, Compare comp = std::less<T>()) {
^~~~~~
/in/sort.hpp:80:69: error: unused parameter 'comp' [-Werror=unused-parameter]
void merge_sort(std::vector<T> &vector, Compare comp = std::less<T>()) {
^
/in/sort.hpp: In instantiation of 'void quick_sort_extra(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:153:50: required from here
/in/sort.hpp:85:39: error: unused parameter 'vector' [-Werror=unused-parameter]
void quick_sort_extra(std::vector<T> &vector, Compare comp = std::less<T>()) {
^~~~~~
/in/sort.hpp:85:75: error: unused parameter 'comp' [-Werror=unused-parameter]
void quick_sort_extra(std::vector<T> &vector, Compare comp = std::less<T>()) {
^
/in/sort.hpp: In instantiation of 'void quick_sort_inplace(std::vector<T>&, Compare) [with T = node; Compare = bool (*)(const node&, const node&)]':
/in/driver/main.cpp:158:52: required from here
/in/sort.hpp:101:41: error: unused parameter 'vector' [-Werror=unused-parameter]
void quick_sort_inplace(std::vector<T> &vector, Compare comp = std::less<T>()) {
^~~~~~
/in/sort.hpp:101:77: error: unused parameter 'comp' [-Werror=unused-parameter]
void quick_sort_inplace(std::vector<T> &vector, Compare comp = std::less<T>()) {
^
cc1plus: all warnings being treated as errors