Problem manycolours
User PlayVoltz
Submission Time 2024-01-22 08:50:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

manycolours.cpp: In function ‘void dfs2(long long int, long long int, long long int)’:
manycolours.cpp:58:28: error: ‘class std::vector<trio>’ has no member named ‘w’
58 | for (auto num:del)ans[num.w]-=2*(sum-csum[num.to]+num.c*cc[num.to]);
| ^
manycolours.cpp:58:48: error: ‘class std::vector<trio>’ has no member named ‘to’
58 | for (auto num:del)ans[num.w]-=2*(sum-csum[num.to]+num.c*cc[num.to]);
| ^~
manycolours.cpp:58:56: error: ‘class std::vector<trio>’ has no member named ‘c’
58 | for (auto num:del)ans[num.w]-=2*(sum-csum[num.to]+num.c*cc[num.to]);
| ^
manycolours.cpp:58:65: error: ‘class std::vector<trio>’ has no member named ‘to’
58 | for (auto num:del)ans[num.w]-=2*(sum-csum[num.to]+num.c*cc[num.to]);
|