Problem railway
User benji9736
Submission Time 2025-12-17 14:52:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp: In function ‘void init()’:
railway.cpp:41:23: error: ‘n’ was not declared in this scope
41 | for (int x = 0; x < n; i++){
| ^
railway.cpp: In function ‘int main()’:
railway.cpp:72:9: error: ‘dist’ was not declared in this scope
72 | cout<<dist[x] + dist[y] - 2 * dist[i]<<endl;
| ^~~~
railway.cpp:72:38: error: ‘i’ was not declared in this scope
72 | cout<<dist[x] + dist[y] - 2 * dist[i]<<endl;
| ^