Owl Get a Life
trains.cpp: In function ‘int main()’:trains.cpp:16:22: error: expected ‘;’ before ‘if’ 16 | dist[i] = dist[i-1] | ^ | ; 17 | if ((h[i]>=h[index])&&(h[i]<=h[n+1])){ | ~~