selling_rna.cpp:10:19: warning: use of 'auto' in parameter declaration only available with '-fconcepts-ts'
10 | int convert(const auto& a) { return a == 'A' ? 0 : a == 'C' ? 1 : a == 'G' ? 2 : 3; }
| ^~~~
selling_rna.cpp: In constructor 'Node::Node()':
selling_rna.cpp:14:11: warning: 'Node::mi' will be initialized after [-Wreorder]
14 | int ma, mi, sz;
| ^~
selling_rna.cpp:14:7: warning: 'int Node::ma' [-Wreorder]
14 | int ma, mi, sz;
| ^~
selling_rna.cpp:16:3: warning: when initialized here [-Wreorder]
16 | Node() : mi(1e9), ma(0), sz(0) {}
| ^~~~
selling_rna.cpp: At global scope:
selling_rna.cpp:37:18: warning: use of 'auto' in parameter declaration only available with '-fconcepts-ts'
37 | void add(const auto& s, int value) {
| ^~~~
selling_rna.cpp:48:28: warning: use of 'auto' in parameter declaration only available with '-fconcepts-ts'
48 | pair<int, int> que(const auto& s) {
| ^~~~
selling_rna.cpp: In instantiation of 'void Trie::add(const auto:24&, int) [with auto:24 = std::__cxx11::basic_string<char>]':
selling_rna.cpp:71:47: required from here
selling_rna.cpp:39:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int i = 1; i <= s.size(); ++i) {
| ~~^~~~~~~~~~~
selling_rna.cpp: In instantiation of 'std::pair<int, int> Trie::que(const auto:25&) [with auto:25 = std::__cxx11::basic_string<char>]':
selling_rna.cpp:74:39: required from here
selling_rna.cpp:50:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for (int i = 1; i <= s.size(); ++i) {
| ~~^~~~~~~~~~~