Owl Get a Life
trains.cpp: In function ‘int main()’:trains.cpp:21:34: error: ‘k’ was not declared in this scope 21 | mincost[i]=min(mincost[i],(i-k)*(i-k)+mincost[k]); | ^