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

Compile Error

trains.cpp: In function ‘int main()’:
trains.cpp:10:2: error: ‘dist’ was not declared in this scope
10 | dist[n+2];
| ^~~~