Problem card
User Zachareeeee
Submission Time 2024-11-30 21:21:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:15:26: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘int’)
15 | v.push_back(v[0]);
| ^
card.cpp:19:26: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘int’)
19 | v.push_back(v[1]);
| ^
card.cpp:23:14: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘long int’)
23 | cout << v[k-1] <<" "<< v[k]<<" "<< v[k+1];
| ^
card.cpp:23:29: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<long int>’ and ‘long int’)
23 | cout << v[k-1] <<" "<< v[k]<<" "<< v[k+1];
| ^
card.cpp:23:41: error: no match for ‘operator[]’ (operand types are ‘std