Problem nemo
User a
Submission Time 2023-06-10 21:38:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nemo.cpp: In function ‘int leader(int)’:
nemo.cpp:11:35: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive]
11 | pointer[x] = leader[pointer[x]];
| ~~~~~~~~~~~~~~~~~^
| |
| int (*)(int)
nemo.cpp: In function ‘int main()’:
nemo.cpp:29:25: error: no match for ‘operator+’ (operand types are ‘std::vector<std::tuple<int, int, int> >’ and ‘int’)
29 | sort(oplist, oplist + edges);
| ~~~~~~ ^ ~~~~~
| | |
| | int
| std::vector<std::tuple<int, int, int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/