Problem | snake |
---|---|
User | Fet |
Submission Time | 2024-12-14 11:25:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snake.cpp: In function ‘int main()’:
snake.cpp:19:10: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} and ‘int’)
19 | x=v[0][0];
| ^
snake.cpp:20:10: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} and ‘int’)
20 | y=v[0][1];
| ^
snake.cpp:31:16: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long in