Problem railway
User goose
Submission Time 2026-09-26 16:06:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp: In function ‘void dfs(int, int)’:
railway.cpp:13:5: error: no match for ‘operator[]’ (operand types are ‘int [100004][20]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’})
13 | p[adj[i][j]][0] = i;
| ^