Problem nemo
User a
Submission Time 2023-06-07 14:49:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nemo.cpp:21:20: error: ‘j’ has not been declared
21 | bool sameset(int i,j)
| ^
nemo.cpp: In function ‘bool sameset(int, int)’:
nemo.cpp:23:35: error: ‘j’ was not declared in this scope
23 | return (findset(i) == findset(j));
| ^
nemo.cpp: In function ‘int main()’:
nemo.cpp:47:23: error: ‘class std::vector<std::pair<int, std::pair<int, int> > >’ has no member named ‘second’
47 | if ((curr.second.first <= time) && (curr.second.second >= time))
| ^~~~~~
nemo.cpp:47:54: error: ‘class std::vector<std::pair<int, std::pair<int, int> > >’ has no member named ‘second’
47 | if ((curr.second.first <= time) && (curr.second.second >= time))
| ^~~~~~
nemo.cpp:49:34: error: ‘class std::vector<std::pair<int, std::pair