scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:30:47: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:26: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:40: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:23: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:33: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:20: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:26: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:17: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:19: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:14: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:54: warning: conversion from 'int' to 'char' may change value [-Wconversion]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ^
scales.cpp:30:59: warning: conversion from 'int' to 'char' may change value [-Wconversion]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ^
scales.cpp:30:64: warning: conversion from 'int' to 'char' may change value [-Wconversion]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ^
scales.cpp:30:69: warning: conversion from 'int' to 'char' may change value [-Wconversion]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ^
scales.cpp:30:74: warning: conversion from 'int' to 'char' may change value [-Wconversion]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:30:47: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:26: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:40: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:23: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:33: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:20: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:26: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:17: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:19: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:14: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp: In constructor 'query::query(int, int, int, int, int)':
scales.cpp:30:47: warning: declaration of 'd' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:26: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:40: warning: declaration of 'c' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:23: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:33: warning: declaration of 'b' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:20: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:26: warning: declaration of 'a' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:17: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp:30:19: warning: declaration of 't' shadows a member of 'query' [-Wshadow]
30 | query(int t, int a, int b, int c, int d) : t(t),a(a),b(b),c(c),d(d) {}
| ~~~~^
scales.cpp:27:14: note: shadowed declaration is here
27 | char t, a, b, c, d;
| ^
scales.cpp: In member function 'int query::sim(std::array<char, 6>)':
scales.cpp:47:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
47 | auto [x,y,z] = q;
| ^
scales.cpp: In function 'int work(int, int, std::vector<std::array<char, 6> >)':
scales.cpp:71:37: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion]
71 | int mx = max({np[0].size(),np[1].size(),np[2].size()});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scales.cpp:90:61: warning: conversion from 'long unsigned int' to 'int' may change value [-Wconversion]
90 | int mx = max({np[0].size(),np[1].size(),np[2].size()});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scales.cpp: In function 'void init(int)':
scales.cpp:117:13: warning: unused variable 'st' [-Wunused-variable]
117 | int st = work(0, 0, v);
| ^~
scales.cpp:108:15: warning: unused parameter 'T' [-Wunused-parameter]
108 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:141:17: warning: declaration of 'i' shadows a previous local [-Wshadow]
141 | for(int i=0;i<6;i++)W[+p[i]-1] = i+1;
| ^
scales.cpp:127:13: note: shadowed declaration is here
127 | int i=0;
| ^