scales.cpp: In function 'bool partMin(const std::vector<int>&, int, int, int, int)':
scales.cpp:24:18: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int lim = v.size(), x, y, z;
~~~~~~^~
scales.cpp:32:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:32:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:32:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp: In function 'bool partMax(const std::vector<int>&, int, int, int, int)':
scales.cpp:39:18: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int lim = v.size(), x, y, z;
~~~~~~^~
scales.cpp:47:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:47:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:47:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp: In function 'bool partMed(const std::vector<int>&, int, int, int, int)':
scales.cpp:54:18: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int lim = v.size(), x, y, z;
~~~~~~^~
scales.cpp:59:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (y < x && x < z || z < x && x < y) va.push_back(v[i]);
~~~~~~^~~~~~~~
scales.cpp:60:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (x < y && y < z || z < y && y < x) vb.push_back(v[i]);
~~~~~~^~~~~~~~
scales.cpp:61:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (x < z && z < y || y < z && z < x) vc.push_back(v[i]);
~~~~~~^~~~~~~~
scales.cpp:62:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:62:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:62:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp: In function 'bool partMagic(const std::vector<int>&, int, int, int, int, int)':
scales.cpp:69:18: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int lim = v.size(), x, y, z, w;
~~~~~~^~
scales.cpp:101:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:101:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp:101:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (va.size() > siz || vb.size() > siz || vc.size() > siz) return 0;
~~~~~~~~~~^~~~~
scales.cpp: In function 'bool nadi(std::vector<int>)':
scales.cpp:108:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
scales.cpp:106:25: warning: unused parameter 'v' [-Wunused-parameter]
bool nadi (vector <int> v) {
^
scales.cpp: In function 'void init(int)':
scales.cpp:110:16: warning: unused parameter 'T' [-Wunused-parameter]
void init (int T) {
^