Tinginiai
- [1] 2024-11-23 19:20 (0)
- [2] 2024-11-23 19:23 (0)
- [3] 2024-11-23 19:23 (6.5)
- [4] 2024-11-23 19:26 (67.7)
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. | result | time | message |
---|