Problem boxes_hkicpc
User eulerleonhardfan
Submission Time 2024-03-19 21:38:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxes_hkicpc.cpp:26:9: error: wrong number of template arguments (1, should be 2)
26 | pair<pii> range[MS];
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
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/bits/stdc++.h:41,
from boxes_hkicpc.cpp:11:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’
208 | struct pair
| ^~~~
boxes_hkicpc.cpp: In function ‘void init(long long int, long long int)’:
boxes_hkicpc.cpp:36:34: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in assignment
36 | range[x] = {preorder[x], end1[x]};
| ^
boxes_hkicpc.cpp: In function ‘int32_t main()’:
boxes_hkicpc.cpp:55:18: error: no m