Problem colourblind
User PlayVoltz
Submission Time 2024-03-06 07:37:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

colourblind.cpp: In function ‘ooga fp(std::pair<long long int, long long int>)’:
colourblind.cpp:20:15: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘i’
20 | if (dsu[node.i][node.j]==node)return node;
| ^
colourblind.cpp:20:23: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘j’
20 | if (dsu[node.i][node.j]==node)return node;
| ^
colourblind.cpp:20:39: error: could not convert ‘node’ from ‘std::pair<long long int, long long int>’ to ‘ooga’
20 | if (dsu[node.i][node.j]==node)return node;
| ^~~~
| |
| std::pair<long long int, long long int>
colourblind.cpp:21:18: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘i’
21 | return dsu[node.i