Problem leftright
User ensonchew
Submission Time 2025-06-06 16:38:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leftright.cpp: In function ‘int main()’:
leftright.cpp:18:13: error: ‘L’ was not declared in this scope
18 | A.insert(L.begin()+d, s);
| ^
leftright.cpp:25:12: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long long int>’ and ‘long long int’)
25 | cout << A[j] << ' ';
| ^
leftright.cpp:28:12: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long long int>’ and ‘long long int’)
28 | cout << A[k] << ' ';
| ^