Problem transform
User HighLithop
Submission Time 2025-10-14 23:13:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

transform.cpp: In function ‘int main()’:
transform.cpp:82:4: error: ‘a’ was not declared in this scope
82 | }a
| ^
transform.cpp:86:4: error: ‘cost’ was not declared in this scope
86 | cost = min(cost, dist[word[i] - 'a'][to] + dist[word[mirror] - 'a'][to]);
| ^~~~
transform.cpp:89:7: error: ‘cost’ was not declared in this scope
89 | if (cost == INF){
| ^~~~