Tinginiai

Taškai: 0

Compile: FAIL

tinginiai.cpp: In function ‘int main()’: tinginiai.cpp:13:22: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 13 | cin >> arr[i][0]; | ^ tinginiai.cpp:16:22: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 16 | cin >> arr[i][1]; | ^ tinginiai.cpp:21:19: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 21 | if (arr[i][0] != x) { | ^ tinginiai.cpp:22:33: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 22 | brr.push_back(arr[i][0]); | ^ tinginiai.cpp:23:23: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 23 | x = arr[i][0]; | ^ tinginiai.cpp:25:33: error: no match for ‘operator[]’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘int’) 25 | crr.push_back(arr[i][1]); | ^

nr.resulttimemessage