Problem trains
User Water
Submission Time 2024-02-19 17:05:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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])){
| ~~