Problem | transform |
---|---|
User | personjs |
Submission Time | 2025-03-10 22:15:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
transform.cpp: In function ‘int min_palindrome_cost(int, int, std::string, std::vector<std::tuple<char, char, int> >&)’:
transform.cpp:32:16: error: structured binding refers to incomplete type ‘std::tuple<char, char, int>’
32 | for (auto &[A, B, C] : transformations) {
| ^~~~~~~~~
transform.cpp:34:17: error: ‘b’ was not declared in this scope
34 | cost[a][b] = min(cost[a][b], C); // Use the cheapest transformation
| ^
transform.cpp: In function ‘int main()’:
transform.cpp:83:38: error: invalid use of incomplete type ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<char, char, int> >, std::tuple<char, char, int> >::value_type’ {aka ‘class std::tuple<char, char, int>’}
83 | transformations[i] = {A, B, C};
| ^
In file included from /usr/include/c++/9/bits/move.h:55,
from