Problem | colourblind |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-06 07:40:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
colourblind.cpp: In function ‘ooga fp(ooga)’:
colourblind.cpp:21:12: error: conversion from ‘ooga’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
21 | pii par=fp(dsu[node.i][node.j]);
| ~~^~~~~~~~~~~~~~~~~~~~~
colourblind.cpp:22:28: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘i’
22 | dsu[node.i][node.j].i=par.i;
| ^
colourblind.cpp:23:28: error: ‘struct std::pair<long long int, long long int>’ has no member named ‘j’
23 | dsu[node.i][node.j].j=par.j;
| ^
colourblind.cpp: In function ‘void merge(std::pair<long long int, long long int>, std::pair<long long int, long long int>)’:
colourblind.cpp:29:7: error: no match for ‘operator==’ (operand types are ‘ooga’ and ‘ooga’)
29 | if (a==b)return;
| ~^~~
| | |
| | ooga
|