Problem railway
User PlayVoltz
Submission Time 2023-09-13 10:04:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp: In function ‘int railway(int, int)’:
railway.cpp:24:5: error: ‘precalc’ was not declared in this scope
24 | precalc[start][num.first] = num.second+precalc[start][cnode];
| ^~~~~~~
railway.cpp: In function ‘int main()’:
railway.cpp:38:2: error: ‘precalc’ was not declared in this scope
38 | precalc.resize(n, vector<int>(n));
| ^~~~~~~