Problem factories
User haydendoo
Submission Time 2023-01-16 17:43:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factories.cpp: In function ‘void dfs(long long int)’:
factories.cpp:240:18: error: request for member ‘first’ in ‘it’, which is of non-class type ‘long long int’
240 | if (h[it.first]!=-1) continue;
| ^~~~~
factories.cpp:241:17: error: request for member ‘first’ in ‘it’, which is of non-class type ‘long long int’
241 | p[0][it.first] = x;
| ^~~~~
factories.cpp:242:14: error: request for member ‘first’ in ‘it’, which is of non-class type ‘long long int’
242 | d[it.first] = d[x] + it.second;
| ^~~~~
factories.cpp:242:33: error: request for member ‘second’ in ‘it’, which is of non-class type ‘long long int’
242 | d[it.first] = d[x] + it.second;
| ^~~~~~
factories.cpp:243:14: error: request for member ‘first’ in ‘it’, which is of non-class type ‘long long int’
243 | h[it.first] = h[x] + 1;