Problem factories
User TheRaptor
Submission Time 2023-03-18 09:28:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp:12:1: error: ‘um’ does not name a type; did you mean ‘tm’?
12 | um[30][500005];
| ^~
| tm
factories.cpp: In function ‘void precomp(int, int, int, long long int)’:
factories.cpp:44:2: error: ‘um’ was not declared in this scope; did you mean ‘tm’?
44 | um[l][x]=d;
| ^~
| tm
factories.cpp: In function ‘long long int Query(int, int*, int, int*)’:
factories.cpp:78:47: error: ‘um’ was not declared in this scope; did you mean ‘tm’?
78 | if(got[cur]) minpath[cur]=min(minpath[cur],um[level[cur]][X[i]]);
| ^~
| tm
factories.cpp:80:18: error: ‘um’ was not declared in this scope; did you mean ‘tm’?
80 | minpath[cur]=um[level[cur]][X[i]];
| ^~
| tm
factories.cpp:91:42: error: ‘um’ was not declared in this scope; did you mean ‘tm’?
91