Problem boxispull
User xiachengruisg
Submission Time 2026-10-22 20:38:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxispull.cpp: In function ‘int main()’:
boxispull.cpp:14:11: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::__cxx11::list’
14 | list<list> input;
| ^
boxispull.cpp:14:11: note: expected a type, got ‘list’
boxispull.cpp:14:11: error: template argument 2 is invalid
boxispull.cpp:22:9: error: request for member ‘push_back’ in ‘input’, which is of non-class type ‘int’
22 | input.push_back(place);
| ^~~~~~~~~
boxispull.cpp:25:28: error: request for member ‘size’ in ‘input’, which is of non-class type ‘int’
25 | for (int i = 0; i < input.size(); i++){
| ^~~~
boxispull.cpp:26:15: error: invalid types ‘int[int]’ for array subscript
26 | dx = input[i][2] - input[i][0];
| ^
boxispull.cpp:26:29: error: invalid types ‘int[int]’ for array subscript
26 | dx = i